diff options
Diffstat (limited to 'engines/cge/vga13h.h')
-rw-r--r-- | engines/cge/vga13h.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/engines/cge/vga13h.h b/engines/cge/vga13h.h index d43e590084..9ac1bb3c63 100644 --- a/engines/cge/vga13h.h +++ b/engines/cge/vga13h.h @@ -120,14 +120,8 @@ public: {} }; - -class Sprite { -protected: - SprExt *_ext; -public: - int _ref; - signed char _cave; - struct Flags { +union Flags { + struct FlagsBits { uint16 _hide : 1; // general visibility switch uint16 _near : 1; // Near action lock uint16 _drag : 1; // sprite is moveable @@ -144,7 +138,17 @@ public: uint16 _back : 1; // 'send to background' request uint16 _bDel : 1; // delete bitmaps in ~SPRITE uint16 _tran : 1; // transparent (untouchable) - } _flags; + } flags; + uint16 flagsWord; +}; + +class Sprite { +protected: + SprExt *_ext; +public: + int _ref; + signed char _cave; + Flags _flags; int _x; int _y; signed char _z; |