Advanced Strategic Command
Public Member Functions | List of all members
GuiFunction Class Referenceabstract

#include <guiiconhandler.h>

Inheritance diagram for GuiFunction:
Inheritance graph
[legend]

Public Member Functions

virtual bool available (const MapCoordinate &pos, ContainerBase *subject, int num)=0
 
virtual bool checkForKey (const SDL_KeyboardEvent *key, int modifier, int num)
 
virtual void execute (const MapCoordinate &pos, ContainerBase *subject, int num)=0
 
virtual SurfacegetImage (const MapCoordinate &pos, ContainerBase *subject, int num)=0
 
virtual ASCString getName (const MapCoordinate &pos, ContainerBase *subject, int num)=0
 
virtual ~GuiFunction ()
 

Detailed Description

Definition at line 46 of file guiiconhandler.h.

Constructor & Destructor Documentation

virtual GuiFunction::~GuiFunction ( )
inlinevirtual

Definition at line 54 of file guiiconhandler.h.

Member Function Documentation

virtual bool GuiFunction::available ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
pure virtual

Implemented in GuiFunctions::SelfDestructIcon, GuiFunctions::InternalAmmoTransferDialog, GuiFunctions::ConstructBuilding, GuiFunctions::BuildVehicleCommand, GuiFunctions::BuildObject, GuiFunctions::ObjectBuildingGui, GuiFunctions::RemoveMine, GuiFunctions::PutMineStage2, GuiFunctions::PutMine, GuiFunctions::RefuelUnitDialogCommand, GuiFunctions::RefuelUnitCommand, GuiFunctions::RepairUnit, GuiFunctions::JumpDriveIcon, GuiFunctions::DisableReactionfire, GuiFunctions::EnableReactionfire, GuiFunctions::OpenContainer, GuiFunctions::DestructBuilding, GuiFunctions::UnitInfo, GuiFunctions::PowerSwitch, GuiFunctions::Attack, ReplayGuiFunctions::ReplayRecordExit, GuiFunctions::EndTurn, GuiFunctions::Descend, ReplayGuiFunctions::ReplayRecord, GuiFunctions::Ascend, ReplayGuiFunctions::ReplayExit, ReplayGuiFunctions::ReplayRewind, ReplayGuiFunctions::ReplaySlower, CargoGuiFunctions::TransferUnitControl, ReplayGuiFunctions::ReplayFaster, CargoGuiFunctions::UnitInfo, CargoGuiFunctions::RecycleUnitCommandButton, CargoGuiFunctions::OpenContainer, ReplayGuiFunctions::ReplayPause, CargoGuiFunctions::MoveUnitIntoInnerContainer, CargoGuiFunctions::MoveUnitUp, ReplayGuiFunctions::ReplayPlay, CargoGuiFunctions::RepairUnit, CargoGuiFunctions::RefuelUnitDialogCommand, CargoGuiFunctions::RefuelUnitCommand, CargoGuiFunctions::UnitTraining, CargoGuiFunctions::UnitProduction, CargoGuiFunctions::Movement, CargoGuiFunctions::CloseDialog, CargoGuiFunctions::CancelMovement, GuiFunctions::AttackGui, GuiFunctions::Cancel, GuiFunctions::Movement, and GuiFunctions::MovementBase.

Referenced by GuiButton::checkForKey().

virtual bool GuiFunction::checkForKey ( const SDL_KeyboardEvent *  key,
int  modifier,
int  num 
)
inlinevirtual
virtual void GuiFunction::execute ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
pure virtual

Implemented in GuiFunctions::SelfDestructIcon, GuiFunctions::InternalAmmoTransferDialog, GuiFunctions::ConstructBuilding, GuiFunctions::BuildVehicleCommand, GuiFunctions::BuildObject, GuiFunctions::ObjectBuildingGui, GuiFunctions::RemoveMine, GuiFunctions::PutMineStage2, GuiFunctions::PutMine, GuiFunctions::RefuelUnitDialogCommand, GuiFunctions::RefuelUnitCommand, GuiFunctions::RepairUnit, GuiFunctions::JumpDriveIcon, GuiFunctions::DisableReactionfire, GuiFunctions::EnableReactionfire, GuiFunctions::OpenContainer, GuiFunctions::DestructBuilding, GuiFunctions::UnitInfo, GuiFunctions::PowerSwitch, GuiFunctions::Attack, ReplayGuiFunctions::ReplayRecordExit, GuiFunctions::EndTurn, ReplayGuiFunctions::ReplayRecord, ReplayGuiFunctions::ReplayExit, ReplayGuiFunctions::ReplayRewind, ReplayGuiFunctions::ReplaySlower, ReplayGuiFunctions::ReplayFaster, CargoGuiFunctions::TransferUnitControl, CargoGuiFunctions::UnitInfo, CargoGuiFunctions::RecycleUnitCommandButton, ReplayGuiFunctions::ReplayPause, CargoGuiFunctions::OpenContainer, CargoGuiFunctions::MoveUnitIntoInnerContainer, CargoGuiFunctions::MoveUnitUp, ReplayGuiFunctions::ReplayPlay, CargoGuiFunctions::RepairUnit, CargoGuiFunctions::RefuelUnitDialogCommand, CargoGuiFunctions::RefuelUnitCommand, CargoGuiFunctions::UnitTraining, CargoGuiFunctions::UnitProduction, CargoGuiFunctions::Movement, CargoGuiFunctions::CloseDialog, CargoGuiFunctions::CancelMovement, CargoGuiFunctions::MovementDestination, GuiFunctions::AttackGui, GuiFunctions::Cancel, and GuiFunctions::MovementBase.

Referenced by GuiButton::callFunc().

virtual Surface& GuiFunction::getImage ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
pure virtual

Implemented in GuiFunctions::SelfDestructIcon, GuiFunctions::InternalAmmoTransferDialog, GuiFunctions::ConstructBuilding, GuiFunctions::BuildVehicleCommand, GuiFunctions::BuildObject, GuiFunctions::ObjectBuildingGui, GuiFunctions::RemoveMine, GuiFunctions::PutAntiSubMine, GuiFunctions::PutAntiShipMine, GuiFunctions::PutAntiPersonalMine, GuiFunctions::PutAntiTankMine, GuiFunctions::PutMine, GuiFunctions::RefuelUnitDialogCommand, GuiFunctions::RefuelUnitCommand, GuiFunctions::RepairUnit, GuiFunctions::JumpDriveIcon, GuiFunctions::DisableReactionfire, GuiFunctions::EnableReactionfire, GuiFunctions::OpenContainer, GuiFunctions::DestructBuilding, GuiFunctions::UnitInfo, GuiFunctions::PowerOff, GuiFunctions::PowerOn, GuiFunctions::Attack, ReplayGuiFunctions::ReplayRecordExit, GuiFunctions::EndTurn, ReplayGuiFunctions::ReplayRecord, GuiFunctions::Descend, GuiFunctions::Ascend, ReplayGuiFunctions::ReplayExit, ReplayGuiFunctions::ReplayRewind, ReplayGuiFunctions::ReplaySlower, ReplayGuiFunctions::ReplayFaster, CargoGuiFunctions::TransferUnitControl, CargoGuiFunctions::UnitInfo, CargoGuiFunctions::RecycleUnitCommandButton, ReplayGuiFunctions::ReplayPause, CargoGuiFunctions::OpenContainer, CargoGuiFunctions::MoveUnitIntoInnerContainer, ReplayGuiFunctions::ReplayPlay, CargoGuiFunctions::MoveUnitUp, CargoGuiFunctions::RepairUnit, CargoGuiFunctions::RefuelUnitDialogCommand, CargoGuiFunctions::RefuelUnitCommand, CargoGuiFunctions::UnitTraining, CargoGuiFunctions::UnitProduction, CargoGuiFunctions::Movement, CargoGuiFunctions::CloseDialog, GuiFunctions::AttackGui, GuiFunctions::Cancel, and GuiFunctions::Movement.

Referenced by GuiButton::registerFunc().

virtual ASCString GuiFunction::getName ( const MapCoordinate pos,
ContainerBase subject,
int  num 
)
pure virtual

Implemented in GuiFunctions::SelfDestructIcon, GuiFunctions::InternalAmmoTransferDialog, GuiFunctions::ConstructBuilding, GuiFunctions::BuildVehicleCommand, GuiFunctions::BuildObject, GuiFunctions::ObjectBuildingGui, GuiFunctions::RemoveMine, GuiFunctions::PutAntiSubMine, GuiFunctions::PutAntiShipMine, GuiFunctions::PutAntiPersonalMine, GuiFunctions::PutAntiTankMine, GuiFunctions::PutMine, GuiFunctions::RefuelUnitDialogCommand, GuiFunctions::RefuelUnitCommand, GuiFunctions::RepairUnit, GuiFunctions::JumpDriveIcon, GuiFunctions::DisableReactionfire, GuiFunctions::EnableReactionfire, GuiFunctions::OpenContainer, GuiFunctions::DestructBuilding, GuiFunctions::UnitInfo, GuiFunctions::PowerOff, GuiFunctions::PowerOn, GuiFunctions::Attack, ReplayGuiFunctions::ReplayRecordExit, GuiFunctions::EndTurn, ReplayGuiFunctions::ReplayRecord, GuiFunctions::Descend, GuiFunctions::Ascend, ReplayGuiFunctions::ReplayExit, ReplayGuiFunctions::ReplayRewind, ReplayGuiFunctions::ReplaySlower, ReplayGuiFunctions::ReplayFaster, CargoGuiFunctions::TransferUnitControl, CargoGuiFunctions::UnitInfo, ReplayGuiFunctions::ReplayPause, CargoGuiFunctions::RecycleUnitCommandButton, CargoGuiFunctions::OpenContainer, CargoGuiFunctions::MoveUnitIntoInnerContainer, ReplayGuiFunctions::ReplayPlay, CargoGuiFunctions::MoveUnitUp, CargoGuiFunctions::RepairUnit, CargoGuiFunctions::RefuelUnitDialogCommand, CargoGuiFunctions::RefuelUnitCommand, CargoGuiFunctions::UnitTraining, CargoGuiFunctions::UnitProduction, CargoGuiFunctions::Movement, CargoGuiFunctions::CloseDialog, GuiFunctions::AttackGui, GuiFunctions::Cancel, and GuiFunctions::Movement.

Referenced by GuiButton::showInfoText(), and SmallGuiButton::showInfoText().


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