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

#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
 

Detailed Description

Definition at line 32 of file actionresult.h.

Constructor & Destructor Documentation

ActionResult::ActionResult ( int  code)

Definition at line 26 of file actionresult.cpp.

Referenced by DiplomacyCommand::go().

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 
)

Definition at line 50 of file actionresult.cpp.

References MapCoordinate::toString().

Member Function Documentation

int ActionResult::getCode ( ) const
inline
ASCString ActionResult::getMessage ( ) const
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::MovementBase::execute(), GuiFunctions::AttackGui::execute(), GameAction::execute(), CargoGuiFunctions::Movement::execute(), CargoGuiFunctions::UnitProduction::execute(), CargoGuiFunctions::UnitTraining::execute(), CargoGuiFunctions::RefuelUnitCommand::execute(), CargoGuiFunctions::RepairUnit::execute(), CargoGuiFunctions::MoveUnitUp::execute(), CargoGuiFunctions::MoveUnitIntoInnerContainer::execute(), CargoGuiFunctions::RecycleUnitCommandButton::execute(), CargoGuiFunctions::TransferUnitControl::execute(), GuiFunctions::PowerSwitch::execute(), ChangeDiplomaticStatus::execute(), GuiFunctions::DestructBuilding::execute(), GuiFunctions::EnableReactionfire::execute(), GuiFunctions::DisableReactionfire::execute(), GuiFunctions::JumpDriveIcon::execute(), GuiFunctions::RepairUnit::execute(), GuiFunctions::RefuelUnitCommand::execute(), GuiFunctions::PutMine::execute(), GuiFunctions::PutMineStage2::execute(), GuiFunctions::RemoveMine::execute(), GuiFunctions::ObjectBuildingGui::execute(), GuiFunctions::BuildObject::execute(), GuiFunctions::BuildVehicleCommand::execute(), GuiFunctions::ConstructBuilding::execute(), GuiFunctions::SelfDestructIcon::execute(), executeUserAction(), DestructUnitCommand::go(), PowerGenerationSwitchCommand::go(), ReactionFireSwitchCommand::go(), CargoMoveCommand::go(), TrainUnitCommand::go(), DiplomacyCommand::go(), RecycleUnitCommand::go(), JumpDriveCommand::go(), InternalAmmoTransferCommand::go(), RepairUnitCommand::go(), TransferControlCommand::go(), RepairBuildingCommand::go(), ConstructBuildingCommand::go(), RemoveProductionLineCommand::go(), DestructBuildingCommand::go(), ConstructUnitCommand::go(), BuildProductionLineCommand::go(), PutObjectCommand::go(), AttackCommand::go(), PutMineCommand::go(), MoveUnitCommand::go(), mergeActionFailures(), move(), moveUnitTest(), ChooseTech::ok(), InternalAmmoTransferHandler::performTransfer(), putMineFunc(), recycleUnit(), removeMineFunc(), removeProductionLine(), VehicleProduction_SelectionWindow::removeProductionLine(), renameContainer(), BuildingControlWindow::repair(), repairBuilding(), repairUnit(), ActionContainer::rerun(), tgiveunitawaydlg::run(), InflictDamage::runAction(), MoveUnit::runAction(), UnitFieldRegistration::runAction(), SpawnUnit::runAction(), Command::runAction(), runOpenTasks(), runTasks(), selfDestruct(), serviceCommand(), setDiplomacy(), setResearchGoal(), setResourceProcessingRate(), testActions(), testAttack1(), testAttack2(), testAttack3(), testDiplomacy3(), testHeightChangeAI(), testHeightChangeGUI(), testManualRepair(), 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().


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