aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hugo/object.h')
-rw-r--r--engines/hugo/object.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/hugo/object.h b/engines/hugo/object.h
index 1de2fb1621..3a7dd47042 100644
--- a/engines/hugo/object.h
+++ b/engines/hugo/object.h
@@ -35,8 +35,6 @@
#include "common/file.h"
-#define BOUND(X, Y) ((_vm->getBoundaryOverlay()[Y * kCompLineSize + X / 8] & (0x80 >> X % 8)) != 0) // Boundary bit set
-
namespace Hugo {
class ObjectHandler {
@@ -101,6 +99,10 @@ protected:
uint16 _objCount;
void restoreSeq(object_t *obj);
+
+ inline bool checkBoundary(int16 x, int16 y);
+ template <typename T>
+ inline int sign(T a) { if ( a < 0) return -1; else return 1; }
};
class ObjectHandler_v1d : public ObjectHandler {