From 3f6496d5b5b2caf0b935b27bca557ae53a880302 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sun, 23 Jan 2011 00:05:52 +0000 Subject: HUGO: Cleanup Suppress almost all defines, rename constants svn-id: r55451 --- engines/hugo/object.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/hugo/object.h') diff --git a/engines/hugo/object.h b/engines/hugo/object.h index 5e468ffcbb..1de2fb1621 100644 --- a/engines/hugo/object.h +++ b/engines/hugo/object.h @@ -35,8 +35,7 @@ #include "common/file.h" -#define MAXOBJECTS 128 // Used in Update_images() -#define BOUND(X, Y) ((_vm->getBoundaryOverlay()[Y * XBYTES + X / 8] & (0x80 >> X % 8)) != 0) // Boundary bit set +#define BOUND(X, Y) ((_vm->getBoundaryOverlay()[Y * kCompLineSize + X / 8] & (0x80 >> X % 8)) != 0) // Boundary bit set namespace Hugo { @@ -94,6 +93,11 @@ public: } protected: HugoEngine *_vm; + + static const int kEdge = 10; // Closest object can get to edge of screen + static const int kEdge2 = kEdge * 2; // Push object further back on edge collision + static const int kMaxObjNumb = 128; // Used in Update_images() + uint16 _objCount; void restoreSeq(object_t *obj); -- cgit v1.2.3