aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/route.h
diff options
context:
space:
mode:
authorArnaud Boutonné2011-02-11 07:12:29 +0000
committerArnaud Boutonné2011-02-11 07:12:29 +0000
commit3c5fb26a913b1b8c97da6a0ef0b6b0f2f1498b4b (patch)
treec003649b2806e76dc21b9f5eca96b412d10a3413 /engines/hugo/route.h
parentd8d9305c22969e98ac8e0c987ac27e7508ff705c (diff)
downloadscummvm-rg350-3c5fb26a913b1b8c97da6a0ef0b6b0f2f1498b4b.tar.gz
scummvm-rg350-3c5fb26a913b1b8c97da6a0ef0b6b0f2f1498b4b.tar.bz2
scummvm-rg350-3c5fb26a913b1b8c97da6a0ef0b6b0f2f1498b4b.zip
HUGO: refactoring: move boundaries to object class
svn-id: r55879
Diffstat (limited to 'engines/hugo/route.h')
-rw-r--r--engines/hugo/route.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/hugo/route.h b/engines/hugo/route.h
index f9c80642db..ca5d03d910 100644
--- a/engines/hugo/route.h
+++ b/engines/hugo/route.h
@@ -35,6 +35,11 @@
namespace Hugo {
+/**
+* Purpose of an automatic route
+*/
+enum go_t {kRouteSpace, kRouteExit, kRouteLook, kRouteGet};
+
struct Point {
int x;
int y;
@@ -49,8 +54,8 @@ class Route {
public:
Route(HugoEngine *vm);
- void resetRoute() {_routeIndex = -1; }
- int16 getRouteIndex() {return _routeIndex; }
+ void resetRoute() {_routeIndex = -1; }
+ int16 getRouteIndex() const {return _routeIndex; }
void processRoute();
bool startRoute(const go_t go_for, const int16 id, int16 cx, int16 cy);