#include <actionresult.h>
Public Member Functions | |
| ActionResult (int code) | |
| ActionResult (int code, const ASCString &message) | |
| ActionResult (int code, const ContainerBase *veh) | |
| ActionResult (int code, const ContainerBase *veh, const ASCString &message) | |
| ActionResult (int code, const MapCoordinate &pos) | |
| bool | successful () const |
| ASCString | getMessage () const |
| int | getCode () const |
Definition at line 32 of file actionresult.h.
| ActionResult::ActionResult | ( | int | code | ) |
| ActionResult::ActionResult | ( | int | code, | |
| const ASCString & | message | |||
| ) |
Definition at line 31 of file actionresult.cpp.
| ActionResult::ActionResult | ( | int | code, | |
| const ContainerBase * | veh | |||
| ) |
Definition at line 37 of file actionresult.cpp.
References ContainerBase::getName(), and ASCString::toString().
| ActionResult::ActionResult | ( | int | code, | |
| const ContainerBase * | veh, | |||
| const ASCString & | message | |||
| ) |
Definition at line 43 of file actionresult.cpp.
References ContainerBase::getName(), and ASCString::toString().
| ActionResult::ActionResult | ( | int | code, | |
| const MapCoordinate & | pos | |||
| ) |
| bool ActionResult::successful | ( | ) | const |
Definition at line 57 of file actionresult.cpp.
Referenced by assertSuccess(), attack(), autoTrainer(), buildProductionLine(), cancelResearch(), cargoUnitMove(), constructBuilding(), constructUnit(), trunreplay::execnextreplaymove(), GuiFunctions::SelfDestructIcon::execute(), GuiFunctions::ConstructBuilding::execute(), GuiFunctions::BuildVehicleCommand::execute(), GuiFunctions::BuildObject::execute(), GuiFunctions::ObjectBuildingGui::execute(), GuiFunctions::RemoveMine::execute(), GuiFunctions::PutMineStage2::execute(), GuiFunctions::PutMine::execute(), GuiFunctions::RefuelUnitCommand::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::JumpDriveIcon::execute(), GuiFunctions::DisableReactionfire::execute(), GuiFunctions::EnableReactionfire::execute(), GuiFunctions::DestructBuilding::execute(), GuiFunctions::PowerSwitch::execute(), GuiFunctions::MovementBase::execute(), GuiFunctions::AttackGui::execute(), ChangeDiplomaticStatus::execute(), CargoGuiFunctions::RecycleUnitCommandButton::execute(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), CargoGuiFunctions::TransferUnitControl::execute(), CargoGuiFunctions::MoveUnitUp::execute(), CargoGuiFunctions::RepairUnit::execute(), CargoGuiFunctions::RefuelUnitCommand::execute(), CargoGuiFunctions::UnitTraining::execute(), CargoGuiFunctions::UnitProduction::execute(), CargoGuiFunctions::Movement::execute(), GameAction::execute(), executeUserAction(), TransferControlCommand::go(), TrainUnitCommand::go(), RepairUnitCommand::go(), RepairBuildingCommand::go(), RemoveProductionLineCommand::go(), RecycleUnitCommand::go(), ReactionFireSwitchCommand::go(), PutObjectCommand::go(), PutMineCommand::go(), PowerGenerationSwitchCommand::go(), MoveUnitCommand::go(), JumpDriveCommand::go(), InternalAmmoTransferCommand::go(), DiplomacyCommand::go(), DestructUnitCommand::go(), DestructBuildingCommand::go(), ConstructUnitCommand::go(), ConstructBuildingCommand::go(), CargoMoveCommand::go(), BuildProductionLineCommand::go(), AttackCommand::go(), mergeActionFailures(), move(), moveUnitTest(), ChooseTech::ok(), InternalAmmoTransferHandler::performTransfer(), putMineFunc(), recycleUnit(), removeMineFunc(), VehicleProduction_SelectionWindow::removeProductionLine(), removeProductionLine(), renameContainer(), BuildingControlWindow::repair(), repairBuilding(), repairUnit(), ActionContainer::rerun(), tgiveunitawaydlg::run(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), InflictDamage::runAction(), Command::runAction(), selfDestruct(), serviceCommand(), setDiplomacy(), setResearchGoal(), setResourceProcessingRate(), testAttack1(), testAttack2(), testAttack3(), testDiplomacy3(), testHeightChangeAI(), testHeightChangeGUI(), testMapResizeWithMovement(), testMovement1(), testMovementFieldsReachable(), testObjectRemoval(), testRecycling(), testresearch1(), testresearch2(), testTransferControl(), testView1(), testView3(), trainUnit(), transferControl(), GameAction::undo(), unitAttack(), unitDestructBuilding(), unitJump(), unitMovement(), unitPowerGenerationEnable(), unitPutObject(), unitReactionFireEnable(), and AddProductionLine_SelectionItemFactory::vehicleTypeSelected().
| ASCString ActionResult::getMessage | ( | ) | const |
Definition at line 62 of file actionresult.cpp.
References ASCString::toString().
Referenced by assertSuccess(), GuiButton::callFunc(), displayActionError(), dispmessage2(), trunreplay::error(), ActionContainer::redo(), ActionContainer::undo(), and GameAction::undo().
| int ActionResult::getCode | ( | ) | const [inline] |
Definition at line 43 of file actionresult.h.
Referenced by displayActionError(), dispmessage2(), trunreplay::error(), trunreplay::execnextreplaymove(), GuiFunctions::MovementBase::execute(), and CargoGuiFunctions::Movement::execute().
1.5.1