Contains the player's current state information. More...
#include <player.h>
Public Attributes | |
| Vec2 | position |
| Current player position. | |
| Vec2 | direction |
| Last direction the player was facing. | |
| float | currentSpeed |
| Current movement speed. | |
| int | currentHealth |
| int | currentAmmo |
| bool | dashing |
| Whether the player is currently dashing. | |
| bool | directionLocked |
| Whether movement direction is locked. | |
| bool | moving |
| Whether the player is moving. | |
| bool | movementLocked |
| Whether movement is locked. | |
| float | crashOutMultiplier |
| Multipler that will be used fro crashout. | |
| GunData | currentGun |
| Currently equipped weapon. | |
| Gun | gunSlots [2] |
| Guns held by the player. | |
| SkillState | skillState |
| Player skills and abilities. | |
| Collider | collider |
| Player collision data. | |
| bool | insideRoom |
| Whether player is in a room. | |
| bool | insideHallway |
| Whether player is in a hallway. | |
| bool | insideEnd |
| Whether player is at an endpoint. | |
| SDL_RendererFlip | flip |
| Flip state for rendering. | |
Contains the player's current state information.
| Collider PlayerState::collider |
Player collision data.
| float PlayerState::crashOutMultiplier |
Multipler that will be used fro crashout.
| int PlayerState::currentAmmo |
| GunData PlayerState::currentGun |
Currently equipped weapon.
| int PlayerState::currentHealth |
| float PlayerState::currentSpeed |
Current movement speed.
| bool PlayerState::dashing |
Whether the player is currently dashing.
| Vec2 PlayerState::direction |
Last direction the player was facing.
| bool PlayerState::directionLocked |
Whether movement direction is locked.
| SDL_RendererFlip PlayerState::flip |
Flip state for rendering.
| Gun PlayerState::gunSlots[2] |
Guns held by the player.
| bool PlayerState::insideEnd |
Whether player is at an endpoint.
| bool PlayerState::insideHallway |
Whether player is in a hallway.
| bool PlayerState::insideRoom |
Whether player is in a room.
| bool PlayerState::movementLocked |
Whether movement is locked.
| bool PlayerState::moving |
Whether the player is moving.
| Vec2 PlayerState::position |
Current player position.
| SkillState PlayerState::skillState |
Player skills and abilities.