MapCoordinate3D Class Reference

Coordinate on the map including height. More...

#include <typen.h>

Inheritance diagram for MapCoordinate3D:

Inheritance graph
[legend]
List of all members.

Public Member Functions

int getBitmappedHeight () const
int getNumericalHeight () const
void setNumericalHeight (int nh)
 MapCoordinate3D ()
 MapCoordinate3D (int _x, int _y, int bitmappedz)
bool operator< (const MapCoordinate3D &mc) const
 MapCoordinate3D (const MapCoordinate &mc, int bitmappedHeight)
void setnum (int _x, int _y, int numericalz)
bool operator== (const MapCoordinate3D &mc) const
bool operator!= (const MapCoordinate3D &mc) const
void write (tnstream &stream) const
void read (tnstream &stream)

Detailed Description

Coordinate on the map including height.

Definition at line 238 of file typen.h.


Constructor & Destructor Documentation

MapCoordinate3D::MapCoordinate3D (  )  [inline]

Definition at line 245 of file typen.h.

MapCoordinate3D::MapCoordinate3D ( int  _x,
int  _y,
int  bitmappedz 
) [inline]

Definition at line 246 of file typen.h.

MapCoordinate3D::MapCoordinate3D ( const MapCoordinate mc,
int  bitmappedHeight 
) [inline]

Definition at line 249 of file typen.h.


Member Function Documentation

int MapCoordinate3D::getBitmappedHeight (  )  const [inline]

Definition at line 241 of file typen.h.

Referenced by calcMoveMalus(), MapDisplayPG::displayUnitMovement(), AStar3D::dist(), AStar3D::findPath(), AStar3D::getMoveCost(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), AI::showFieldInformation(), and UnitFieldRegistration::undoAction().

int MapCoordinate3D::getNumericalHeight (  )  const [inline]

Definition at line 242 of file typen.h.

Referenced by AStar3D::AStar3D(), calcMoveMalus(), PG_MapDisplay::displayMovingUnit(), MapDisplayPG::displayUnitMovement(), AStar3D::dist(), AStar3D::findPath(), MoveUnitCommand::getCommandString(), AStar3D::getMoveCost(), PathFinder::getMovementFields(), AStar3D::getPosDir(), AStar3D::getPosHHop(), AStar3D::PathPoint::getRealHeight(), MoveUnitCommand::go(), tsearchreactionfireingunits::init(), EditAiParam::init(), MoveUnitCommand::searchFields(), ContainerBase::vehicleDocking(), and AiParameter::write().

void MapCoordinate3D::setNumericalHeight ( int  nh  )  [inline]

Definition at line 243 of file typen.h.

Referenced by PG_MapDisplay::displayMovingUnit(), and trunreplay::execnextreplaymove().

bool MapCoordinate3D::operator< ( const MapCoordinate3D mc  )  const [inline]

Definition at line 247 of file typen.h.

References MapCoordinate::x, MapCoordinate::y, and z.

void MapCoordinate3D::setnum ( int  _x,
int  _y,
int  numericalz 
) [inline]

Definition at line 250 of file typen.h.

References MapCoordinate::x, and MapCoordinate::y.

Referenced by EditAiParam::buttonpressed(), AStar3D::findPath(), PathFinder::getMovementFields(), Vehicle::getPosition3D(), Building::getPosition3D(), AStar3D::PathPoint::getRealPos(), AiParameter::read(), AiParameter::resetTask(), and MoveUnit::runAction().

bool MapCoordinate3D::operator== ( const MapCoordinate3D mc  )  const [inline]

Definition at line 251 of file typen.h.

References MapCoordinate::x, MapCoordinate::y, and z.

Referenced by operator!=().

bool MapCoordinate3D::operator!= ( const MapCoordinate3D mc  )  const [inline]

Definition at line 252 of file typen.h.

References operator==().

void MapCoordinate3D::write ( tnstream stream  )  const [inline]

Reimplemented from MapCoordinate.

Reimplemented in AStar3D::PathPoint.

Definition at line 253 of file typen.h.

References MapCoordinate::write(), and tnstream::writeInt().

Referenced by UnitFieldRegistration::writeData(), SpawnUnit::writeData(), and MoveUnitCommand::writeData().

void MapCoordinate3D::read ( tnstream stream  )  [inline]

Reimplemented from MapCoordinate.

Reimplemented in AStar3D::PathPoint.

Definition at line 254 of file typen.h.

References MapCoordinate::read(), and tnstream::readInt().

Referenced by UnitFieldRegistration::readData(), SpawnUnit::readData(), and MoveUnitCommand::readData().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:46:59 2012 for Advanced Strategic Command by  doxygen 1.5.1