diff options
author | lukaslw | 2014-05-01 13:14:06 +0200 |
---|---|---|
committer | lukaslw | 2014-06-22 20:07:53 +0200 |
commit | 3751e7ba25088b941eed55ee56e7a67593e32b8d (patch) | |
tree | bee1bc57d2dab1f8f8b3f575f4f5aa65364c4d4f /engines/prince/script.h | |
parent | 4bf4847cc36dd9c45792f21f285a1f6778d60eb5 (diff) | |
download | scummvm-rg350-3751e7ba25088b941eed55ee56e7a67593e32b8d.tar.gz scummvm-rg350-3751e7ba25088b941eed55ee56e7a67593e32b8d.tar.bz2 scummvm-rg350-3751e7ba25088b941eed55ee56e7a67593e32b8d.zip |
PRINCE: lightX, lightY and setShadowScale()
Diffstat (limited to 'engines/prince/script.h')
-rw-r--r-- | engines/prince/script.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/prince/script.h b/engines/prince/script.h index d51e01b559..2a3bb64245 100644 --- a/engines/prince/script.h +++ b/engines/prince/script.h @@ -42,6 +42,7 @@ namespace Detail { template <> inline uint8 LittleEndianReader<uint8>(void *data) { return *(uint8*)(data); } template <> inline uint16 LittleEndianReader<uint16>(void *data) { return READ_LE_UINT16(data); } template <> inline uint32 LittleEndianReader<uint32>(void *data) { return READ_LE_UINT32(data); } + template <> inline int8 LittleEndianReader<int8>(void *data) { return *(int8*)(data); } } class Room { @@ -89,6 +90,9 @@ public: // Some magic numbers for now, data stored in header uint32 getRoomTableOffset() { return read<uint32>(0); } uint32 getStartGameOffset() { return read<uint32>(4); } + int8 getLightX(int locationNr) { return read<int8>(4*15 + locationNr*8); } + int8 getLightY(int locationNr) { return read<int8>(4*15 + locationNr*8 + 2); } + uint16 getShadowScale(int locationNr) { return read<uint16>(4*15 + locationNr*8 + 4); } const char *getString(uint32 offset) { return (const char *)(&_data[offset]); |