Terminus
|
The LocalPlayer class represents a local player that interacts with the World and their Train. It does not contain any logic; the sole purpose of this class is to distinguish different player types. More...
#include <localplayer.h>
Public Member Functions | |
LocalPlayer (World &world, Train *train) | |
Public Member Functions inherited from terminus::AbstractPlayer | |
AbstractPlayer (World &world, Train *train) | |
Camera & | camera () |
Train * | train () |
bool | hasWon () |
bool | hasLost () |
void | toggleCameraLock () |
unsigned int | selectedWagonIndex () const |
void | switchToNextWagon () |
void | switchToPreviousWagon () |
void | switchToWagon (unsigned int wagonIndex) |
virtual void | primaryAction () |
Triggers the primary action of the currently selected wagon. More... | |
virtual void | primaryActionDebug () |
Triggers the primary debug action of the currently selected wagon (typically the primary action without cooldown limitations etc.) More... | |
virtual void | animateHit () |
virtual void | update () |
Additional Inherited Members | |
Protected Member Functions inherited from terminus::AbstractPlayer | |
AbstractWagon * | selectedWagon () |
Protected Attributes inherited from terminus::AbstractPlayer | |
World & | m_world |
Camera | m_camera |
Train * | m_train |
bool | m_animationInProgress |
Timer::TimerID | m_animationTimer |
unsigned int | m_selectedWagonIndex |
The LocalPlayer class represents a local player that interacts with the World and their Train. It does not contain any logic; the sole purpose of this class is to distinguish different player types.