From f506056c3b0fee25445133aa9763fced5a131330 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 5 Jan 2004 16:30:00 +0000 Subject: more cleanup svn-id: r12161 --- scumm/actor.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'scumm/actor.h') 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: -- cgit v1.2.3