22 #ifndef HARVESTER_PLAYER_MOVEMENT_H 23 #define HARVESTER_PLAYER_MOVEMENT_H 25 #include "harvester/player/player.h" 28 namespace PlayerMovement {
47 : walkFirstFrame(walkFirstFrame), walkLastFrame(walkLastFrame), idleFrame(idleFrame) {}
49 int walkFirstFrame = 0;
50 int walkLastFrame = 0;
54 extern const float kRoomDepthCompareEpsilon;
58 float mapRoomScreenYToDepth(
const RoomSetupState &state,
int screenY);
61 int computeRoomPlayerHorizontalStep(
const RoomSetupState &state,
float z);
67 int clampPlayerCenterXToNativeBounds(
const RoomPlayerState &playerState,
int centerX);
77 int horizontalDirection,
int depthDirection,
const Entity **blockerOut =
nullptr);
78 bool isPathfindingDebugEnabled();
81 int resolveFacingFromMoveDirection(
int horizontalDirection,
int depthDirection,
int fallbackFacing);
87 #endif // HARVESTER_PLAYER_MOVEMENT_H
Definition: player_movement.h:30
Definition: player_movement.h:44
Definition: harvester.h:47
Definition: player_movement.h:38