#include <MapObject.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| MapObject (Coord3D loc, AsciiString name, Real angle, Int flags, const Dict *props, const ThingTemplate *thingTemplate) | |
| Dict * | getProperties () |
| return the object's property sheet. | |
| void | setNextMap (MapObject *nextMap) |
| Link the next map object. | |
| const Coord3D * | getLocation (void) const |
| Get the center point. | |
| Real | getAngle (void) const |
| Get the angle. | |
| Int | getColor (void) const |
| Gets whatever ui color we set. | |
| void | setColor (Int color) |
| Sets the ui color. | |
| AsciiString | getName (void) const |
| Gets the object name. | |
| void | setName (AsciiString name) |
| Sets the object name. | |
| void | setThingTemplate (const ThingTemplate *thing) |
| set template | |
| const ThingTemplate * | getThingTemplate (void) const |
| MapObject * | getNext (void) const |
| Next map object in the list. Not a copy, don't delete it. | |
| MapObject * | duplicate (void) |
| Allocates a copy. Caller is responsible for delete-ing this when done with it. | |
| void | setAngle (Real angle) |
| void | setLocation (Coord3D *pLoc) |
| void | setFlag (Int flag) |
| void | clearFlag (Int flag) |
| Bool | getFlag (Int flag) const |
| Int | getFlags (void) const |
| Bool | isSelected (void) const |
| void | setSelected (Bool sel) |
| Bool | isLight (void) const |
| Bool | isWaypoint (void) const |
| Bool | isScorch (void) const |
| void | setIsLight () |
| void | setIsWaypoint () |
| void | setIsScorch () |
| void | setRenderObj (RenderObjClass *pObj) |
| RenderObjClass * | getRenderObj (void) const |
| void | setShadowObj (Shadow *pObj) |
| Shadow * | getShadowObj (void) const |
| RenderObjClass * | getBridgeRenderObject (BridgeTowerType type) |
| void | setBridgeRenderObject (BridgeTowerType type, RenderObjClass *renderObj) |
| WaypointID | getWaypointID () |
| AsciiString | getWaypointName () |
| void | setWaypointID (Int i) |
| void | setWaypointName (AsciiString n) |
| void | validate (void) |
| void | verifyValidTeam (void) |
| void | verifyValidUniqueID (void) |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Static Public Member Functions | |
| static void | fastAssignAllUniqueIDs (void) |
| static MapObject * | getFirstMapObject (void) |
| static Dict * | getWorldDict () |
| static Int | countMapObjectsWithOwner (const AsciiString &n) |
Static Public Attributes | |
| static MapObject * | TheMapObjectListPtr = NULL |
| static Dict | TheWorldDict |
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 78 of file MapObject.h.
| MapObject::MapObject | ( | Coord3D | loc, |
| AsciiString | name, | ||
| Real | angle, | ||
| Int | flags, | ||
| const Dict * | props, | ||
| const ThingTemplate * | thingTemplate ) |
Definition at line 92 of file WorldHeightMap.cpp.
|
inline |
Definition at line 140 of file MapObject.h.
|
static |
Definition at line 352 of file WorldHeightMap.cpp.
| MapObject * MapObject::duplicate | ( | void | ) |
Allocates a copy. Caller is responsible for delete-ing this when done with it.
Definition at line 146 of file WorldHeightMap.cpp.
|
static |
Definition at line 280 of file WorldHeightMap.cpp.
|
inline |
Get the angle.
Definition at line 127 of file MapObject.h.
| RenderObjClass * MapObject::getBridgeRenderObject | ( | BridgeTowerType | type | ) |
Definition at line 167 of file WorldHeightMap.cpp.
|
inline |
Gets whatever ui color we set.
Definition at line 128 of file MapObject.h.
|
inlinestatic |
Definition at line 182 of file MapObject.h.
Definition at line 141 of file MapObject.h.
|
inline |
Definition at line 142 of file MapObject.h.
|
inline |
Get the center point.
Definition at line 126 of file MapObject.h.
|
inline |
Gets the object name.
Definition at line 130 of file MapObject.h.
|
inline |
Next map object in the list. Not a copy, don't delete it.
Definition at line 134 of file MapObject.h.
|
inline |
return the object's property sheet.
Definition at line 123 of file MapObject.h.
|
inline |
Definition at line 156 of file MapObject.h.
|
inline |
Definition at line 158 of file MapObject.h.
| const ThingTemplate * MapObject::getThingTemplate | ( | void | ) | const |
Definition at line 364 of file WorldHeightMap.cpp.
| WaypointID MapObject::getWaypointID | ( | ) |
Definition at line 347 of file WorldHeightMap.cpp.
| AsciiString MapObject::getWaypointName | ( | ) |
Definition at line 348 of file WorldHeightMap.cpp.
|
inlinestatic |
Definition at line 183 of file MapObject.h.
|
inline |
Definition at line 147 of file MapObject.h.
|
inline |
Definition at line 149 of file MapObject.h.
|
inline |
Definition at line 144 of file MapObject.h.
|
inline |
Definition at line 148 of file MapObject.h.
|
inline |
Definition at line 137 of file MapObject.h.
| void MapObject::setBridgeRenderObject | ( | BridgeTowerType | type, |
| RenderObjClass * | renderObj ) |
Definition at line 159 of file WorldHeightMap.cpp.
|
inline |
Sets the ui color.
Definition at line 129 of file MapObject.h.
|
inline |
Definition at line 139 of file MapObject.h.
|
inline |
Definition at line 151 of file MapObject.h.
|
inline |
Definition at line 153 of file MapObject.h.
|
inline |
Definition at line 152 of file MapObject.h.
|
inline |
Definition at line 138 of file MapObject.h.
| void MapObject::setName | ( | AsciiString | name | ) |
Sets the object name.
Definition at line 342 of file WorldHeightMap.cpp.
|
inline |
Link the next map object.
Definition at line 125 of file MapObject.h.
| void MapObject::setRenderObj | ( | RenderObjClass * | pObj | ) |
Definition at line 154 of file WorldHeightMap.cpp.
|
inline |
Definition at line 145 of file MapObject.h.
|
inline |
Definition at line 157 of file MapObject.h.
| void MapObject::setThingTemplate | ( | const ThingTemplate * | thing | ) |
set template
Definition at line 335 of file WorldHeightMap.cpp.
| void MapObject::setWaypointID | ( | Int | i | ) |
Definition at line 349 of file WorldHeightMap.cpp.
| void MapObject::setWaypointName | ( | AsciiString | n | ) |
Definition at line 350 of file WorldHeightMap.cpp.
| void MapObject::validate | ( | void | ) |
Definition at line 176 of file WorldHeightMap.cpp.
| void MapObject::verifyValidTeam | ( | void | ) |
Definition at line 182 of file WorldHeightMap.cpp.
| void MapObject::verifyValidUniqueID | ( | void | ) |
Definition at line 215 of file WorldHeightMap.cpp.
Definition at line 113 of file MapObject.h.
|
static |
Definition at line 114 of file MapObject.h.