SuperTuxKart
Loading...
Searching...
No Matches
Modules | Functions
Collaboration diagram for Track:

Modules

 PhysicalObject (script binding)
 Type returned by trackObject.getPhysicalObject()
 
 TrackObject (script binding)
 

Functions

::TrackObjectTrack::getTrackObject (std::string *libraryInstance, std::string *objID)
 Get a track object by ID.
 
CScriptArrayTrack::getTrackObjectList ()
 
void Track::createTrigger (std::string *triggerID, SimpleVec3 *creation_loc, float distance)
 Creates a trigger at the specified location.
 
void Track::createTextBillboard (std::string *text, SimpleVec3 *location)
 
void Track::setTriggerReenableTimeout (std::string *triggerID, std::string *lib_id, float reenable_time)
 Function for re-enable a trigger after a specific timeout.
 
void Track::exitRace ()
 Exits the race to the main menu.
 
void Track::pauseRace ()
 
int Track::getNumberOfKarts ()
 
int Track::getNumLocalPlayers ()
 
int Track::getKartType (int kartId)
 Gets the kart type, such as local player, networked player, AI, etc.
 
bool Track::isTrackReverse ()
 
int Track::getDifficulty ()
 Gets the difficulty setting for this race.
 
int Track::getMajorRaceMode ()
 
int Track::getMinorRaceMode ()
 
int Track::getGeometryLevel ()
 
bool Track::isDuringDay ()
 
uint32_t Track::getItemManagerRandomSeed ()
 
void Track::setFog (float maxDensity, float start, float end, int r, int g, int b, float duration)
 
SimpleVec3 TrackObject::getCenterPosition (::TrackObject *obj)
 
SimpleVec3 TrackObject::getOrigin (::TrackObject *obj)
 

Detailed Description

Function Documentation

◆ getDifficulty()

int Track::getDifficulty ( )

Gets the difficulty setting for this race.

Returns
A Difficulty enum as defined in race_manager.hpp, implicitly casted to an int

◆ getKartType()

int Track::getKartType ( int  kartId)

Gets the kart type, such as local player, networked player, AI, etc.

Returns
A KartType enum as defined in race_manager.hpp, implicitly casted to an int

◆ getTrackObject()

::TrackObject * Track::getTrackObject ( std::string *  libraryInstance,
std::string *  objID 
)

Get a track object by ID.

Returns
An object of type TrackObject (script binding)