32 #include "common/file.h" 60 byte getBoundaryOverlay(uint16 index)
const;
61 byte getObjectBoundary(uint16 index)
const;
62 byte getBaseBoundary(uint16 index)
const;
63 byte getFirstOverlay(uint16 index)
const;
65 int deltaX(
const int x1,
const int x2,
const int vx,
int y)
const;
66 int deltaY(
const int x1,
const int x2,
const int vy,
const int y)
const;
67 void boundaryCollision(
Object *obj);
68 void clearBoundary(
const int x1,
const int x2,
const int y);
69 void clearScreenBoundary(
const int x1,
const int x2,
const int y);
70 void storeBoundary(
const int x1,
const int x2,
const int y);
72 virtual void homeIn(
const int objIndex1,
const int objIndex2,
const int8 objDx,
const int8 objDy) = 0;
73 virtual void moveObjects() = 0;
74 virtual void updateImages() = 0;
75 virtual void swapImages(
int objIndex1,
int objIndex2) = 0;
77 bool isCarrying(uint16 wordIndex);
78 bool findObjectSpace(
Object *obj, int16 *destx, int16 *desty);
81 int16 findObject(uint16 x, uint16 y);
86 void lookObject(
Object *obj);
87 void readObjectImages();
94 void setCarriedScreen(
int screenNum);
96 void useObject(int16 objId);
98 static int y2comp(
const void *a,
const void *b);
100 bool isCarried(
int objIndex)
const;
101 void setCarry(
int objIndex,
bool val);
102 void setVelocity(
int objIndex, int8 vx, int8 vy);
103 void setPath(
int objIndex,
Path pathType, int16 vxPath, int16 vyPath);
108 static const int kEdge = 10;
109 static const int kEdge2 = kEdge * 2;
110 static const int kMaxObjNumb = 128;
116 void restoreSeq(
Object *obj);
118 inline bool checkBoundary(int16 x, int16 y);
120 inline int sign(T a) {
if ( a < 0)
return -1;
else return 1; }
128 void homeIn(
const int objIndex1,
const int objIndex2,
const int8 objDx,
const int8 objDy)
override;
129 void moveObjects()
override;
130 void updateImages()
override;
131 void swapImages(
int objIndex1,
int objIndex2)
override;
139 void moveObjects()
override;
140 void updateImages()
override;
142 void homeIn(
const int objIndex1,
const int objIndex2,
const int8 objDx,
const int8 objDy)
override;
150 void moveObjects()
override;
151 void swapImages(
int objIndex1,
int objIndex2)
override;
159 void moveObjects()
override;
160 void updateImages()
override;
161 void swapImages(
int objIndex1,
int objIndex2)
override;
165 #endif //HUGO_OBJECT_H
Path
Definition: game.h:75
Definition: default_display_client.h:65