diff options
author | Andrew Kurushin | 2004-12-24 20:44:39 +0000 |
---|---|---|
committer | Andrew Kurushin | 2004-12-24 20:44:39 +0000 |
commit | 2289ea371b46a0696ae54923f32c1027b73afe34 (patch) | |
tree | e29bff22df0926a7a482fb82bcbb64d9daa33149 /saga/actionmap.h | |
parent | f0bc27f11c5fb638623108df3700b182433df947 (diff) | |
download | scummvm-rg350-2289ea371b46a0696ae54923f32c1027b73afe34.tar.gz scummvm-rg350-2289ea371b46a0696ae54923f32c1027b73afe34.tar.bz2 scummvm-rg350-2289ea371b46a0696ae54923f32c1027b73afe34.zip |
- remove old stuff
- work on "walking" in progress
svn-id: r16298
Diffstat (limited to 'saga/actionmap.h')
-rw-r--r-- | saga/actionmap.h | 50 |
1 files changed, 18 insertions, 32 deletions
diff --git a/saga/actionmap.h b/saga/actionmap.h index fa2f8dc887..12e6f7a9a3 100644 --- a/saga/actionmap.h +++ b/saga/actionmap.h @@ -26,49 +26,35 @@ #ifndef SAGA_ACTIONMAP_H_ #define SAGA_ACTIONMAP_H_ -namespace Saga { - -enum ACTION_FLAGS { - ACTION_ENABLED = (1<<0), // Zone is enabled - ACTION_EXIT = (1<<1), // Causes char to exit - - // The following flag causes the zone to act differently. - // When the actor hits the zone, it will immediately begin walking - // in the specified direction, and the actual specified effect of - // the zone will be delayed until the actor leaves the zone. - ACTION_AUTOWALK = (1<<2), - - // zone activates only when character stops walking - ACTION_TERMINUS = (1<<3) -}; +#include "saga/objectmap.h" -struct ACTIONMAP_ENTRY { - int flags; - int nClickareas; - int defaultVerb; - int exitScene; - int entranceNum; +namespace Saga { - CLICKAREA *clickareas; -}; class ActionMap { public: - int reg(void); - ActionMap(SagaEngine *vm, const byte *exmap_res, size_t exmap_res_len); - ~ActionMap(void); - - const int getExitScene(int exitNum); - int hitTest(const Point& imousePt); + ActionMap(SagaEngine *vm): _vm(vm) { + _stepZoneList = NULL; + _stepZoneListCount = 0; + } + ~ActionMap(void) { + freeMem(); + } + + void load(const byte *resourcePointer, size_t resourceLength); + void freeMem(); + + int getExitSceneNumber(int index) const; + int hitTest(const Point &testPoint); int draw(SURFACE *ds, int color); - void info(void); + void cmdInfo(); private: SagaEngine *_vm; - int _nExits; - ACTIONMAP_ENTRY *_exitsTbl; + int _stepZoneListCount; + HitZone **_stepZoneList; }; } // End of namespace Saga |