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,
bool restoring) = 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);
119 static inline int sign(
int a) {
return (a < 0) ? -1 : 1; }
127 void homeIn(
const int objIndex1,
const int objIndex2,
const int8 objDx,
const int8 objDy)
override;
128 void moveObjects()
override;
129 void updateImages()
override;
130 void swapImages(
int objIndex1,
int objIndex2,
bool restoring)
override;
138 void moveObjects()
override;
139 void updateImages()
override;
141 void homeIn(
const int objIndex1,
const int objIndex2,
const int8 objDx,
const int8 objDy)
override;
149 void moveObjects()
override;
150 void swapImages(
int objIndex1,
int objIndex2,
bool restoring)
override;
158 void moveObjects()
override;
159 void updateImages()
override;
160 void swapImages(
int objIndex1,
int objIndex2,
bool restoring)
override;
164 #endif //HUGO_OBJECT_H
Path
Definition: game.h:76
Definition: default_display_client.h:65