From fe424ed5ae36b0ac99d0f17ad563b57bed69cec5 Mon Sep 17 00:00:00 2001 From: Andrew Kurushin Date: Sat, 15 Jan 2005 23:46:43 +0000 Subject: - added partial scene change by actor's walking (todo:entrance should be supported) svn-id: r16568 --- saga/actionmap.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'saga/actionmap.h') diff --git a/saga/actionmap.h b/saga/actionmap.h index 9684a68975..3329d47b59 100644 --- a/saga/actionmap.h +++ b/saga/actionmap.h @@ -47,7 +47,12 @@ class ActionMap { int getExitSceneNumber(int index) const; int hitTest(const Point &testPoint); int draw(SURFACE *ds, int color); - + const HitZone * getHitZone(int index) const { + if ((index < 0) || (index >= _stepZoneListCount)) { + error("ActionMap::getHitZone wrong index 0x%X", index); + } + return _stepZoneList[index]; + } void cmdInfo(); private: -- cgit v1.2.3