RigsofRods
Soft-body Physics Simulation
Private Member Functions | Private Attributes
Script2Script::raceBuilder Class Reference

This class manages a race (singular!) You should only use this directly if the racesManager doesn't suit your needs. More...

#include <races.as.h>

Private Member Functions

 raceBuilder (int id)
 
void setVersion (const string &in version)
 
void addChpCoordinates (double[][] checkpoints_in, const string &in objName_checkpoint, const string &in objName_start, const string &in objName_finish, uint startNumber)
 
int getNextCheckpointNum (int lastCheckpoint)
 
int getPreviousCheckpointNum (int lastCheckpoint)
 
void addCheckpoint (int number, const string &in objName, const double[] &in v)
 
void deleteCheckpoint (int number)
 
uint getRealInstanceCount (int chpNum)
 
bool checkpointExists (int chpNum, int instance)
 
void deleteCheckpoint (int number, int instance)
 
void destroy ()
 this function removes all checkpoints again More...
 
void hide ()
 
void unhide ()
 
void setLaps (int laps_in)
 
bool isLocked ()
 
void saveRace (Script2Game::LocalStorage@ d)
 
void loadRace (Script2Game::LocalStorage@ d)
 

Private Attributes

string raceName
 
double[][][] checkpoints
 
array< array< string > > objNames
 
int checkPointsCount
 
int id
 
double bestLapTime
 
double bestRaceTime
 
int laps
 
double[] bestTimeTillPoint
 
double[] lastTimeTillPoint
 
int finishNum
 
int startNum
 
int[] chpInstances
 
bool locked
 
bool completed
 
int penaltyTime
 
string raceVersion
 
bool isBuilt
 
bool awaitingRecycling
 
bool hidden
 
string raceBuilderVersion
 

Detailed Description

This class manages a race (singular!) You should only use this directly if the racesManager doesn't suit your needs.

Definition at line 578 of file races.as.h.

Constructor & Destructor Documentation

◆ raceBuilder()

Script2Script::raceBuilder::raceBuilder ( int  id)
private

Member Function Documentation

◆ addCheckpoint()

void Script2Script::raceBuilder::addCheckpoint ( int  number,
const string &in  objName,
const double &[]in  v 
)
private

◆ addChpCoordinates()

void Script2Script::raceBuilder::addChpCoordinates ( double  checkpoints_in[][],
const string &in  objName_checkpoint,
const string &in  objName_start,
const string &in  objName_finish,
uint  startNumber 
)
private

◆ checkpointExists()

bool Script2Script::raceBuilder::checkpointExists ( int  chpNum,
int  instance 
)
private

◆ deleteCheckpoint() [1/2]

void Script2Script::raceBuilder::deleteCheckpoint ( int  number)
private

◆ deleteCheckpoint() [2/2]

void Script2Script::raceBuilder::deleteCheckpoint ( int  number,
int  instance 
)
private

◆ destroy()

void Script2Script::raceBuilder::destroy ( )
private

this function removes all checkpoints again

◆ getNextCheckpointNum()

int Script2Script::raceBuilder::getNextCheckpointNum ( int  lastCheckpoint)
private

◆ getPreviousCheckpointNum()

int Script2Script::raceBuilder::getPreviousCheckpointNum ( int  lastCheckpoint)
private

◆ getRealInstanceCount()

uint Script2Script::raceBuilder::getRealInstanceCount ( int  chpNum)
private

◆ hide()

void Script2Script::raceBuilder::hide ( )
private

◆ isLocked()

bool Script2Script::raceBuilder::isLocked ( )
private

◆ loadRace()

void Script2Script::raceBuilder::loadRace ( Script2Game::LocalStorage@  d)
private

◆ saveRace()

void Script2Script::raceBuilder::saveRace ( Script2Game::LocalStorage@  d)
private

◆ setLaps()

void Script2Script::raceBuilder::setLaps ( int  laps_in)
private

◆ setVersion()

void Script2Script::raceBuilder::setVersion ( const string &in  version)
private

◆ unhide()

void Script2Script::raceBuilder::unhide ( )
private

Field Documentation

◆ awaitingRecycling

bool Script2Script::raceBuilder::awaitingRecycling
private

Definition at line 598 of file races.as.h.

◆ bestLapTime

double Script2Script::raceBuilder::bestLapTime
private

Definition at line 585 of file races.as.h.

◆ bestRaceTime

double Script2Script::raceBuilder::bestRaceTime
private

Definition at line 586 of file races.as.h.

◆ bestTimeTillPoint

double [] Script2Script::raceBuilder::bestTimeTillPoint
private

Definition at line 588 of file races.as.h.

◆ checkpoints

double [][][] Script2Script::raceBuilder::checkpoints
private

Definition at line 581 of file races.as.h.

◆ checkPointsCount

int Script2Script::raceBuilder::checkPointsCount
private

Definition at line 583 of file races.as.h.

◆ chpInstances

int [] Script2Script::raceBuilder::chpInstances
private

Definition at line 592 of file races.as.h.

◆ completed

bool Script2Script::raceBuilder::completed
private

Definition at line 594 of file races.as.h.

◆ finishNum

int Script2Script::raceBuilder::finishNum
private

Definition at line 590 of file races.as.h.

◆ hidden

bool Script2Script::raceBuilder::hidden
private

Definition at line 599 of file races.as.h.

◆ id

int Script2Script::raceBuilder::id
private

Definition at line 584 of file races.as.h.

◆ isBuilt

bool Script2Script::raceBuilder::isBuilt
private

Definition at line 597 of file races.as.h.

◆ laps

int Script2Script::raceBuilder::laps
private

Definition at line 587 of file races.as.h.

◆ lastTimeTillPoint

double [] Script2Script::raceBuilder::lastTimeTillPoint
private

Definition at line 589 of file races.as.h.

◆ locked

bool Script2Script::raceBuilder::locked
private

Definition at line 593 of file races.as.h.

◆ objNames

array<array<string> > Script2Script::raceBuilder::objNames
private

Definition at line 582 of file races.as.h.

◆ penaltyTime

int Script2Script::raceBuilder::penaltyTime
private

Definition at line 595 of file races.as.h.

◆ raceBuilderVersion

string Script2Script::raceBuilder::raceBuilderVersion
private

Definition at line 600 of file races.as.h.

◆ raceName

string Script2Script::raceBuilder::raceName
private

Definition at line 580 of file races.as.h.

◆ raceVersion

string Script2Script::raceBuilder::raceVersion
private

Definition at line 596 of file races.as.h.

◆ startNum

int Script2Script::raceBuilder::startNum
private

Definition at line 591 of file races.as.h.


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