22 #ifndef DARKSEED_PLAYER_H 23 #define DARKSEED_PLAYER_H 25 #include "common/rect.h" 26 #include "common/path.h" 27 #include "darkseed/nsp.h" 44 int16 _playerSpriteWalkIndex_maybe = 0;
45 int16 _playerWalkFrameDeltaOffset = 0;
46 int16 _playerNewFacingDirection_maybe = 0;
47 uint16 _playerWalkFrameIdx = 0;
48 bool _actionToPerform =
false;
49 bool _playerIsChangingDirection =
false;
50 bool _isAutoWalkingToBed =
false;
51 bool _heroMoving =
false;
52 bool _heroWaiting =
false;
53 int _walkPathIndex = -1;
54 uint16 _numConnectorsInWalkPath = 0;
56 int16 _sequenceRotation = -1;
57 bool _walkToSequence =
false;
59 bool _flipSprite =
false;
63 const Sprite &getSprite(
int frameNo)
const;
67 bool isAtPosition(
int x,
int y)
const;
68 bool isAtWalkTarget()
const;
69 void calculateWalkTarget();
71 void changeDirection(int16 oldDir, int16 newDir);
72 void playerFaceWalkTarget();
75 void updatePlayerPositionAfterRoomChange();
76 void setPlayerTowardsBedroom();
77 void walkToNextConnector();
80 void createConnectorPathToDest();
81 Common::Point getClosestUnusedConnector(int16 x, int16 y,
bool mustHaveCleanLine =
false);
82 void reverseConnectorList();
88 #endif // DARKSEED_PLAYER_H
Definition: adlib_worx.h:27