Terminus
Public Member Functions | List of all members
terminus::LocalPlayer Class Reference

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>

Inheritance diagram for terminus::LocalPlayer:
terminus::AbstractPlayer

Public Member Functions

 LocalPlayer (World &world, Train *train)
 
- Public Member Functions inherited from terminus::AbstractPlayer
 AbstractPlayer (World &world, Train *train)
 
Cameracamera ()
 
Traintrain ()
 
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
AbstractWagonselectedWagon ()
 
- Protected Attributes inherited from terminus::AbstractPlayer
Worldm_world
 
Camera m_camera
 
Trainm_train
 
bool m_animationInProgress
 
Timer::TimerID m_animationTimer
 
unsigned int m_selectedWagonIndex
 

Detailed Description

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.

Constructor & Destructor Documentation

terminus::LocalPlayer::LocalPlayer ( World world,
Train train 
)

The documentation for this class was generated from the following files: