From 44acfd9467e126d324a6ac730dccedd30c916480 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 16 Apr 2005 20:59:24 +0000 Subject: Implement sfGetDeltaFrame and sfEnableZone. Fixes freeze when sanctuary gates open and also used in world map. Spelling and indentation fixes here and there. svn-id: r17640 --- saga/objectmap.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'saga/objectmap.h') diff --git a/saga/objectmap.h b/saga/objectmap.h index dc97271912..76a45dd284 100644 --- a/saga/objectmap.h +++ b/saga/objectmap.h @@ -37,8 +37,8 @@ private: int pointsCount; Point *points; }; + public: - HitZone(MemoryReadStreamEndian *readStream, int index); ~HitZone(); @@ -60,6 +60,12 @@ public: int getFlags() const { return _flags; } + void setFlag(HitZoneFlags flag) { + _flags |= flag; + } + void clearFlag(HitZoneFlags flag) { + _flags &= ~flag; + } int getDirection() const { return ((_flags >> 4) & 0xF); } @@ -72,6 +78,7 @@ public: bool getSpecialPoint(Point &specialPoint) const; void draw(SURFACE *ds, int color); bool hitTest(const Point &testPoint); + private: int _flags; // Saga::HitZoneFlags int _clickAreasCount; @@ -99,7 +106,7 @@ public: void draw(SURFACE *drawSurface, const Point& testPoint, int color, int color2); int hitTest(const Point& testPoint); - const HitZone * getHitZone(int index) const { + HitZone *getHitZone(int16 index) { if ((index < 0) || (index >= _hitZoneListCount)) { error("ObjectMap::getHitZone wrong index 0x%X", index); } -- cgit v1.2.3