Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
MapObject Class Reference

#include <MapObject.h>

Inherits MemoryPoolObject.

Public Member Functions

 MapObject (Coord3D loc, AsciiString name, Real angle, Int flags, const Dict *props, const ThingTemplate *thingTemplate)
 
DictgetProperties ()
 return the object's property sheet.
 
void setNextMap (MapObject *nextMap)
 Link the next map object.
 
const Coord3DgetLocation (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 ThingTemplategetThingTemplate (void) const
 
MapObjectgetNext (void) const
 Next map object in the list. Not a copy, don't delete it.
 
MapObjectduplicate (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)
 
RenderObjClassgetRenderObj (void) const
 
void setShadowObj (Shadow *pObj)
 
ShadowgetShadowObj (void) const
 
RenderObjClassgetBridgeRenderObject (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 MapObjectgetFirstMapObject (void)
 
static DictgetWorldDict ()
 
static Int countMapObjectsWithOwner (const AsciiString &n)
 

Static Public Attributes

static MapObjectTheMapObjectListPtr = 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 MemoryPoolgetObjectMemoryPool ()=0
 

Detailed Description

Definition at line 78 of file MapObject.h.

Constructor & Destructor Documentation

◆ MapObject()

MapObject::MapObject ( Coord3D loc,
AsciiString name,
Real angle,
Int flags,
const Dict * props,
const ThingTemplate * thingTemplate )

Definition at line 92 of file WorldHeightMap.cpp.

Member Function Documentation

◆ clearFlag()

void MapObject::clearFlag ( Int flag)
inline

Definition at line 140 of file MapObject.h.

◆ countMapObjectsWithOwner()

Int MapObject::countMapObjectsWithOwner ( const AsciiString & n)
static

Definition at line 352 of file WorldHeightMap.cpp.

◆ duplicate()

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.

◆ fastAssignAllUniqueIDs()

void MapObject::fastAssignAllUniqueIDs ( void )
static

Definition at line 280 of file WorldHeightMap.cpp.

◆ getAngle()

Real MapObject::getAngle ( void ) const
inline

Get the angle.

Definition at line 127 of file MapObject.h.

◆ getBridgeRenderObject()

RenderObjClass * MapObject::getBridgeRenderObject ( BridgeTowerType type)

Definition at line 167 of file WorldHeightMap.cpp.

◆ getColor()

Int MapObject::getColor ( void ) const
inline

Gets whatever ui color we set.

Definition at line 128 of file MapObject.h.

◆ getFirstMapObject()

static MapObject * MapObject::getFirstMapObject ( void )
inlinestatic

Definition at line 182 of file MapObject.h.

◆ getFlag()

Bool MapObject::getFlag ( Int flag) const
inline

Definition at line 141 of file MapObject.h.

◆ getFlags()

Int MapObject::getFlags ( void ) const
inline

Definition at line 142 of file MapObject.h.

◆ getLocation()

const Coord3D * MapObject::getLocation ( void ) const
inline

Get the center point.

Definition at line 126 of file MapObject.h.

◆ getName()

AsciiString MapObject::getName ( void ) const
inline

Gets the object name.

Definition at line 130 of file MapObject.h.

◆ getNext()

MapObject * MapObject::getNext ( void ) const
inline

Next map object in the list. Not a copy, don't delete it.

Definition at line 134 of file MapObject.h.

◆ getProperties()

Dict * MapObject::getProperties ( )
inline

return the object's property sheet.

Definition at line 123 of file MapObject.h.

◆ getRenderObj()

RenderObjClass * MapObject::getRenderObj ( void ) const
inline

Definition at line 156 of file MapObject.h.

◆ getShadowObj()

Shadow * MapObject::getShadowObj ( void ) const
inline

Definition at line 158 of file MapObject.h.

◆ getThingTemplate()

const ThingTemplate * MapObject::getThingTemplate ( void ) const

Definition at line 364 of file WorldHeightMap.cpp.

◆ getWaypointID()

WaypointID MapObject::getWaypointID ( )

Definition at line 347 of file WorldHeightMap.cpp.

◆ getWaypointName()

AsciiString MapObject::getWaypointName ( )

Definition at line 348 of file WorldHeightMap.cpp.

◆ getWorldDict()

static Dict * MapObject::getWorldDict ( )
inlinestatic

Definition at line 183 of file MapObject.h.

◆ isLight()

Bool MapObject::isLight ( void ) const
inline

Definition at line 147 of file MapObject.h.

◆ isScorch()

Bool MapObject::isScorch ( void ) const
inline

Definition at line 149 of file MapObject.h.

◆ isSelected()

Bool MapObject::isSelected ( void ) const
inline

Definition at line 144 of file MapObject.h.

◆ isWaypoint()

Bool MapObject::isWaypoint ( void ) const
inline

Definition at line 148 of file MapObject.h.

◆ setAngle()

void MapObject::setAngle ( Real angle)
inline

Definition at line 137 of file MapObject.h.

◆ setBridgeRenderObject()

void MapObject::setBridgeRenderObject ( BridgeTowerType type,
RenderObjClass * renderObj )

Definition at line 159 of file WorldHeightMap.cpp.

◆ setColor()

void MapObject::setColor ( Int color)
inline

Sets the ui color.

Definition at line 129 of file MapObject.h.

◆ setFlag()

void MapObject::setFlag ( Int flag)
inline

Definition at line 139 of file MapObject.h.

◆ setIsLight()

void MapObject::setIsLight ( )
inline

Definition at line 151 of file MapObject.h.

◆ setIsScorch()

void MapObject::setIsScorch ( )
inline

Definition at line 153 of file MapObject.h.

◆ setIsWaypoint()

void MapObject::setIsWaypoint ( )
inline

Definition at line 152 of file MapObject.h.

◆ setLocation()

void MapObject::setLocation ( Coord3D * pLoc)
inline

Definition at line 138 of file MapObject.h.

◆ setName()

void MapObject::setName ( AsciiString name)

Sets the object name.

Definition at line 342 of file WorldHeightMap.cpp.

◆ setNextMap()

void MapObject::setNextMap ( MapObject * nextMap)
inline

Link the next map object.

Definition at line 125 of file MapObject.h.

◆ setRenderObj()

void MapObject::setRenderObj ( RenderObjClass * pObj)

Definition at line 154 of file WorldHeightMap.cpp.

◆ setSelected()

void MapObject::setSelected ( Bool sel)
inline

Definition at line 145 of file MapObject.h.

◆ setShadowObj()

void MapObject::setShadowObj ( Shadow * pObj)
inline

Definition at line 157 of file MapObject.h.

◆ setThingTemplate()

void MapObject::setThingTemplate ( const ThingTemplate * thing)

set template

Definition at line 335 of file WorldHeightMap.cpp.

◆ setWaypointID()

void MapObject::setWaypointID ( Int i)

Definition at line 349 of file WorldHeightMap.cpp.

◆ setWaypointName()

void MapObject::setWaypointName ( AsciiString n)

Definition at line 350 of file WorldHeightMap.cpp.

◆ validate()

void MapObject::validate ( void )

Definition at line 176 of file WorldHeightMap.cpp.

◆ verifyValidTeam()

void MapObject::verifyValidTeam ( void )

Definition at line 182 of file WorldHeightMap.cpp.

◆ verifyValidUniqueID()

void MapObject::verifyValidUniqueID ( void )

Definition at line 215 of file WorldHeightMap.cpp.

Member Data Documentation

◆ TheMapObjectListPtr

MapObject * MapObject::TheMapObjectListPtr = NULL
static

Definition at line 113 of file MapObject.h.

◆ TheWorldDict

Dict MapObject::TheWorldDict
static

Definition at line 114 of file MapObject.h.


The documentation for this class was generated from the following files: