CGE2: Further implement caveUp(), add stubbed loadMap().

This commit is contained in:
uruk 2014-05-17 22:34:31 +02:00
parent cb72489106
commit f121349503
3 changed files with 13 additions and 0 deletions

View File

@ -62,6 +62,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_startupMode = 1;
_now = 1;
_sex = true;
_mouseTop = kWorldHeight / 3;
}
void CGE2Engine::init() {

View File

@ -51,6 +51,7 @@ class CommandHandler;
#define kScrWidth 320
#define kScrHeight 240
#define kScrDepth 480
#define kPanHeight 40
#define kWorldHeight (kScrHeight - kPanHeight)
#define kMaxFile 128
@ -87,6 +88,7 @@ public:
void showBak(int ref);
void loadTab();
int newRandom(int range);
void loadMap(int cav);
void setEye(V3D &e);
void setEye(const V2D& e2, int z = -kScrWidth);
@ -109,6 +111,7 @@ public:
int _startupMode;
int _now;
bool _sex;
int _mouseTop;
ResourceManager *_resman;
Vga *_vga;

View File

@ -335,6 +335,11 @@ void CGE2Engine::caveUp(int cav) {
if (_music)
_midiPlayer->loadMidi(bakRef);
showBak(bakRef);
_eye = _eyeTab[_now];
_mouseTop = V2D(this, V3D(0, 1, kScrDepth)).y;
loadTab();
_vga->update();
warning("STUB: CGE2Engine::caveUp()");
}
@ -351,6 +356,10 @@ void CGE2Engine::showBak(int ref) {
}
}
void CGE2Engine::loadMap(int cav) {
warning("STUB: CGE2Engine::loadMap()");
}
void CGE2Engine::runGame() {
warning("STUB: CGE2Engine::runGame()");
}