ILLUSIONS: Add more script opcodes

This commit is contained in:
johndoe123 2014-03-20 14:16:48 +01:00 committed by Eugene Sandulenko
parent f47575ca90
commit 43cd806f17
12 changed files with 330 additions and 58 deletions

View file

@ -25,6 +25,7 @@
#include "illusions/actorresource.h"
#include "illusions/backgroundresource.h"
#include "illusions/camera.h"
#include "illusions/cursor.h"
#include "illusions/dictionary.h"
#include "illusions/fontresource.h"
#include "illusions/graphics.h"
@ -102,6 +103,7 @@ Common::Error IllusionsEngine::run() {
_backgroundItems = new BackgroundItems(this);
_camera = new Camera(this);
_controls = new Controls(this);
_cursor = new Cursor(this);
// TODO Move to own class
_resGetCtr = 0;
@ -176,6 +178,7 @@ Common::Error IllusionsEngine::run() {
}
#endif
delete _cursor;
delete _controls;
delete _camera;
delete _backgroundItems;
@ -242,28 +245,6 @@ void IllusionsEngine::notifyThreadId(uint32 &threadId) {
}
}
void IllusionsEngine::setCursorControl(Control *control) {
// TODO Dummy, to be replaced later
}
void IllusionsEngine::placeCursor(Control *control, uint32 sequenceId) {
// TODO Dummy, to be replaced later
}
bool IllusionsEngine::showCursor() {
// TODO Dummy, to be replaced later
// TODO ++cursor._visibleCtr;
// TODO if (cursor._visibleCtr > 0)
return false;
}
bool IllusionsEngine::hideCursor() {
// TODO Dummy, to be replaced later
// TODO --cursor._visibleCtr;
// TODO if (cursor.visibleCtr <= 0)
return false;
}
uint32 IllusionsEngine::getElapsedUpdateTime() {
uint32 result = 0;
uint32 currTime = getCurrentTime();