ServerShotState Class Reference

#include <ServerShotState.h>

Inheritance diagram for ServerShotState:

GameStateI GameStateStimulusI

List of all members.

Public Member Functions

 ServerShotState ()
virtual ~ServerShotState ()
virtual void enterState (const unsigned state)
virtual bool acceptStateChange (const unsigned state, const unsigned nextState, float frameTime)
std::set< unsigned
int > & 
getPlaying ()

Protected Attributes

ShotState shotState_
std::set< unsigned int > playing_


Detailed Description

Definition at line 30 of file ServerShotState.h.


Constructor & Destructor Documentation

ServerShotState::ServerShotState (  ) 

Definition at line 32 of file ServerShotState.cpp.

ServerShotState::~ServerShotState (  )  [virtual]

Definition at line 38 of file ServerShotState.cpp.


Member Function Documentation

void ServerShotState::enterState ( const unsigned  state  )  [virtual]

Reimplemented from GameStateI.

Definition at line 42 of file ServerShotState.cpp.

References PlayShots::createMessage(), ScorchedContext::getActionController(), Tank::getDestinationId(), ScorchedContext::getOptionsTransient(), TankContainer::getPlayingTanks(), ActionController::getRandom(), ComsPlayMovesMessage::getSeed(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), getValue(), ServerChannelManager::instance(), ServerShotHolder::instance(), ScorchedServer::instance(), playing_, RandomGenerator::seed(), ServerChannelManager::sendText(), ComsMessageSender::sendToAllPlayingClients(), TankContainer::setAllNotReady(), ShotState::setup(), shotState_, TankState::sInitializing, TankState::sLoading, TankState::sNormal, TankState::sPending, OptionsTransient::startNewRound(), and OptionsGame::TurnSimultaneous.

bool ServerShotState::acceptStateChange ( const unsigned  state,
const unsigned  nextState,
float  frameTime 
) [virtual]

Implements GameStateStimulusI.

Definition at line 118 of file ServerShotState.cpp.

References ShotState::run(), and shotState_.

std::set<unsigned int>& ServerShotState::getPlaying (  )  [inline]

Definition at line 43 of file ServerShotState.h.

References playing_.

Referenced by ServerShotFinishedState::enterState().


Member Data Documentation

ShotState ServerShotState::shotState_ [protected]

Definition at line 46 of file ServerShotState.h.

Referenced by acceptStateChange(), and enterState().

std::set<unsigned int> ServerShotState::playing_ [protected]

Definition at line 47 of file ServerShotState.h.

Referenced by enterState(), and getPlaying().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:06 2009 for Scorched3D by  doxygen 1.5.3