#include <typen.h>
Inheritance diagram for MapCoordinate:

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 |
| MapCoordinate & | operator+= (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 |
Definition at line 202 of file typen.h.
| bool MapCoordinate::operator< | ( | const MapCoordinate & | mc | ) | const [inline] |
| bool MapCoordinate::operator== | ( | const MapCoordinate & | mc | ) | const [inline] |
| bool MapCoordinate::operator!= | ( | const MapCoordinate & | mc | ) | const [inline] |
| MapCoordinate & MapCoordinate::operator+= | ( | const MapCoodinateVector & | delta | ) |
Definition at line 295 of file typen.cpp.
References MapCoodinateVector::dx, MapCoodinateVector::dy, x, and y.
| void MapCoordinate::write | ( | tnstream & | stream | ) | const [inline] |
Reimplemented in AStar3D::PathPoint, and MapCoordinate3D.
Definition at line 212 of file typen.h.
References tnstream::writeInt(), x, and y.
Referenced by MapCoordinate3D::write(), GameMap::write(), DiscoverResources::ResourceViewState::write(), AStar3D::PathPoint::write(), VehicleAttackAction::writeData(), UnitCommand::writeData(), SpawnObject::writeData(), SpawnMine::writeData(), SpawnBuilding::writeData(), RemoveObject::writeData(), RemoveMine::writeData(), PutObjectCommand::writeData(), PutMineCommand::writeData(), JumpDriveCommand::writeData(), AddResources::writeData(), AddProductionCapability::writeData(), ChangeBuildingOwner::writeData(), ChangeBuildingDamage::writeData(), PositionTrigger::writeData(), DestructBuildingCommand::writeData(), ConstructUnitCommand::writeData(), ConstructBuildingCommand::writeData(), ChangeObjectProperty::writeData(), and AttackCommand::writeData().
| void MapCoordinate::read | ( | tnstream & | stream | ) | [inline] |
Reimplemented in AStar3D::PathPoint, and MapCoordinate3D.
Definition at line 213 of file typen.h.
References fatalError(), tnstream::readInt(), x, and y.
Referenced by MapCoordinate3D::read(), GameMap::read(), DiscoverResources::ResourceViewState::read(), AI::read(), AStar3D::PathPoint::read(), VehicleAttackAction::readData(), UnitCommand::readData(), SpawnObject::readData(), SpawnMine::readData(), SpawnBuilding::readData(), RemoveObject::readData(), RemoveMine::readData(), PutObjectCommand::readData(), PutMineCommand::readData(), JumpDriveCommand::readData(), AddResources::readData(), AddProductionCapability::readData(), ChangeBuildingOwner::readData(), ChangeBuildingDamage::readData(), PositionTrigger::readData(), DestructBuildingCommand::readData(), ConstructUnitCommand::readData(), ConstructBuildingCommand::readData(), ChangeObjectProperty::readData(), and AttackCommand::readData().
| bool MapCoordinate::valid | ( | ) | const [inline] |
Definition at line 221 of file typen.h.
Referenced by MapDisplayPG::centerOnField(), GuiIconHandler::checkForKey(), constructUnit(), AStar3D::dist(), DashboardPanel::eval(), NewGuiHost::evalCursor(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), UnitCommand::getCoordinates(), UnitFieldRegistration::getDescription(), AttackCommand::go(), MapDisplayPG::Cursor::goTo(), Weathercast::mouseClick(), OverviewMapPanel::mouseClick(), UnitWeaponRangeLayer::operateField(), UnitMovementRangeLayer::operateField(), DashboardPanel::painter(), placeCurrentItem(), removeCurrentItem(), setCursorPosition(), and ConstructUnitCommand::setVehicleType().
| void MapCoordinate::move | ( | int | width, | |
| int | height | |||
| ) |
Definition at line 302 of file typen.cpp.
Referenced by WeatherField::move(), and WeatherArea::update().
| ASCString MapCoordinate::toString | ( | bool | coordinates = false |
) | const |
Definition at line 307 of file typen.cpp.
References ASCString::format(), x, and y.
Referenced by ActionResult::ActionResult(), getBuildingReference(), VehicleAttackAction::getDescription(), UnitFieldRegistration::getDescription(), SpawnUnit::getDescription(), SpawnObject::getDescription(), SpawnMine::getDescription(), SpawnBuilding::getDescription(), RemoveObject::getDescription(), RemoveMine::getDescription(), PutObjectCommand::getDescription(), PutMineCommand::getDescription(), MoveUnitCommand::getDescription(), JumpDriveCommand::getDescription(), DestructBuildingCommand::getDescription(), ConstructUnitCommand::getDescription(), ConstructBuildingCommand::getDescription(), ChangeObjectProperty::getDescription(), CargoMoveCommand::getDescription(), AttackCommand::getDescription(), getUnitReference(), and resourceAnalysis().
| int MapCoordinate::x |
Definition at line 204 of file typen.h.
Referenced by beeline(), EditAiParam::buttonpressed(), calcMoveMalus(), calculateobject(), ccompare(), MapDisplayPG::centerOnField(), Building::chainbuildingtofield(), PutResource::checkbuilding(), GetResource::checkbuilding(), tsearchreactionfireingunits::checkfield(), MapDisplayPG::checkViewPosition(), compareMapResources(), MapDisplayInterface::displayActionCursor(), ReplayMapDisplay::displayMovingUnit(), MapDisplayInterface::displayPosition(), MapDisplayPG::displayUnitMovement(), NewGuiHost::evalCursor(), evaluateviewcalculation(), ASC_MainScreenWidget::eventKeyDown(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), execaction(), MapDisplayPG::fieldInView(), SpecificUnitEntersPolygon::fieldOperator(), CopyMap::fieldOperator(), AStar3D::findPath(), Building::getAvailableResource(), PutObjectCommand::getCommandString(), PutMineCommand::getCommandString(), MoveUnitCommand::getCommandString(), JumpDriveCommand::getCommandString(), DestructBuildingCommand::getCommandString(), ConstructUnitCommand::getCommandString(), ConstructBuildingCommand::getCommandString(), AttackCommand::getCommandString(), GameMap::getCursor(), getdirection(), GameMap::getField(), AStar3D::getFieldAccess(), BuildingType::getFieldCoordinate(), MapRenderer::getFieldPos2(), Building::getIdentification(), WeatherAreaInformation::getInformation(), BuildingType::getLocalCoordinate(), StratAStar3D::getMoveCost(), GuiFunctions::AttackGui::getName(), getNeighbouringFieldCoordinate(), AStar3D::getPosDir(), AStar3D::getPosHHop(), Building::getPosition3D(), AStar3D::PathPoint::getRealPos(), Building::getResource(), CargoDialog::getResourceValue(), MoveUnitCommand::go(), tcomputebuildingview::init(), tsearchreactionfireingunits::init(), EditAiParam::init(), MoveUnitCommand::isFieldReachable(), WeatherField::isOnMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), MapDisplayPG::mapGlobalPos2internalPos(), MapDisplayPG::mapViewPos2internalPos(), Weathercast::mouseClick(), OverviewMapPanel::mouseClick(), move(), movebuilding(), operator!=(), operator+(), operator+=(), operator-(), MapCoordinate3D::operator<(), operator<(), MapCoordinate3D::operator==(), operator==(), MapRenderer::paintTerrain(), Weathercast::paintWeatherArea(), ClipBoardBase::place(), UnitFieldRegistration::preCheck(), Building::putResource(), PutTribute::puttribute(), WeatherArea::read(), read(), resourceAnalysis(), tputresourcesdlg::run(), VehicleAttackAction::runAction(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), MoveUnit::runAction(), MapDisplayPG::scrollMap(), setCursorPosition(), MoveUnitCommand::setDestination(), Vehicle::setnewposition(), MapCoordinate3D::setnum(), AddResources::setup(), AddProductionCapability::setup(), ChangeBuildingOwner::setup(), ChangeBuildingDamage::setup(), BuildingPositionTrigger::setup(), AI::showFieldInformation(), MapNetwork::start(), SearchFields::startsearch(), OverviewMapImage::surface2map(), tcomputeview::testfield(), toString::tos(), toString(), UnitFieldRegistration::undoAction(), WeatherField::update(), Maped_MainScreenWidget::updateStatusBar(), valid(), viewterraininfo(), WeatherArea::WeatherArea(), WeatherField::WeatherField(), MapDisplayPG::widgetPos2mapPos(), windbeeline(), WeatherArea::write(), write(), and AiParameter::write().
| int MapCoordinate::y |
Definition at line 205 of file typen.h.
Referenced by beeline(), EditAiParam::buttonpressed(), calcMoveMalus(), calculateobject(), ccompare(), MapDisplayPG::centerOnField(), Building::chainbuildingtofield(), PutResource::checkbuilding(), GetResource::checkbuilding(), tsearchreactionfireingunits::checkfield(), MapDisplayPG::checkViewPosition(), compareMapResources(), MapDisplayInterface::displayActionCursor(), ReplayMapDisplay::displayMovingUnit(), MapDisplayInterface::displayPosition(), MapDisplayPG::displayUnitMovement(), NewGuiHost::evalCursor(), evaluateviewcalculation(), ASC_MainScreenWidget::eventKeyDown(), MapDisplayPG::eventMouseButtonDown(), MapDisplayPG::eventMouseMotion(), execaction(), MapDisplayPG::fieldInView(), SpecificUnitEntersPolygon::fieldOperator(), CopyMap::fieldOperator(), AStar3D::findPath(), Building::getAvailableResource(), PutObjectCommand::getCommandString(), PutMineCommand::getCommandString(), MoveUnitCommand::getCommandString(), JumpDriveCommand::getCommandString(), DestructBuildingCommand::getCommandString(), ConstructUnitCommand::getCommandString(), ConstructBuildingCommand::getCommandString(), AttackCommand::getCommandString(), GameMap::getCursor(), getdirection(), GameMap::getField(), AStar3D::getFieldAccess(), BuildingType::getFieldCoordinate(), MapRenderer::getFieldPos2(), Building::getIdentification(), WeatherAreaInformation::getInformation(), BuildingType::getLocalCoordinate(), StratAStar3D::getMoveCost(), GuiFunctions::AttackGui::getName(), getNeighbouringFieldCoordinate(), AStar3D::getPosDir(), AStar3D::getPosHHop(), Building::getPosition3D(), AStar3D::PathPoint::getRealPos(), Building::getResource(), CargoDialog::getResourceValue(), MoveUnitCommand::go(), tcomputebuildingview::init(), tsearchreactionfireingunits::init(), EditAiParam::init(), MoveUnitCommand::isFieldReachable(), WeatherField::isOnMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), MapDisplayPG::mapGlobalPos2internalPos(), MapDisplayPG::mapViewPos2internalPos(), Weathercast::mouseClick(), OverviewMapPanel::mouseClick(), move(), movebuilding(), operator!=(), operator+(), operator+=(), operator-(), MapCoordinate3D::operator<(), operator<(), MapCoordinate3D::operator==(), operator==(), MapRenderer::paintTerrain(), Weathercast::paintWeatherArea(), ClipBoardBase::place(), UnitFieldRegistration::preCheck(), Building::putResource(), PutTribute::puttribute(), WeatherArea::read(), read(), resourceAnalysis(), tputresourcesdlg::run(), VehicleAttackAction::runAction(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), MoveUnit::runAction(), MapDisplayPG::scrollMap(), setCursorPosition(), MoveUnitCommand::setDestination(), Vehicle::setnewposition(), MapCoordinate3D::setnum(), AddResources::setup(), AddProductionCapability::setup(), ChangeBuildingOwner::setup(), ChangeBuildingDamage::setup(), BuildingPositionTrigger::setup(), AI::showFieldInformation(), MapNetwork::start(), SearchFields::startsearch(), tcomputeview::testfield(), toString::tos(), toString(), UnitFieldRegistration::undoAction(), WeatherField::update(), Maped_MainScreenWidget::updateStatusBar(), valid(), viewterraininfo(), WeatherArea::WeatherArea(), WeatherField::WeatherField(), MapDisplayPG::widgetPos2mapPos(), windbeeline(), WeatherArea::write(), write(), and AiParameter::write().
1.5.1