diff options
author | lukaslw | 2014-07-10 16:41:13 +0200 |
---|---|---|
committer | lukaslw | 2014-07-10 16:41:13 +0200 |
commit | b711899a63e7e98bce9dc9509e9cc4a85486cb41 (patch) | |
tree | b42b2f505e2cb07f624126334bd1b5e28cc90551 /engines/prince/prince.h | |
parent | 1b1238d4b3796f487ecfd260cdb3f9607a0724b1 (diff) | |
download | scummvm-rg350-b711899a63e7e98bce9dc9509e9cc4a85486cb41.tar.gz scummvm-rg350-b711899a63e7e98bce9dc9509e9cc4a85486cb41.tar.bz2 scummvm-rg350-b711899a63e7e98bce9dc9509e9cc4a85486cb41.zip |
PRINCE: Pathfinding progress
Diffstat (limited to 'engines/prince/prince.h')
-rw-r--r-- | engines/prince/prince.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/prince/prince.h b/engines/prince/prince.h index c664d44896..b9dc249cc3 100644 --- a/engines/prince/prince.h +++ b/engines/prince/prince.h @@ -435,6 +435,7 @@ public: static const int16 kPathGridStep = 2; static const int32 kPathBitmapLen = (kMaxPicHeight / kPathGridStep * kMaxPicWidth / kPathGridStep) / 8; byte *_roomPathBitmap; // PL - Sala + byte *_roomPathBitmapTemp; // PL -SSala int _destX; int _destY; @@ -445,12 +446,23 @@ public: int _fpY; int _fpX1; int _fpY1; + Direction _direction; + + struct fpResult { + int x1; + int y1; + int x2; + int y2; + } _fpResult; bool loadPath(const char *resourceName); void makePath(int destX, int destY); void findPoint(int x1, int y1, int x2, int y2); bool fpGetPixelAddr(int x, int y); bool fpGetPixel(int x, int y); + int tracePath(int x1, int y1, int x2, int y2); + Direction makeDirection(int x1, int y1, int x2, int y2); + void approxPath(); int testAnimNr; int testAnimFrame; |