Public Member Functions | Public Attributes

CTrain Class Reference

List of all members.

Public Member Functions

uint GetId ()
uint GetLaneIndex ()
 CTrain (uint id, uint wagons, uint lane, string& name)
CLane@ GetLane ()
uint WagonCount ()
Critter@ GetWagon (uint n)
uint GetState (uint wagon)
uint GetState ()
string GetName ()
uint GetStartStation ()
CStation@ GetCurrentStation ()
uint NextLaneIndex ()
CStation@ GetNextStation ()
void Init ()
uint8 GetDepartureHour ()
void CheckDeparture ()
void Depart ()
void Inbound (CStation& station)
void Enter (CStation& station)
void Leave (CStation& station)
void AllArrived ()
void CheckArrival ()

Public Attributes

private uint Id
private uint Lane
private uint LaneIndex
array< Critter@> Wagons
private string Name

Constructor & Destructor Documentation

CTrain ( uint  id,
uint  wagons,
uint  lane,
string&  name 
)

Member Function Documentation

uint GetId (  ) 
uint GetLaneIndex (  ) 
CLane@ GetLane (  ) 
uint WagonCount (  ) 
Critter@ GetWagon ( uint  n  ) 
uint GetState ( uint  wagon  ) 
uint GetState (  ) 
string GetName (  ) 
uint GetStartStation (  ) 
CStation@ GetCurrentStation (  ) 
uint NextLaneIndex (  ) 
CStation@ GetNextStation (  ) 
void Init (  ) 
uint8 GetDepartureHour (  ) 
void CheckDeparture (  ) 
void Depart (  ) 
void Inbound ( CStation&  station  ) 
void Enter ( CStation&  station  ) 
void Leave ( CStation&  station  ) 
void AllArrived (  ) 
void CheckArrival (  ) 

Member Data Documentation

private uint Id
private uint Lane
private uint LaneIndex
array<Critter@> Wagons
private string Name