Context Class Reference

#include <context.h>

Inheritance diagram for Context:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Context ()
 Context (const Context &context, GameAction *action)

Public Attributes

GameMapgamemap
PlayeractingPlayer
GameActionparentAction
MapDisplayInterfacedisplay
int viewingPlayer
ActionContaineractionContainer

Detailed Description

Definition at line 31 of file context.h.


Constructor & Destructor Documentation

Context::Context (  ) 

Definition at line 24 of file context.cpp.

Context::Context ( const Context context,
GameAction action 
)

Definition at line 34 of file context.cpp.

References actingPlayer, actionContainer, display, gamemap, parentAction, and viewingPlayer.


Member Data Documentation

GameMap* Context::gamemap

Definition at line 36 of file context.h.

Referenced by autoTrainer(), Context(), createContext(), createFollowerContext(), trunreplay::createReplayContext(), createTestingContext(), and AI::getContext().

Player* Context::actingPlayer

Definition at line 37 of file context.h.

Referenced by autoTrainer(), Context(), createContext(), createFollowerContext(), trunreplay::createReplayContext(), createTestingContext(), AI::getContext(), RecycleUnitCommand::go(), MoveUnit::runAction(), ConsumeResource::runAction(), and ConsumeResource::undoAction().

GameAction* Context::parentAction

Definition at line 38 of file context.h.

Referenced by autoTrainer(), Context(), createContext(), createFollowerContext(), trunreplay::createReplayContext(), createTestingContext(), GameAction::execute(), and AI::getContext().

MapDisplayInterface* Context::display

Definition at line 39 of file context.h.

Referenced by tsearchreactionfireingunits::attack(), autoTrainer(), Context(), createContext(), trunreplay::createReplayContext(), createTestingContext(), AI::getContext(), TransferControlCommand::go(), ReactionFireSwitchCommand::go(), MoveUnitCommand::go(), JumpDriveCommand::go(), DestructUnitCommand::go(), DestructBuildingCommand::go(), ConstructUnitCommand::go(), ConstructBuildingCommand::go(), ReplayContext::ReplayContext(), VehicleAttackAction::runAction(), MoveUnit::runAction(), and VehicleAttackAction::undoAction().

int Context::viewingPlayer

Definition at line 40 of file context.h.

Referenced by autoTrainer(), Context(), createContext(), createFollowerContext(), trunreplay::createReplayContext(), createTestingContext(), AI::getContext(), VehicleAttackAction::runAction(), and MoveUnit::runAction().

ActionContainer* Context::actionContainer

Definition at line 41 of file context.h.

Referenced by autoTrainer(), Context(), createContext(), createFollowerContext(), trunreplay::createReplayContext(), createTestingContext(), GameAction::execute(), and AI::getContext().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:37 2012 for Advanced Strategic Command by  doxygen 1.5.1