|
| virtual void | update (int ticks) OVERRIDE |
| | General update function called once per frame. More...
|
| |
| unsigned int | getRescuePositionIndex (AbstractKart *kart) OVERRIDE |
| | Finds the starting position which is closest to the kart. More...
|
| |
|
virtual void | getKartsDisplayInfo (std::vector< RaceGUIBase::KartIconDisplayInfo > *info) OVERRIDE |
| | This function is not used in the overworld race gui.
|
| |
|
virtual bool | raceHasLaps () OVERRIDE |
| | Returns if this race mode has laps.
|
| |
|
virtual bool | isRaceOver () OVERRIDE |
| | The overworld is not a race per se so it's never over.
|
| |
|
virtual const std::string & | getIdent () const OVERRIDE |
| | Implement base class method.
|
| |
|
virtual bool | shouldDrawTimer () const OVERRIDE |
| | Override base class method.
|
| |
|
virtual void | onFirePressed (Controller *who) OVERRIDE |
| | Override base class method.
|
| |
|
virtual bool | useChecklineRequirements () const OVERRIDE |
| | Override settings from base class.
|
| |
|
void | scheduleSelectKart () |
| |
| virtual void | onMouseClick (int x, int y) OVERRIDE |
| | Called when a mouse click happens. More...
|
| |
| | World () |
| | The main world class is used to handle the track and the karts. More...
|
| |
| virtual unsigned int | getNumberOfRescuePositions () const |
| | Returns the number of rescue positions on a given track and game mode. More...
|
| |
| virtual btTransform | getRescueTransform (unsigned int index) const |
| | Returns the bullet transformation for the specified rescue index. More...
|
| |
| virtual void | moveKartAfterRescue (AbstractKart *kart) |
| | Places a kart that is rescued. More...
|
| |
|
virtual bool | showLapsTarget () |
| | If true lap counter shows lap count in format: 4/20 or if false then in format: 4.
|
| |
| virtual int | getFinishedLapsOfKart (unsigned int kart_index) const |
| | Returns the number of laps for a given kart. More...
|
| |
| virtual void | init () |
| | This function is called after instanciating. More...
|
| |
| virtual void | updateGraphics (float dt) |
| | This updates all only graphical elements. More...
|
| |
| virtual void | terminateRace () OVERRIDE |
| | Called at the end of a race. More...
|
| |
| virtual void | reset (bool restart=false) OVERRIDE |
| | This function is called before a race is started (i.e. More...
|
| |
|
virtual void | pause (Phase phase) OVERRIDE |
| | Pauses the music (and then pauses WorldStatus).
|
| |
|
virtual void | unpause () OVERRIDE |
| | Switches back from a pause state to the previous state.
|
| |
| virtual void | getDefaultCollectibles (int *collectible_type, int *amount) |
| | Called to determine the default collectibles to give each player at the start for this kind of race. More...
|
| |
| virtual void | collectedItem (const AbstractKart *kart, const ItemState *item) |
| | Receives notification if an item is collected. More...
|
| |
|
virtual void | endRaceEarly () |
| |
|
virtual bool | hasRaceEndedEarly () const |
| |
|
virtual bool | haveBonusBoxes () |
| | Called to determine whether this race mode uses bonus boxes.
|
| |
|
virtual bool | useFastMusicNearEnd () const |
| | Returns if this mode should use fast music (if available).
|
| |
|
virtual void | kartAdded (AbstractKart *kart, scene::ISceneNode *node) |
| | If you want to do something to karts or their graphics at the start of the race, override this.
|
| |
| virtual void | newLap (unsigned int kart_index) |
| | Called whenever a kart starts a new lap. More...
|
| |
|
virtual bool | kartHit (int kart_id, int hitter=-1) |
| | Called when a kart was hit by a projectile.
|
| |
|
Highscores * | getHighscores () const |
| |
|
Highscores * | getGPHighscores () const |
| |
|
void | schedulePause (Phase phase) |
| |
|
void | scheduleUnpause () |
| |
|
void | scheduleExitRace () |
| |
|
void | scheduleTutorial () |
| |
| void | updateWorld (int ticks) |
| | This is the main interface to update the world. More...
|
| |
|
void | handleExplosion (const Vec3 &xyz, AbstractKart *kart_hit, PhysicalObject *object) |
| |
| AbstractKart * | getPlayerKart (unsigned int player) const |
| | Returns the n-th player kart. More...
|
| |
| AbstractKart * | getLocalPlayerKart (unsigned int n) const |
| | Returns the nth local player kart, i.e. More...
|
| |
| virtual const btTransform & | getStartTransform (int index) |
| | Returns the start coordinates for a kart with a given index. More...
|
| |
| void | moveKartTo (AbstractKart *kart, const btTransform &t) |
| | Places the kart at a given position and rotation. More...
|
| |
|
void | updateTimeTargetSound () |
| |
|
RaceGUIBase * | getRaceGUI () const |
| | Returns a pointer to the race gui.
|
| |
|
unsigned int | getNumKarts () const |
| | Returns the number of karts in the race.
|
| |
|
AbstractKart * | getKart (int kartId) const |
| | Returns the kart with a given world id.
|
| |
|
const KartList & | getKarts () const |
| | Returns all karts.
|
| |
|
unsigned int | getCurrentNumKarts () const |
| | Returns the number of currently active (i.e.non-elikminated) karts.
|
| |
| unsigned int | getCurrentNumPlayers () const |
| | Returns the number of currently active (i.e. More...
|
| |
|
void | resetElimination () |
| |
|
virtual void | addReservedKart (int kart_id) |
| |
|
virtual void | saveCompleteState (BareNetworkString *bns, STKPeer *peer) |
| |
|
virtual void | restoreCompleteState (const BareNetworkString &buffer) |
| |
| virtual bool | shouldDrawSpeedometerDigit () const |
| |
| virtual std::pair< int, video::SColor > | getSpeedometerDigit (const AbstractKart *kart) const |
| |
| bool | useHighScores () const |
| |
|
virtual void | escapePressed () |
| |
|
virtual void | loadCustomModels () |
| |
|
void | eliminateKart (int kart_number, bool notify_of_elimination=true) |
| | Remove (eliminate) a kart from the race.
|
| |
|
void | setUnfairTeam (bool val) |
| |
|
virtual bool | hasTeam () const |
| |
|
KartTeam | getKartTeam (unsigned int kart_id) const |
| | Get the team of kart in world (including AIs)
|
| |
|
int | getTeamNum (KartTeam team) const |
| |
|
void | setNetworkWorld (bool is_networked) |
| | Set the network mode (true if networked)
|
| |
|
bool | isNetworkWorld () const |
| |
|
void | initTeamArrows (AbstractKart *k) |
| | Set the team arrow on karts if necessary.
|
| |
| virtual std::pair< uint32_t, uint32_t > | getGameStartedProgress () const |
| | Used by server to get the current started game progress in either or both remaining time or progress in percent. More...
|
| |
|
virtual bool | isGoalPhase () const |
| |
|
virtual | ~WorldStatus () |
| | Destructor of WorldStatus.
|
| |
| virtual void | updateTime (int ticks) |
| | Updates the world time and clock (which might be running backwards), and all status information, called once per frame at the end of the main loop. More...
|
| |
|
void | startReadySetGo () |
| |
|
virtual void | enterRaceOverState () |
| | Called when the race is finished, but it still leaves some time for an end of race animation, and potentially let some more AI karts finish the race.
|
| |
| void | setTime (const float time) |
| | Sets the time for the clock. More...
|
| |
| void | setTicks (int ticks) |
| | Sets a new time for the world time, measured in ticks. More...
|
| |
| void | setTicksForRewind (int ticks) |
| | Sets a new time for the world time (used by rewind), measured in ticks. More...
|
| |
|
bool | isStartPhase () const |
| |
|
bool | isRacePhase () const |
| |
|
bool | isActiveRacePhase () const |
| |
| bool | isFinishPhase () const |
| | While the race menu is being displayed, m_phase is limbo, and m_previous_phase is finish. More...
|
| |
|
const Phase | getPhase () const |
| | Returns the current race phase.
|
| |
| void | setPhase (Phase phase) |
| | Sets the current race phase. More...
|
| |
| void | setClockMode (const ClockType mode, const float initial_time=0.0f) |
| | Call to specify what kind of clock you want. More...
|
| |
|
int | getClockMode () const |
| | Returns the current clock mode.
|
| |
|
float | getTime () const |
| | Returns the current race time.
|
| |
|
uint64_t | getStart () const |
| | Returns the start time.
|
| |
| int | getTimeTicks () const |
| | Returns the current race time in time ticks (i.e. More...
|
| |
|
virtual void | countdownReachedZero () |
| | Will be called to notify your derived class that the clock, which is in COUNTDOWN mode, has reached zero.
|
| |
|
int | getTicksSinceStart () const |
| | Get the ticks since start regardless of which way the clock counts.
|
| |
|
int | getAuxiliaryTicks () const |
| |
|
bool | isLiveJoinWorld () const |
| |
|
void | setLiveJoinWorld (bool val) |
| |
|
int | getMusicDescriptionTicks () const |
| |
|
void | endLiveJoinWorld (int ticks_now) |
| | Base on the network timer set current world count up ticks to tick_now.
|
| |