aboutsummaryrefslogtreecommitdiff
path: root/scumm/actor.h
diff options
context:
space:
mode:
authorMax Horn2004-01-05 16:30:00 +0000
committerMax Horn2004-01-05 16:30:00 +0000
commitf506056c3b0fee25445133aa9763fced5a131330 (patch)
treeb7bea930c94043e637a96478039f46a4e1944098 /scumm/actor.h
parenta469559d134822121b2268aebc9ca733985c2146 (diff)
downloadscummvm-rg350-f506056c3b0fee25445133aa9763fced5a131330.tar.gz
scummvm-rg350-f506056c3b0fee25445133aa9763fced5a131330.tar.bz2
scummvm-rg350-f506056c3b0fee25445133aa9763fced5a131330.zip
more cleanup
svn-id: r12161
Diffstat (limited to 'scumm/actor.h')
-rw-r--r--scumm/actor.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/scumm/actor.h b/scumm/actor.h
index 815690e368..92112181e9 100644
--- a/scumm/actor.h
+++ b/scumm/actor.h
@@ -105,12 +105,12 @@ public:
byte walkbox;
int16 talkPosX, talkPosY;
uint16 talkScript, walkScript;
- bool ignoreTurns; // TODO - we do not honor this flag at all currently!
+ bool ignoreTurns;
int8 layer;
uint16 sound[8];
CostumeData cost;
- byte palette[256];
protected:
+ byte palette[256];
int elevation;
uint16 facing;
uint16 targetFacing;
@@ -206,6 +206,19 @@ public:
}
}
+ void setPalette(int idx, int val) {
+ palette[idx] = val;
+ needRedraw = true;
+ }
+
+ void setScale(int sx, int sy) {
+ if (sx != -1)
+ scalex = sx;
+ if (sy != -1)
+ scaley = sy;
+ needRedraw = true;
+ }
+
void classChanged(int cls, bool value);
// Used by the save/load syste: