ServerNextShotState Class Reference

#include <ServerNextShotState.h>

Inheritance diagram for ServerNextShotState:

GameStateI

List of all members.

Public Member Functions

 ServerNextShotState ()
virtual ~ServerNextShotState ()
virtual void enterState (const unsigned state)

Static Public Member Functions

static bool getRoundFinished ()


Detailed Description

Definition at line 27 of file ServerNextShotState.h.


Constructor & Destructor Documentation

ServerNextShotState::ServerNextShotState (  ) 

Definition at line 35 of file ServerNextShotState.cpp.

ServerNextShotState::~ServerNextShotState (  )  [virtual]

Definition at line 40 of file ServerNextShotState.cpp.


Member Function Documentation

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

Reimplemented from GameStateI.

Definition at line 83 of file ServerNextShotState.cpp.

References PlayShots::clearShots(), ScorchedContext::getGameState(), getRoundFinished(), TurnController::instance(), ServerShotHolder::instance(), ServerChannelManager::instance(), ScorchedServer::instance(), TurnController::nextShot(), ServerChannelManager::sendText(), ServerState::ServerStimulusNewGame, ServerState::ServerStimulusNextRound, ServerState::ServerStimulusNextTurn, ServerState::ServerStimulusStarting, and GameState::stimulate().

bool ServerNextShotState::getRoundFinished (  )  [static]

Definition at line 44 of file ServerNextShotState.cpp.

References TankContainer::aliveCount(), TankContainer::getAllTanks(), ScorchedServer::getContext(), ScorchedContext::getOptionsGame(), Tank::getScore(), ScorchedContext::getTankContainer(), ScorchedContext::getTankTeamScore(), TankScore::getWonGame(), TankTeamScore::getWonGame(), ScorchedServer::instance(), and TankContainer::teamCount().

Referenced by ServerShotFinishedState::enterState(), and enterState().


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