Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
MapCoordinate Class Reference

Coordinate on the twodimensional map. More...

#include <typen.h>

Inheritance diagram for MapCoordinate:
Inheritance graph
[legend]

Public Member Functions

 MapCoordinate ()
 
 MapCoordinate (int _x, int _y)
 
bool operator< (const MapCoordinate &mc) const
 
bool operator== (const MapCoordinate &mc) const
 
bool operator!= (const MapCoordinate &mc) const
 
MapCoordinateoperator+= (const MapCoodinateVector &delta)
 
void write (tnstream &stream) const
 
void read (tnstream &stream)
 
bool valid () const
 
void move (int width, int height)
 
ASCString toString (bool coordinates=false) const
 

Public Attributes

int x
 
int y
 

Detailed Description

Coordinate on the twodimensional map.

Definition at line 202 of file typen.h.

Constructor & Destructor Documentation

MapCoordinate::MapCoordinate ( )
inline

Definition at line 206 of file typen.h.

MapCoordinate::MapCoordinate ( int  _x,
int  _y 
)
inline

Definition at line 207 of file typen.h.

Member Function Documentation

void MapCoordinate::move ( int  width,
int  height 
)

Definition at line 299 of file typen.cpp.

References x, and y.

Referenced by WeatherField::move(), and WeatherArea::update().

bool MapCoordinate::operator!= ( const MapCoordinate mc) const
inline

Definition at line 210 of file typen.h.

References x, and y.

MapCoordinate & MapCoordinate::operator+= ( const MapCoodinateVector delta)

Definition at line 292 of file typen.cpp.

References x, and y.

bool MapCoordinate::operator< ( const MapCoordinate mc) const
inline

Definition at line 208 of file typen.h.

References x, and y.

bool MapCoordinate::operator== ( const MapCoordinate mc) const
inline

Definition at line 209 of file typen.h.

References x, and y.

void MapCoordinate::read ( tnstream stream)
inline
ASCString MapCoordinate::toString ( bool  coordinates = false) const
bool MapCoordinate::valid ( ) const
inline
void MapCoordinate::write ( tnstream stream) const
inline

Member Data Documentation

int MapCoordinate::x

Definition at line 204 of file typen.h.

Referenced by GuiFunctions::MovementBase::available(), beeline(), EditAiParam::buttonpressed(), calcMoveMalus(), calculateobject(), ccompare(), MapDisplayPG::centerOnField(), Building::chainbuildingtofield(), GetResource::checkbuilding(), PutResource::checkbuilding(), tsearchreactionfireingunits::checkfield(), MapDisplayPG::checkViewPosition(), compareMapResources(), MapDisplayInterface::displayActionCursor(), ReplayMapDisplay::displayMovingUnit(), MapDisplayInterface::displayPosition(), MapDisplayPG::displayUnitMovement(), dumpNode(), NewGuiHost::evalCursor(), evaluateviewcalculation(), ASC_MainScreenWidget::eventKeyDown(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), execaction(), trunreplay::execnextreplaymove(), MapDisplayPG::fieldInView(), SpecificUnitEntersPolygon::fieldOperator(), CopyMap::fieldOperator(), AStar3D::findPath(), Building::getAvailableResource(), JumpDriveCommand::getCommandString(), ConstructBuildingCommand::getCommandString(), DestructBuildingCommand::getCommandString(), ConstructUnitCommand::getCommandString(), PutObjectCommand::getCommandString(), AttackCommand::getCommandString(), PutMineCommand::getCommandString(), MoveUnitCommand::getCommandString(), GameMap::getCursor(), getdirection(), GameMap::getField(), BuildingType::getFieldCoordinate(), MapRenderer::getFieldPos2(), Building::getIdentification(), WeatherAreaInformation::getInformation(), BuildingType::getLocalCoordinate(), StratAStar3D::getMoveCost(), PathFinder::getMovementFields(), GuiFunctions::AttackGui::getName(), getNeighbouringFieldCoordinate(), Building::getPosition3D(), AStar3D::PathPoint::getRealPos(), Building::getResource(), CargoDialog::getResourceValue(), MoveUnitCommand::go(), tcomputebuildingview::init(), tsearchreactionfireingunits::init(), EditAiParam::init(), AStar3D::initNode(), MoveUnitCommand::isFieldReachable(), WeatherField::isOnMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), MapDisplayPG::mapGlobalPos2internalPos(), MapDisplayPG::mapViewPos2internalPos(), OverviewMapPanel::mouseClick(), Weathercast::mouseClick(), move(), movebuilding(), operator!=(), AStar3D::hash_MapCoordinate3D::operator()(), AStar3D::hash_MapCoordinate::operator()(), operator+(), operator+=(), operator-(), operator<(), MapCoordinate3D::operator<(), operator==(), MapCoordinate3D::operator==(), MapRenderer::paintTerrain(), Weathercast::paintWeatherArea(), ClipBoardBase::place(), UnitFieldRegistration::preCheck(), Building::putResource(), PutTribute::puttribute(), WeatherArea::read(), read(), GameMap::resize(), resourceAnalysis(), tputresourcesdlg::run(), VehicleAttackAction::runAction(), MoveUnit::runAction(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), MapDisplayPG::scrollMap(), MapNetwork::searchbuilding(), setCursorPosition(), MoveUnitCommand::setDestination(), Vehicle::setnewposition(), MapCoordinate3D::setnum(), BuildingPositionTrigger::setup(), ChangeBuildingDamage::setup(), ChangeBuildingOwner::setup(), AddProductionCapability::setup(), AddResources::setup(), AI::showFieldInformation(), MapNetwork::start(), SearchFields::startsearch(), OverviewMapImage::surface2map(), tcomputeview::testfield(), toString::tos(), toString(), MapCoordinate3D::toString(), UnitFieldRegistration::undoAction(), WeatherField::update(), Maped_MainScreenWidget::updateStatusBar(), valid(), viewterraininfo(), WeatherArea::WeatherArea(), WeatherField::WeatherField(), MapDisplayPG::widgetPos2mapPos(), windbeeline(), WeatherArea::write(), and write().

int MapCoordinate::y

Definition at line 205 of file typen.h.

Referenced by GuiFunctions::MovementBase::available(), beeline(), EditAiParam::buttonpressed(), calcMoveMalus(), calculateobject(), ccompare(), MapDisplayPG::centerOnField(), Building::chainbuildingtofield(), GetResource::checkbuilding(), PutResource::checkbuilding(), tsearchreactionfireingunits::checkfield(), MapDisplayPG::checkViewPosition(), compareMapResources(), MapDisplayInterface::displayActionCursor(), ReplayMapDisplay::displayMovingUnit(), MapDisplayInterface::displayPosition(), MapDisplayPG::displayUnitMovement(), dumpNode(), NewGuiHost::evalCursor(), evaluateviewcalculation(), ASC_MainScreenWidget::eventKeyDown(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), execaction(), MapDisplayPG::fieldInView(), SpecificUnitEntersPolygon::fieldOperator(), CopyMap::fieldOperator(), AStar3D::findPath(), Building::getAvailableResource(), JumpDriveCommand::getCommandString(), ConstructBuildingCommand::getCommandString(), DestructBuildingCommand::getCommandString(), ConstructUnitCommand::getCommandString(), PutObjectCommand::getCommandString(), AttackCommand::getCommandString(), PutMineCommand::getCommandString(), MoveUnitCommand::getCommandString(), GameMap::getCursor(), getdirection(), GameMap::getField(), BuildingType::getFieldCoordinate(), MapRenderer::getFieldPos2(), Building::getIdentification(), WeatherAreaInformation::getInformation(), BuildingType::getLocalCoordinate(), StratAStar3D::getMoveCost(), PathFinder::getMovementFields(), GuiFunctions::AttackGui::getName(), getNeighbouringFieldCoordinate(), Building::getPosition3D(), AStar3D::PathPoint::getRealPos(), Building::getResource(), CargoDialog::getResourceValue(), MoveUnitCommand::go(), tcomputebuildingview::init(), tsearchreactionfireingunits::init(), EditAiParam::init(), AStar3D::initNode(), MoveUnitCommand::isFieldReachable(), WeatherField::isOnMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), MapDisplayPG::mapGlobalPos2internalPos(), MapDisplayPG::mapViewPos2internalPos(), OverviewMapPanel::mouseClick(), Weathercast::mouseClick(), move(), movebuilding(), operator!=(), AStar3D::hash_MapCoordinate3D::operator()(), AStar3D::hash_MapCoordinate::operator()(), operator+(), operator+=(), operator-(), operator<(), MapCoordinate3D::operator<(), operator==(), MapCoordinate3D::operator==(), MapRenderer::paintTerrain(), Weathercast::paintWeatherArea(), ClipBoardBase::place(), UnitFieldRegistration::preCheck(), Building::putResource(), PutTribute::puttribute(), WeatherArea::read(), read(), GameMap::resize(), resourceAnalysis(), tputresourcesdlg::run(), VehicleAttackAction::runAction(), MoveUnit::runAction(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), MapDisplayPG::scrollMap(), MapNetwork::searchbuilding(), setCursorPosition(), MoveUnitCommand::setDestination(), Vehicle::setnewposition(), MapCoordinate3D::setnum(), BuildingPositionTrigger::setup(), ChangeBuildingDamage::setup(), ChangeBuildingOwner::setup(), AddProductionCapability::setup(), AddResources::setup(), AI::showFieldInformation(), MapNetwork::start(), SearchFields::startsearch(), tcomputeview::testfield(), toString::tos(), toString(), MapCoordinate3D::toString(), UnitFieldRegistration::undoAction(), WeatherField::update(), Maped_MainScreenWidget::updateStatusBar(), valid(), viewterraininfo(), WeatherArea::WeatherArea(), WeatherField::WeatherField(), MapDisplayPG::widgetPos2mapPos(), windbeeline(), WeatherArea::write(), and write().


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