|
| GhostController (AbstractKart *kart, core::stringw display_name) |
|
virtual void | reset () OVERRIDE |
|
virtual void | update (int ticks) OVERRIDE |
|
virtual bool | disableSlipstreamBonus () const OVERRIDE |
|
virtual void | crashed (const Material *m) OVERRIDE |
|
virtual void | crashed (const AbstractKart *k) OVERRIDE |
|
virtual void | handleZipper (bool play_sound) OVERRIDE |
|
virtual void | finishedRace (float time) OVERRIDE |
| Called whan this controller's kart finishes the last lap. More...
|
|
virtual void | collectedItem (const ItemState &item, float previous_energy=0) OVERRIDE |
|
virtual void | setPosition (int p) OVERRIDE |
|
virtual bool | isPlayerController () const OVERRIDE |
| This function checks if this player is not an AI, i.e. More...
|
|
virtual bool | isLocalPlayerController () const OVERRIDE |
| This function checks if this is a local player. More...
|
|
virtual bool | action (PlayerAction action, int value, bool dry_run=false) OVERRIDE |
| Default: ignore actions. More...
|
|
virtual void | skidBonusTriggered () OVERRIDE |
|
virtual void | newLap (int lap) OVERRIDE |
| Callback whenever a new lap is triggered. More...
|
|
virtual bool | saveState (BareNetworkString *buffer) const OVERRIDE |
|
virtual void | rewindTo (BareNetworkString *buffer) OVERRIDE |
|
void | addReplayTime (float time) |
|
bool | isReplayEnd () const |
|
float | getReplayDelta () const |
|
unsigned int | getCurrentReplayIndex () const |
|
float | getTimeAtIndex (unsigned int index) const |
|
core::stringw | getName (bool include_handicap_string=true) const OVERRIDE |
| Return the display name; if not set, use default display name (kart name)
|
|
| Controller (AbstractKart *kart) |
| Constructor, saves the kart pointer and a pointer to the KartControl of the kart.
|
|
virtual void | rumble (float strength_low, float strength_high, uint16_t duration) |
|
virtual void | setControllerName (const std::string &name) |
| Sets the controller name for this controller. More...
|
|
const std::string & | getControllerName () const |
| Returns the name of this controller. More...
|
|
virtual KartControl * | getControls () |
| Get a pointer on the kart controls. More...
|
|
void | setControls (KartControl *kc) |
|
virtual bool | canGetAchievements () const |
| Only local players can get achievements. More...
|
|
AbstractKart * | getKart () const |
| Returns the kart controlled by this controller. More...
|
|
A class for Ghost controller.