aboutsummaryrefslogtreecommitdiff
path: root/saga/actor.h
diff options
context:
space:
mode:
authorAndrew Kurushin2004-12-29 14:33:14 +0000
committerAndrew Kurushin2004-12-29 14:33:14 +0000
commit6b4264d3a8cb5ebd32b7510bffe781bb2f1ba8aa (patch)
treeb29a5db4be8e0bb2b1c1af78230fc9bda00ab638 /saga/actor.h
parent4d46b7882a42469932a89149e1fc2c6a0a3fa280 (diff)
downloadscummvm-rg350-6b4264d3a8cb5ebd32b7510bffe781bb2f1ba8aa.tar.gz
scummvm-rg350-6b4264d3a8cb5ebd32b7510bffe781bb2f1ba8aa.tar.bz2
scummvm-rg350-6b4264d3a8cb5ebd32b7510bffe781bb2f1ba8aa.zip
- fixed fingolfin notification
svn-id: r16369
Diffstat (limited to 'saga/actor.h')
-rw-r--r--saga/actor.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/saga/actor.h b/saga/actor.h
index b842b5b380..60e5de9f3f 100644
--- a/saga/actor.h
+++ b/saga/actor.h
@@ -111,6 +111,10 @@ enum ActorFlagsEx {
kActorRandom = (1 << 10)
};
+enum PathCellType {
+ kPathCellEmpty = -1,
+ kPathCellBarrier = 0x57
+};
struct PathDirectionData {
int direction;
@@ -279,10 +283,10 @@ private:
void findActorPath(ActorData * actor, const Point &pointFrom, const Point &pointTo);
void handleSpeech(int msec);
void handleActions(int msec, bool setup);
- void setPathCell(const Point &testPoint, byte value) {
+ void setPathCell(const Point &testPoint, int value) {
_pathCell[testPoint.x + testPoint.y * _xCellCount] = value;
}
- byte getPathCell(const Point &testPoint) {
+ int getPathCell(const Point &testPoint) {
return _pathCell[testPoint.x + testPoint.y * _xCellCount];
}
bool scanPathLine(const Point &point1, const Point &point2);
@@ -296,7 +300,7 @@ private:
SpeechData _activeSpeech;
Rect _barrierList[ACTOR_BARRIERS_MAX];
int _barrierCount;
- byte *_pathCell;
+ int *_pathCell;
int _pathCellCount;
int _xCellCount;
int _yCellCount;