#include <MovementComponent.hpp>
|
| ae::q20_12_t | getGroundHeight (ae::q20_12_t x, ae::q20_12_t z) const |
| TileType | isTileAt (int tileX, int tileY) |
| | Get the tile value at the given position.
|
| bool | isTileWalkable (ae::q20_12_t worldX, ae::q20_12_t worldZ) |
| | Checks for collision at the given position.
|
Definition at line 21 of file MovementComponent.hpp.
◆ configureMovement()
| void MovementComponent::configureMovement |
( |
const MovementConfig & | config | ) |
|
Configure the movement system.
Required to call before calling start().
- Parameters
-
| config | The struct containing the movement configuration to apply. |
Definition at line 127 of file MovementComponent.cpp.
◆ destroy()
| void MovementComponent::destroy |
( |
| ) |
|
|
override |
◆ getGroundHeight()
| ae::q20_12_t MovementComponent::getGroundHeight |
( |
ae::q20_12_t | x, |
|
|
ae::q20_12_t | z ) const |
|
private |
◆ getType()
| ae::ComponentTypeID MovementComponent::getType |
( |
| ) |
const |
|
inlineoverride |
◆ init()
| void MovementComponent::init |
( |
| ) |
|
|
override |
◆ isCharacterAt()
Get the current character position.
- Returns
- the character position & facing angle in 3D space
Definition at line 142 of file MovementComponent.cpp.
◆ isTileAt() [1/2]
| TileType MovementComponent::isTileAt |
( |
| ) |
|
◆ isTileAt() [2/2]
| TileType MovementComponent::isTileAt |
( |
int | tileX, |
|
|
int | tileY ) |
|
private |
◆ isTileWalkable()
| bool MovementComponent::isTileWalkable |
( |
ae::q20_12_t | worldX, |
|
|
ae::q20_12_t | worldZ ) |
|
private |
Checks for collision at the given position.
Collision is TileType::COLLISION
- Returns
- true if there is collision at the given position in 3D space, otherwise false
Definition at line 176 of file MovementComponent.cpp.
◆ start()
| void MovementComponent::start |
( |
| ) |
|
◆ stop()
| void MovementComponent::stop |
( |
| ) |
|
◆ submitToManager()
| void MovementComponent::submitToManager |
( |
| ) |
|
|
inlineoverrideprotected |
◆ update()
| void MovementComponent::update |
( |
ae::q20_12_t | | ) |
|
|
override |
Core update loop that calculates the character & camera movement.
- Parameters
-
| dt | Fixed-point delta time passed from the aegis engine loop (currently unused). |
Definition at line 23 of file MovementComponent.cpp.
◆ animationCtrl
◆ cameraMode
◆ config
◆ idleAnim
| int MovementComponent::idleAnim |
|
private |
◆ math
| MathManager& MovementComponent::math = MathManager::getInstance() |
|
private |
◆ TYPE_ID
◆ walkAnim
| int MovementComponent::walkAnim |
|
private |
The documentation for this class was generated from the following files: