diff options
author | Torbjörn Andersson | 2004-01-11 15:47:41 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-01-11 15:47:41 +0000 |
commit | cf0a73f913174599c7c28d910ecd87229fd62afd (patch) | |
tree | 7eabb5c16878d42f35d811ed13af5ed20b763f92 /sword1/object.h | |
parent | 563d95c576c817a63ec64302e67b2ee5daa97c6e (diff) | |
download | scummvm-rg350-cf0a73f913174599c7c28d910ecd87229fd62afd.tar.gz scummvm-rg350-cf0a73f913174599c7c28d910ecd87229fd62afd.tar.bz2 scummvm-rg350-cf0a73f913174599c7c28d910ecd87229fd62afd.zip |
Introduced new namespace, Sword1, removing the "Sword" and "Bs" prefixes in
the process, except for SwordEngine.
Some minor cleanups along the wa, e.g. stdafx.h already includes <stdio.h>,
<stdlib.h> and <math.h> so there shouldn't be any need to do it elsewhere.
svn-id: r12320
Diffstat (limited to 'sword1/object.h')
-rw-r--r-- | sword1/object.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sword1/object.h b/sword1/object.h index 654d7289b6..fd7f3b8bb6 100644 --- a/sword1/object.h +++ b/sword1/object.h @@ -24,6 +24,8 @@ #include "scummsys.h" +namespace Sword1 { + #define O_TOTAL_EVENTS 5 #define O_WALKANIM_SIZE 600 //max number of nodes in router output #define O_GRID_SIZE 200 @@ -56,7 +58,7 @@ struct WalkData { int32 dir; } GCC_PACK; // size = 5*int32 = 20 bytes -struct BsObject { +struct Object { int32 o_type; // 0 broad description of type - object, floor, etc. int32 o_status; // 4 bit flags for logic, graphics, mouse, etc. int32 o_logic; // 8 logic type @@ -115,11 +117,13 @@ struct BsObject { }; struct CollisionData { - BsObject *compact; + Object *compact; int32 w[24]; int32 h[24]; WalkData route[24]; }; +} // End of namespace Sword1 + #endif //BSOBJECT_H |