#include <TerrainRoads.h>
Inherits SubsystemInterface.
Public Member Functions | |
| TerrainRoadCollection (void) | |
| ~TerrainRoadCollection (void) | |
| void | init () |
| void | reset () |
| void | update () |
| TerrainRoadType * | findRoad (AsciiString name) |
| find road with matching name | |
| TerrainRoadType * | newRoad (AsciiString name) |
| allocate new road, assing name, and link to list | |
| TerrainRoadType * | firstRoad (void) |
| return first road | |
| TerrainRoadType * | nextRoad (TerrainRoadType *road) |
| get next road | |
| TerrainRoadType * | findBridge (AsciiString name) |
| find bridge with matching name | |
| TerrainRoadType * | newBridge (AsciiString name) |
| allocate new bridge, assign name, and link | |
| TerrainRoadType * | firstBridge (void) |
| return first bridge | |
| TerrainRoadType * | nextBridge (TerrainRoadType *bridge) |
| get next bridge | |
| TerrainRoadType * | findRoadOrBridge (AsciiString name) |
| search roads and bridges | |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Attributes | |
| TerrainRoadType * | m_roadList |
| list of available roads | |
| TerrainRoadType * | m_bridgeList |
| list of available bridges | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Static Protected Attributes | |
| static UnsignedInt | m_idCounter = 0 |
| unique id counter when allocating roads/bridges | |
Collection of all roads and bridges
Definition at line 198 of file TerrainRoads.h.
| TerrainRoadCollection::TerrainRoadCollection | ( | void | ) |
< MUST start this at 1.
Definition at line 237 of file TerrainRoads.cpp.
| TerrainRoadCollection::~TerrainRoadCollection | ( | void | ) |
Definition at line 249 of file TerrainRoads.cpp.
| TerrainRoadType * TerrainRoadCollection::findBridge | ( | AsciiString | name | ) |
find bridge with matching name
Find bridge with matching name
Definition at line 308 of file TerrainRoads.cpp.
| TerrainRoadType * TerrainRoadCollection::findRoad | ( | AsciiString | name | ) |
find road with matching name
Find road with matching name
Definition at line 288 of file TerrainRoads.cpp.
| TerrainRoadType * TerrainRoadCollection::findRoadOrBridge | ( | AsciiString | name | ) |
search roads and bridges
Search the roads AND bridge lists for the name
Definition at line 328 of file TerrainRoads.cpp.
|
inline |
return first bridge
Definition at line 217 of file TerrainRoads.h.
|
inline |
return first road
Definition at line 212 of file TerrainRoads.h.
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 206 of file TerrainRoads.h.
| TerrainRoadType * TerrainRoadCollection::newBridge | ( | AsciiString | name | ) |
allocate new bridge, assign name, and link
Allocate a new bridge
Definition at line 378 of file TerrainRoads.cpp.
| TerrainRoadType * TerrainRoadCollection::newRoad | ( | AsciiString | name | ) |
allocate new road, assing name, and link to list
Allocate a new road, set the name, and link to the road list
Definition at line 342 of file TerrainRoads.cpp.
| TerrainRoadType * TerrainRoadCollection::nextBridge | ( | TerrainRoadType * | bridge | ) |
| TerrainRoadType * TerrainRoadCollection::nextRoad | ( | TerrainRoadType * | road | ) |
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 207 of file TerrainRoads.h.
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 208 of file TerrainRoads.h.
|
protected |
list of available bridges
Definition at line 225 of file TerrainRoads.h.
|
staticprotected |
unique id counter when allocating roads/bridges
Definition at line 226 of file TerrainRoads.h.
|
protected |
list of available roads
Definition at line 224 of file TerrainRoads.h.