|
Potato Engine
|
Main managing class for the player, controlling interactions and non-local behavior. More...
#include <PlayerController.hpp>
Public Member Functions | |
| void | Initialize () |
| void | AssignPlayer (Player *player) |
| Player * | GetPlayer () const |
| Gets assigned Player. | |
| Camera * | GetCamera () const |
| Gets assigned Camera. | |
| virtual void | SetupInputBindings () |
| Called automatically to bind player inputs to InputController. | |
| Public Member Functions inherited from Tickable | |
| bool | isTicking () const |
| Checks if object is ticking. | |
| void | SetTicking (bool isEnabled) |
| Sets tick state for object. | |
Protected Member Functions | |
| virtual void | Tick (float dt) override |
| Update tick event. | |
Main managing class for the player, controlling interactions and non-local behavior.
Definition at line 12 of file PlayerController.hpp.
| PlayerController::PlayerController | ( | ) |
Definition at line 16 of file PlayerController.cpp.
|
virtual |
Definition at line 88 of file PlayerController.cpp.
| void PlayerController::Initialize | ( | ) |
Definition at line 20 of file PlayerController.cpp.
| void PlayerController::AssignPlayer | ( | Player * | player | ) |
Definition at line 60 of file PlayerController.cpp.
| Player * PlayerController::GetPlayer | ( | ) | const |
| Camera * PlayerController::GetCamera | ( | ) | const |
|
virtual |
Called automatically to bind player inputs to InputController.
Override to setup bindings:
Definition at line 70 of file PlayerController.cpp.
|
overrideprotectedvirtual |
Update tick event.
This function is called every tick on the update step. Put all gameplay functionality that should run every update here (custom movement logic, etc.)
| dt | Deltatime; time elapsed since last frame in ms |
Reimplemented from Tickable.
Definition at line 30 of file PlayerController.cpp.