aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/room.h
diff options
context:
space:
mode:
authorMatthew Stewart2018-07-23 22:53:10 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commitfe98dbb69d1f8222eeb391111f59670658b0daad (patch)
treefdd8c33cb65529082f698e08e9d1a86d7cdc05e8 /engines/startrek/room.h
parentaa68655742c94026c701dafc1ef6efb032774434 (diff)
downloadscummvm-rg350-fe98dbb69d1f8222eeb391111f59670658b0daad.tar.gz
scummvm-rg350-fe98dbb69d1f8222eeb391111f59670658b0daad.tar.bz2
scummvm-rg350-fe98dbb69d1f8222eeb391111f59670658b0daad.zip
STARTREK: Reformat with artistic style
Diffstat (limited to 'engines/startrek/room.h')
-rw-r--r--engines/startrek/room.h40
1 files changed, 30 insertions, 10 deletions
diff --git a/engines/startrek/room.h b/engines/startrek/room.h
index b8d5145c85..484613ad88 100644
--- a/engines/startrek/room.h
+++ b/engines/startrek/room.h
@@ -64,10 +64,18 @@ public:
* "minimum" scale; that value rises to the "max scale" value by the time they reach
* the "max Y" value.
*/
- uint16 getMaxY() { return readRdfWord(0x06); }
- uint16 getMinY() { return readRdfWord(0x08); }
- Fixed8 getMinScale() { return Fixed8::fromRaw(readRdfWord(0x0a)); }
- Fixed8 getMaxScale() { return Fixed8::fromRaw(readRdfWord(0x0c)); }
+ uint16 getMaxY() {
+ return readRdfWord(0x06);
+ }
+ uint16 getMinY() {
+ return readRdfWord(0x08);
+ }
+ Fixed8 getMinScale() {
+ return Fixed8::fromRaw(readRdfWord(0x0a));
+ }
+ Fixed8 getMaxScale() {
+ return Fixed8::fromRaw(readRdfWord(0x0c));
+ }
/**
* Check if a particular action is defined for this room.
@@ -87,14 +95,26 @@ public:
bool handleActionWithBitmask(const Action &action);
bool handleActionWithBitmask(byte type, byte b1, byte b2, byte b3);
- uint16 getFirstHotspot() { return readRdfWord(0x12); }
- uint16 getHotspotEnd() { return readRdfWord(0x14); }
+ uint16 getFirstHotspot() {
+ return readRdfWord(0x12);
+ }
+ uint16 getHotspotEnd() {
+ return readRdfWord(0x14);
+ }
// Warp-related stuff
- uint16 getFirstWarpPolygonOffset() { return readRdfWord(0x16); }
- uint16 getWarpPolygonEndOffset() { return readRdfWord(0x18); }
- uint16 getFirstDoorPolygonOffset() { return readRdfWord(0x1a); }
- uint16 getDoorPolygonEndOffset() { return readRdfWord(0x1c); }
+ uint16 getFirstWarpPolygonOffset() {
+ return readRdfWord(0x16);
+ }
+ uint16 getWarpPolygonEndOffset() {
+ return readRdfWord(0x18);
+ }
+ uint16 getFirstDoorPolygonOffset() {
+ return readRdfWord(0x1a);
+ }
+ uint16 getDoorPolygonEndOffset() {
+ return readRdfWord(0x1c);
+ }
/**
* Get the point at which a crewman beams in to this room (not properly defined for