|
WayPoint Class Reference
[Miscellaneous]
Special type of marker, distinguished by a name and team ID number. More...
Public Attributes | |
Misc | |
caseString | markerName |
Unique name representing this waypoint. | |
WayPointTeam | team |
Unique numerical ID assigned to this waypoint, or set of waypoints. | |
Static Public Attributes | |
static bool | isRenderable |
Disables rendering of all instances of this type. | |
static bool | isSelectable |
Disables selection of all instances of this type. |
Detailed Description
Special type of marker, distinguished by a name and team ID number.
The original Torque engines were built from a multi-player game called Tribes. The Tribes series featured various team based game modes, such as capture the flag. The WayPoint class survived the conversion from game (Tribes) to game engine (Torque).
Essentially, this is a MissionMarker with the addition of two variables: markerName and team. Whenever a WayPoint is created, it is added to a unique global list called WayPointSet. You can iterate through this set, seeking out specific markers determined by their markerName and team ID. This avoids the overhead of constantly calling commandToClient and commandToServer to determine a WayPoint object's name, unique ID, etc.
- Note:
- The markerName field was previously called name, but was changed because this conflicted with the SimObject name field. Existing scripts that relied on the WayPoint name field will need to be updated.
- Example:
- See also:
- MissionMarker
- MissionMarkerData
Member Data Documentation
caseString WayPoint::markerName |
Unique name representing this waypoint.
WayPointTeam WayPoint::team |
Unique numerical ID assigned to this waypoint, or set of waypoints.