diff options
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r-- | scumm/actor.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 7f5193edf6..f9cf50eb18 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -32,6 +32,7 @@ #include "scumm/saveload.h" #include "scumm/sound.h" #include "scumm/usage_bits.h" +#include "scumm/util.h" #include "scumm/wiz_he.h" namespace Scumm { @@ -1747,6 +1748,16 @@ byte *Actor::getActorName() { return ptr; } +int Actor::getAnimVar(byte var) const { + checkRange(26, 0, var, "getAnimVar %d out of range(r)"); + return _animVariable[var]; +} + +void Actor::setAnimVar(byte var, int value) { + checkRange(26, 0, var, "setAnimVar %d out of range(r)"); + _animVariable[var] = value; +} + void Actor::remapActorPaletteColor(int color, int new_color) { const byte *akos, *akpl; int akpl_size, i; |