mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
CGE2: Add stub for System.
This commit is contained in:
parent
921385b30c
commit
14e3df21ef
@ -63,6 +63,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
|
||||
_talk = nullptr;
|
||||
for (int i = 0; i < kMaxPoint; i++)
|
||||
_point[i] = nullptr;
|
||||
_sys = nullptr;
|
||||
|
||||
_quitFlag = false;
|
||||
_bitmapPalette = nullptr;
|
||||
@ -101,6 +102,7 @@ void CGE2Engine::init() {
|
||||
_keyboard = new Keyboard(this);
|
||||
for (int i = 0; i < kMaxPoint; i++)
|
||||
_point[i] = new V3D();
|
||||
_sys = new System(this);
|
||||
}
|
||||
|
||||
void CGE2Engine::deinit() {
|
||||
@ -131,6 +133,7 @@ void CGE2Engine::deinit() {
|
||||
for (int i = 0; i < kMaxPoint; i++) {
|
||||
delete _point[i];
|
||||
}
|
||||
delete _sys;
|
||||
}
|
||||
|
||||
bool CGE2Engine::hasFeature(EngineFeature f) const {
|
||||
|
@ -54,6 +54,7 @@ class Keyboard;
|
||||
class Talk;
|
||||
class Hero;
|
||||
class Bitmap;
|
||||
class System;
|
||||
|
||||
#define kScrWidth 320
|
||||
#define kScrHeight 240
|
||||
@ -217,6 +218,7 @@ public:
|
||||
Keyboard *_keyboard;
|
||||
Talk *_talk;
|
||||
V3D *_point[kMaxPoint];
|
||||
System *_sys;
|
||||
private:
|
||||
void init();
|
||||
void deinit();
|
||||
|
@ -37,6 +37,18 @@
|
||||
|
||||
namespace CGE2 {
|
||||
|
||||
System::System(CGE2Engine *vm) : Sprite(vm), _vm(vm) {
|
||||
warning("STUB: System::System()");
|
||||
}
|
||||
|
||||
void System::touch(uint16 mask, int x, int y, Common::KeyCode keyCode) {
|
||||
warning("STUB: System::touch()");
|
||||
}
|
||||
|
||||
void System::tick() {
|
||||
warning("STUB: System::tick()");
|
||||
}
|
||||
|
||||
int CGE2Engine::number(char *s) { // TODO: Rework it later to include the preceding token() call!
|
||||
int r = atoi(s);
|
||||
char *pp = strchr(s, ':');
|
||||
|
@ -39,6 +39,20 @@ namespace CGE2 {
|
||||
#define kGameFrameDelay (750 / 50)
|
||||
#define kGameTickDelay (750 / 62)
|
||||
|
||||
class System : public Sprite {
|
||||
public:
|
||||
int _funDel;
|
||||
int _blinkCounter;
|
||||
Sprite *_blinkSprite;
|
||||
|
||||
System(CGE2Engine *vm);
|
||||
|
||||
virtual void touch(uint16 mask, int x, int y, Common::KeyCode keyCode);
|
||||
void tick();
|
||||
private:
|
||||
CGE2Engine *_vm;
|
||||
};
|
||||
|
||||
} // End of namespace CGE2
|
||||
|
||||
#endif // CGE2_MAIN_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user