diff options
author | Paul Gilbert | 2013-05-24 21:54:40 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-05-24 21:54:40 -0400 |
commit | 3c6507812eed761c8c357b1bf41b378b6ca3dc9c (patch) | |
tree | 539c3b16ead9dbec06c141f81a73670a28d2f684 /engines/voyeur/graphics.h | |
parent | 0d26e515fb89a2a61c16eb3bb5b2e9f544dc4aff (diff) | |
download | scummvm-rg350-3c6507812eed761c8c357b1bf41b378b6ca3dc9c.tar.gz scummvm-rg350-3c6507812eed761c8c357b1bf41b378b6ca3dc9c.tar.bz2 scummvm-rg350-3c6507812eed761c8c357b1bf41b378b6ca3dc9c.zip |
VOYEUR: Clean up of IntData usage
Diffstat (limited to 'engines/voyeur/graphics.h')
-rw-r--r-- | engines/voyeur/graphics.h | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/engines/voyeur/graphics.h b/engines/voyeur/graphics.h index 7589e8f1ec..d92a6b6268 100644 --- a/engines/voyeur/graphics.h +++ b/engines/voyeur/graphics.h @@ -23,6 +23,7 @@ #ifndef VOYEUR_GRAPHICS_H #define VOYEUR_GRAPHICS_H +#include "voyeur/game.h" #include "common/scummsys.h" #include "common/array.h" #include "graphics/surface.h" @@ -34,26 +35,11 @@ namespace Voyeur { #define PALETTE_COUNT 256 #define PALETTE_SIZE (256 * 3) -typedef void (*IntFuncPtr)(); - -class IntNode { -public: - IntNode *_nextNode; - IntFuncPtr _intFunc; - uint32 _curTime; - uint32 _timeReset; - uint32 _flags; -public: - IntNode(); -}; +class VoyeurEngine; class GraphicsManager { -private: - static void fadeIntFunc(); - static void vDoFadeInt(); - static void vDoCycleInt(); - void addIntNode(IntNode *node); public: + VoyeurEngine *_vm; bool _palFlag; IntNode _fadeIntNode; IntNode _cycleIntNode; @@ -61,12 +47,18 @@ public: IntNode _mainintnode; byte _VGAColors[PALETTE_SIZE]; Common::Array<byte *> _colorChain; +private: + static void fadeIntFunc(); + static void vDoFadeInt(); + static void vDoCycleInt(); + void addIntNode(IntNode *node); public: GraphicsManager(); + void setVm(VoyeurEngine *vm) { _vm = vm; } void sInitGraphics(); - void addFadeInt(); void vInitColor(); + void addFadeInt(); }; } // End of namespace Voyeur |