#include <TerrainLogic.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| Bridge (BridgeInfo &theInfo, Dict *props, AsciiString bridgeTemplateName) | |
| Bridge (Object *bridgeObj) | |
| void | setNext (Bridge *pNext) |
| Object * | createTower (Coord3D *worldPos, BridgeTowerType towerPos, const ThingTemplate *towerTemplate, Object *bridge) |
| AsciiString | getBridgeTemplateName (void) |
| return the bridge template name | |
| Bridge * | getNext (void) |
| Enumerate all bridges using getNext;. | |
| Real | getBridgeHeight (const Coord3D *pLoc, Coord3D *normal) |
| Get the height for an object on bridge. Note - assumes object is on bridge. Use isPointOnBridge to check. | |
| void | getBridgeInfo (class BridgeInfo *pInfo) |
| Get the bridges logical info. | |
| Bool | isPointOnBridge (const Coord3D *pLoc) |
| See if the point is on the bridge. | |
| Drawable * | pickBridge (const Vector3 &from, const Vector3 &to, Vector3 *pos) |
| void | updateDamageState (void) |
| Updates a bridge's damage info. | |
| const BridgeInfo * | peekBridgeInfo (void) const |
| PathfindLayerEnum | getLayer (void) const |
| void | setLayer (PathfindLayerEnum layer) |
| const Region2D * | getBounds (void) const |
| Bool | isCellOnEnd (const Region2D *cell) |
| Bool | isCellOnSide (const Region2D *cell) |
| Bool | isCellEntryPoint (const Region2D *cell) |
| void | setBridgeObjectID (ObjectID id) |
| void | setTowerObjectID (ObjectID id, BridgeTowerType which) |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Protected Attributes | |
| Bridge * | m_next |
| Link for traversing all bridges in the current map. | |
| AsciiString | m_templateName |
| bridge template name | |
| BridgeInfo | m_bridgeInfo |
| Region2D | m_bounds |
| PathfindLayerEnum | m_layer |
| 2d bounds for quick screening. | |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 162 of file TerrainLogic.h.
| Bridge::Bridge | ( | BridgeInfo & | theInfo, |
| Dict * | props, | ||
| AsciiString | bridgeTemplateName ) |
Definition at line 220 of file TerrainLogic.cpp.
| Bridge::Bridge | ( | Object * | bridgeObj | ) |
Definition at line 332 of file TerrainLogic.cpp.
| Object * Bridge::createTower | ( | Coord3D * | worldPos, |
| BridgeTowerType | towerType, | ||
| const ThingTemplate * | towerTemplate, | ||
| Object * | bridge ) |
Create a tower object for the bridge of the specified type (and therefore position)
Definition at line 129 of file TerrainLogic.cpp.
|
inline |
Definition at line 203 of file TerrainLogic.h.
Get the height for an object on bridge. Note - assumes object is on bridge. Use isPointOnBridge to check.
getHeight - Get the height for an object on bridge..
Definition at line 941 of file TerrainLogic.cpp.
|
inline |
Get the bridges logical info.
Definition at line 195 of file TerrainLogic.h.
|
inline |
return the bridge template name
Definition at line 189 of file TerrainLogic.h.
|
inline |
Definition at line 201 of file TerrainLogic.h.
|
inline |
Enumerate all bridges using getNext;.
Definition at line 191 of file TerrainLogic.h.
isCellEntryPoint - Is a pathfind cell a spot to move onto the bridge.
Definition at line 774 of file TerrainLogic.cpp.
isCellOnEnd - see if cell is on the end of the bridge.
Definition at line 648 of file TerrainLogic.cpp.
isCellOnSide - see if cell is on the end of the bridge.
Definition at line 700 of file TerrainLogic.cpp.
See if the point is on the bridge.
isPointOnBridge - see if point is on bridge.
Definition at line 455 of file TerrainLogic.cpp.
|
inline |
Definition at line 200 of file TerrainLogic.h.
pickBridge - see if point is on bridge.
Definition at line 844 of file TerrainLogic.cpp.
|
inline |
Definition at line 208 of file TerrainLogic.h.
|
inline |
Definition at line 202 of file TerrainLogic.h.
|
inline |
Definition at line 183 of file TerrainLogic.h.
|
inline |
Definition at line 209 of file TerrainLogic.h.
| void Bridge::updateDamageState | ( | void | ) |
Updates a bridge's damage info.
updateDamageState - Update the damage state.
Definition at line 876 of file TerrainLogic.cpp.
|
protected |
Definition at line 178 of file TerrainLogic.h.
|
protected |
Definition at line 177 of file TerrainLogic.h.
|
protected |
2d bounds for quick screening.
Pathfind layer for this bridge.
Definition at line 179 of file TerrainLogic.h.
|
protected |
Link for traversing all bridges in the current map.
Definition at line 175 of file TerrainLogic.h.
|
protected |
bridge template name
Definition at line 176 of file TerrainLogic.h.