mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
GROOVIE: Added stubs for all Mouse Trap functions
This commit is contained in:
@@ -117,6 +117,9 @@ void MouseTrapGame::sub08(byte *scriptVariables) {
|
||||
void MouseTrapGame::sub09(byte *scriptVariables) {
|
||||
}
|
||||
|
||||
void MouseTrapGame::sub11(int8 x, int8 y) {
|
||||
}
|
||||
|
||||
int8 MouseTrapGame::xyToPos(int8 x, int8 y) {
|
||||
return 5 * y + x + 1;
|
||||
}
|
||||
@@ -157,5 +160,41 @@ bool MouseTrapGame::calcSolution() {
|
||||
|| ((val & 2) != 0 && _mouseTrapPos.x && (_mouseTrapCells[pos + 4] & 8) != 0);
|
||||
}
|
||||
|
||||
bool MouseTrapGame::havePosInRoute(int8 y, int8 x) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void MouseTrapGame::addToRoute(int8 y, int8 x, int8 num) {
|
||||
}
|
||||
|
||||
void MouseTrapGame::updateRoute() {
|
||||
}
|
||||
|
||||
void MouseTrapGame::popLastStep(int8 *x, int8 *y) {
|
||||
}
|
||||
|
||||
void MouseTrapGame::goFarthest(int8 *x, int8 *y) {
|
||||
}
|
||||
|
||||
void MouseTrapGame::findMinPointInRoute(int8 *y, int8 *x) {
|
||||
}
|
||||
|
||||
int8 MouseTrapGame::calcDistanceToExit() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int8 MouseTrapGame::getBestDirection(int8 *x, int8 *y) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int8 MouseTrapGame::findMaxPointInRoute(int8 *y, int8 *x) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int8 MouseTrapGame::findMaxInRoute() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // End of Groovie namespace
|
||||
|
||||
@@ -65,12 +65,24 @@ private:
|
||||
void sub07(byte *scriptVariables);
|
||||
void sub08(byte *scriptVariables);
|
||||
void sub09(byte *scriptVariables);
|
||||
void sub11(int8 x, int8 y);
|
||||
int8 xyToPos(int8 x, int8 y);
|
||||
void posToXY(int8 pos, int8 *x, int8 *y);
|
||||
void copyStateToVars(byte *scriptVariables);
|
||||
int8 findState(int8 val);
|
||||
void flipField(int8 x, int8 y);
|
||||
bool calcSolution();
|
||||
bool havePosInRoute(int8 y, int8 x);
|
||||
void addToRoute(int8 y, int8 x, int8 num);
|
||||
void updateRoute();
|
||||
void popLastStep(int8 *x, int8 *y);
|
||||
void goFarthest(int8 *x, int8 *y);
|
||||
void findMinPointInRoute(int8 *y, int8 *x);
|
||||
int8 calcDistanceToExit();
|
||||
int8 getBestDirection(int8 *x, int8 *y);
|
||||
int8 findMaxPointInRoute(int8 *y, int8 *x);
|
||||
int8 findMaxInRoute();
|
||||
|
||||
|
||||
private:
|
||||
Common::RandomSource _random;
|
||||
|
||||
Reference in New Issue
Block a user