ScorchedContext Class Reference

#include <ScorchedContext.h>

Inheritance diagram for ScorchedContext:

ScorchedClient ScorchedServer

List of all members.

Public Member Functions

 ScorchedContext (const char *name, bool server)
virtual ~ScorchedContext ()
bool getServerMode ()
void setNetInterface (NetInterface *i)
NetInterfacegetNetInterface ()
bool getNetInterfaceValid ()
ViewPointsgetViewPoints ()
TargetSpacegetTargetSpace ()
AccessoryStoregetAccessoryStore ()
GameStategetGameState ()
TankContainergetTankContainer ()
TargetContainergetTargetContainer ()
TargetMovementgetTargetMovement ()
TankTeamScoregetTankTeamScore ()
ActionControllergetActionController ()
LandscapeMapsgetLandscapeMaps ()
OptionsScorchedgetOptionsGame ()
OptionsTransientgetOptionsTransient ()
ComsMessageHandlergetComsMessageHandler ()
ModFilesgetModFiles ()
LandscapeDefinitionsgetLandscapes ()
TankModelStoregetTankModels ()
LUAScriptFactorygetLUAScriptFactory ()
LUAScriptHookgetLUAScriptHook ()

Protected Attributes

ActionControlleractionController
GameStategameState
LandscapeMapslandscapeMaps
ComsMessageHandlercomsMessageHandler
NetInterfacenetInterface
OptionsScorchedoptionsGame
OptionsTransientoptionsTransient
ViewPointsviewPoints
ModFilesmodFiles
AccessoryStoreaccessoryStore
LandscapeDefinitionslandscapes
TargetContainertargetContainer
TankContainertankContainer
TankModelStoretankModelStore
TankTeamScoretankTeamScore
TargetSpacetargetSpace
TargetMovementtargetMovement
LUAScriptFactoryluaScriptFactory
LUAScriptHookluaScriptHook
bool serverMode


Detailed Description

Definition at line 44 of file ScorchedContext.h.


Constructor & Destructor Documentation

ScorchedContext::ScorchedContext ( const char *  name,
bool  server 
)

Definition at line 39 of file ScorchedContext.cpp.

References accessoryStore, actionController, comsMessageHandler, gameState, getActionController(), S3D::getSettingsFile(), getTargetSpace(), getViewPoints(), landscapeMaps, landscapes, luaScriptFactory, luaScriptHook, modFiles, netInterface, optionsGame, optionsTransient, LUAScriptFactory::setContext(), TargetSpace::setContext(), ViewPoints::setContext(), ActionController::setScorchedContext(), tankContainer, tankModelStore, tankTeamScore, targetContainer, targetMovement, targetSpace, and viewPoints.

ScorchedContext::~ScorchedContext (  )  [virtual]

Definition at line 70 of file ScorchedContext.cpp.


Member Function Documentation

bool ScorchedContext::getServerMode (  )  [inline]

Definition at line 50 of file ScorchedContext.h.

References serverMode.

Referenced by TankAccessories::activate(), TankDamage::calculateDamage(), TankFalling::collision(), TankDefinition::createTank(), TargetDefinition::createTarget(), DeformLandscape::deformLandscape(), ShotProjectile::doCollision(), ShotBounce::draw(), ShieldHit::draw(), Lightning::draw(), Laser::draw(), ViewPoints::explosion(), WeaponNapalm::fireWeapon(), WeaponAnimation::fireWeapon(), DeformLandscape::flattenArea(), PlacementTankPosition::flattenTankPositions(), GroundMaps::generateMaps(), ViewPoints::getNewViewPoint(), Teleport::init(), TankSay::init(), TankMovement::init(), ShotProjectile::init(), Napalm::init(), Explosion::init(), CameraPositionAction::init(), TankDamage::logDeath(), TankMovement::moveTank(), Tank::readMessage(), TankWeapon::setCurrentWeapon(), TargetLife::setRotation(), TargetLife::setTargetPosition(), TargetLife::setTargetPositionAndRotation(), ChannelManager::showText(), Teleport::simulate(), TankFired::simulate(), SoundAction::simulate(), SkyFlash::simulate(), ShotProjectile::simulate(), ShieldHit::simulate(), Resurrection::simulate(), Napalm::simulate(), Lightning::simulate(), Explosion::simulate(), Napalm::simulateAddEdge(), TankMovement::simulationMove(), TargetLife::updateAABB(), CameraPositionAction::~CameraPositionAction(), and TankMovement::~TankMovement().

void ScorchedContext::setNetInterface ( NetInterface i  )  [inline]

Definition at line 52 of file ScorchedContext.h.

References netInterface.

Referenced by initComs(), and startServer().

NetInterface& ScorchedContext::getNetInterface (  )  [inline]

Definition at line 53 of file ScorchedContext.h.

References netInterface.

Referenced by ClientConnectionAuthHandler::cancelAuth(), ServerMessageHandler::clientConnected(), ClientMessageHandler::clientError(), ClientMain::clientMain(), ConnectDialog::connected(), initComs(), ServerCommon::kickDestination(), ServerCommon::kickPlayer(), ClientKeepAliveSender::send(), ComsMessageSender::sendToMultipleClients(), ComsMessageSender::sendToServer(), serverLoop(), ConnectDialog::simulate(), ClientProcessingLoop::simulate(), startServer(), ConnectDialog::tryLocalConnection(), and ConnectDialog::tryRemoteConnection().

bool ScorchedContext::getNetInterfaceValid (  )  [inline]

Definition at line 54 of file ScorchedContext.h.

References netInterface.

ViewPoints& ScorchedContext::getViewPoints (  )  [inline]

Definition at line 56 of file ScorchedContext.h.

References viewPoints.

Referenced by Teleport::init(), TankMovement::init(), ShotProjectile::init(), ShotBounce::init(), Explosion::init(), TargetCamera::moveCamera(), ClientShotState::processMessage(), ScorchedContext(), MainCamera::simulate(), ShotBounce::~ShotBounce(), ShotProjectile::~ShotProjectile(), TankMovement::~TankMovement(), and Teleport::~Teleport().

TargetSpace& ScorchedContext::getTargetSpace (  )  [inline]

Definition at line 57 of file ScorchedContext.h.

References targetSpace.

Referenced by MovementMap::allowedPosition(), PhysicsParticleObject::checkCollision(), TankFalling::collision(), Lightning::damageTargets(), RenderGeoms::drawTargetSpace(), TargetDamageCalc::explosion(), DeformLandscape::flattenArea(), PhysicsParticleObject::getTargetBounceCollision(), TankMovement::moveTank(), ScorchedContext(), TargetShield::setCurrentShield(), Laser::simulate(), Napalm::simulateDamage(), tankTargetCloseness(), and TargetLife::updateSpace().

AccessoryStore& ScorchedContext::getAccessoryStore (  )  [inline]

Definition at line 58 of file ScorchedContext.h.

References accessoryStore.

Referenced by EconomyFreeMarket::accessoryBought(), InventoryDialog::addPlayerWeapons(), BuyAccessoryDialog::addPlayerWeaponsSell(), EconomyFreeMarket::calculatePrices(), StatsLoggerDatabase::createLogger(), TankDefinition::createTank(), TargetDefinition::createTarget(), LandscapeActionFireWeapon::fireAction(), AccessoryCreateContext::getAccessoryStore(), Tank::getDeathAction(), TankType::initFromXML(), EconomyFreeMarket::loadPrices(), TankDamage::logDeath(), TankAICurrentMove::makeMoveShot(), TargetCamera::mouseUp(), TankMovement::moveTank(), TankAccessories::newMatch(), TankKeyboardControlUtil::nextWeapon(), TankAIWeaponSets::WeaponSetEntry::parseConfig(), TankKeyboardControlUtil::prevWeapon(), ServerDefenseHandler::processDefenseMessage(), PlayShots::processFiredMessage(), ServerBuyAccessoryHandler::processMessage(), ClientDefenseHandler::processMessage(), TargetShield::readMessage(), TargetParachute::readMessage(), Target::readMessage(), TankAccessories::readMessage(), ComsNewGameMessage::readMessage(), s3d_fire_weapon(), EconomyFreeMarket::savePrices(), TankWeapon::setCurrentWeapon(), TankMenus::showInventory(), TankWeaponTip::showItems(), TankParachutesTip::showItems(), TankShieldTip::showItems(), TankFuelTip::showItems(), TankFired::simulate(), ServerShotHolder::validateFiredMessage(), and Target::writeMessage().

GameState& ScorchedContext::getGameState (  )  [inline]

Definition at line 59 of file ScorchedContext.h.

References gameState.

Referenced by ServerShotFinishedState::acceptStateChange(), ClientNewGameHandler::actualProcessMessage(), TankAIAdder::addTankAI(), GLWToolTip::addToolTip(), TankKeyboardControlUtil::autoAim(), GLWChannelText::buttonDown(), BuyAccessoryDialog::buttonDown(), ClientConnectionAuthHandler::cancelAuth(), GLWToolTip::clearToolTip(), ClientMessageHandler::clientDisconnected(), ConnectDialog::connected(), ServerMessageHandler::destroyPlayer(), QuitDialog::display(), SoftwareMouse::draw(), GLWSelectorPart::draw(), GLWScorchedInfo::draw(), GLMenu::draw(), StartDialog::draw(), GLWWindow::drawMaximizedWindow(), ServerResetState::enterState(), ServerNextTurnState::enterState(), ServerNextShotState::enterState(), ServerNextRoundState::enterState(), ServerNewGameState::enterState(), AutoDefenseDialog::finished(), TankKeyboardControlUtil::fireShot(), MainCamera::getEnabled(), initClient(), ClientInitializeHandler::initialize(), Mouse::mouseDown(), GLMenu::mouseDown(), Mouse::mouseMove(), Mouse::mouseUp(), ServerPlayedMoveHandler::processMessage(), ServerAddPlayerHandler::processMessage(), ClientStartGameHandler::processMessage(), ClientShotState::processMessage(), ClientScoreHandler::processMessage(), ClientGameStoppedHandler::processMessage(), ClientFileHandler::processMessage(), ServerWebHandler::ServerHandler::processRequest(), ServerWebHandler::GameHandler::processRequest(), ServerBrowserInfo::processStatusMessage(), ProgressDialogSync::progressChange(), TargetRendererImplTank::render(), TargetRendererImplTank::render2D(), TankKeyboardControlUtil::resign(), ClientWaitState::sendClientReady(), serverLoop(), TankWeapon::setCurrentWeapon(), ClientState::setupGameState(), MainCamera::simulate(), ConnectDialog::simulate(), CameraDialog::simulate(), TankKeyboardControlUtil::skipShot(), and TankMenus::TankMenus().

TankContainer& ScorchedContext::getTankContainer (  )  [inline]

Definition at line 60 of file ScorchedContext.h.

References tankContainer.

Referenced by ServerTooFewPlayersStimulus::acceptStateChange(), ServerReadyState::acceptStateChange(), ServerPlayingState::acceptStateChange(), ServerMessageHandler::actualDestroyPlayer(), ClientNewGameHandler::actualProcessMessage(), ServerChannelManager::actualSend(), ScoreDialog::addLine(), ServerConnectAuthHandler::addNextTank(), BuyAccessoryDialog::addPlayerFavorites(), InventoryDialog::addPlayerName(), BuyAccessoryDialog::addPlayerName(), InventoryDialog::addPlayerWeapons(), BuyAccessoryDialog::addPlayerWeaponsBuy(), BuyAccessoryDialog::addPlayerWeaponsSell(), ServerShotHolder::addShot(), TankAIAdder::addTankAI(), AdminDialog::AdminDialog(), GLWChannelText::buttonDown(), SkipDialog::buttonDown(), SkipAllDialog::buttonDown(), ResignDialog::buttonDown(), PlayerDialog::buttonDown(), GiftMoneyDialog::buttonDown(), BuyAccessoryDialog::buttonDown(), AutoDefenseDialog::buttonDown(), AdminDialog::buttonDown(), TankDamage::calculateDamage(), ScoreDialog::calculateScores(), GLWChannelView::channelText(), GLWChannelText::channelValid(), ServerNewGameState::checkBots(), ServerKeepAliveHandler::checkKeepAlives(), ServerNewGameState::checkTeams(), ServerNewGameState::checkTeamsAuto(), ServerNewGameState::checkTeamsBotsVs(), ServerMessageHandler::clientConnected(), ServerMessageHandler::clientDisconnected(), ClientMessageHandler::clientDisconnected(), ShotProjectile::collision(), PlacementObjectTank::createObject(), ChannelTextParser::createPlayerEntry(), GLWTankTracker::currentChanged(), GLWTankSlider::currentChanged(), ServerMessageHandler::destroyPlayer(), ServerMessageHandler::destroyTaggedPlayers(), GiftMoneyDialog::display(), BuyAccessoryDialog::display(), AutoDefenseDialog::displayCurrent(), RenderTracer::draw(), MissileActionRenderer::draw(), GLWWeaponModel::draw(), GLWTankTracker::draw(), GLWTankSlider::draw(), GLWTankModel::draw(), GLWScorchedInfo::draw(), ScoreDialog::draw(), GLWChannelViewTextRenderer::drawCharacter(), AdminDialog::drawColumn(), GLWPlanView::drawLine(), GLWPlanView::drawTanks(), ServerStateTooFewPlayersState::enterState(), ServerShotState::enterState(), ServerShotFinishedState::enterState(), ServerResetState::enterState(), ServerReadyState::enterState(), ServerNextTurnState::enterState(), ServerNextRoundState::enterState(), ServerNewGameState::enterState(), TankKeyboardControl::enterState(), ViewPoints::explosion(), ServerAddPlayerHandler::filterName(), ServerReadyState::finished(), WeaponTankVelocity::fireWeapon(), WeaponTankPosition::fireWeapon(), WeaponSelectPosition::fireWeapon(), PlacementTankPosition::flattenTankPositions(), TankMenus::AccessoryMenu::getEnabled(), TankMenus::PlayerMenu::getEnabled(), TankMenus::AccessoryMenu::getMenuItems(), ViewPoints::getNewViewPoint(), PlayerDialog::getNextPlayer(), getNumberOfPlayers(), ServerNextShotState::getRoundFinished(), PhysicsParticleObject::getShieldCollision(), TankSort::getSortedTanksIds(), TankLib::getTanksSortedByDistance(), TankAICurrentTarget::getTargets(), ServerShotHolder::haveAllTurnShots(), Teleport::init(), TankSay::init(), TankMovement::init(), ScorchedServer::instance(), GLWChannelText::itemSelected(), ServerKeepAliveHandler::keepAlive(), TankKeyboardControl::keyboardCheck(), ServerCommon::kickDestination(), ServerCommon::killAll(), TankDamage::logDeath(), TankMenus::AccessoryMenu::menuSelection(), TankMenus::PlayerMenu::menuSelection(), GLWWeaponModel::mouseDown(), GLWScorchedInfo::mouseDown(), GLWTankFire::mouseUp(), TargetCamera::moveCamera(), PlayerDialog::nextPlayer(), TurnController::nextShot(), TurnController::nextTurn(), PlayShots::playShots(), ServerPlayerReadyHandler::processMessage(), ServerPlayedMoveHandler::processMessage(), ServerLinesHandler::processMessage(), ServerInitializeHandler::processMessage(), ServerHaveModFilesHandler::processMessage(), ServerFileAkHandler::processMessage(), ServerDefenseHandler::processMessage(), ServerConnectAuthHandler::processMessage(), ServerChannelManager::processMessage(), ServerBuyAccessoryHandler::processMessage(), ServerAdminHandler::processMessage(), ServerAddPlayerHandler::processMessage(), ClientStartGameHandler::processMessage(), ClientScoreHandler::processMessage(), ClientRmPlayerHandler::processMessage(), ClientPlayerStatusHandler::processMessage(), ClientGiftMoneyHandler::processMessage(), ClientDefenseHandler::processMessage(), ClientConnectionAcceptHandler::processMessage(), ClientChannelManager::processMessage(), ClientAddPlayerHandler::processMessage(), ServerBrowserInfo::processPlayerMessage(), ServerWebHandler::GameHandler::processRequest(), ServerWebHandler::PlayerHandler::processRequest(), ServerBrowserInfo::processStatusMessage(), ComsPlayerStateMessage::readMessage(), ServerNewGameState::removeTargets(), ClientNewGameHandler::removeTargets(), TargetRendererImplTank::render(), TargetRendererImplTank::render2D(), ServerNewGameState::resetTankStates(), ClientSave::restoreClient(), s3d_get_tank(), s3d_get_tanks(), ServerShotFinishedState::scoreOverallWinner(), ServerShotFinishedState::scoreWinners(), ClientConnectionAuthHandler::sendAuth(), ClientWaitState::sendClientReady(), ClientChannelManager::sendText(), ComsMessageSender::sendToAllConnectedClients(), ComsMessageSender::sendToAllPlayingClients(), ServerShotHolder::sendWaitingMessage(), ServerChannelFilterTeams::sentToDestination(), TankWeapon::setCurrentWeapon(), ShotState::setup(), TankMenus::showInventory(), TankMenus::showTankDetails(), ServerFileServer::simulate(), Teleport::simulate(), TankResign::simulate(), TankFired::simulate(), Resurrection::simulate(), CheckResurrection::simulate(), MainCamera::simulate(), SkipAllDialog::simulate(), TankMovement::simulationMove(), ClientSave::storeClient(), tankTargetCloseness(), WeaponTypeAction::weaponCallback(), WeaponTeamAction::weaponCallback(), WeaponGiveWin::weaponCallback(), WeaponGiveScore::weaponCallback(), WeaponGivePower::weaponCallback(), WeaponGiveMoney::weaponCallback(), WeaponGiveLives::weaponCallback(), WeaponGiveLife::weaponCallback(), WeaponGiveAccessory::weaponCallback(), SkipAllDialog::windowInit(), InventoryDialog::windowInit(), AutoDefenseDialog::windowInit(), and ComsPlayerStateMessage::writeMessage().

TargetContainer& ScorchedContext::getTargetContainer (  )  [inline]

Definition at line 61 of file ScorchedContext.h.

References targetContainer.

Referenced by ClientNewGameHandler::actualProcessMessage(), ServerNewGameState::addTanksToGame(), TankDamage::calculateDamage(), TankDamage::calculateDeath(), PlacementType::checkCloseness(), TankFalling::collision(), PlacementObjectTarget::createObject(), RenderGeoms::drawCollisionBounds(), RenderGeoms::drawCollisionGeoms(), WeaponRoller::fireWeapon(), DeformLandscape::flattenArea(), TankAIAdder::getNextTankId(), TankAIAdder::getNextTargetId(), TankFalling::init(), TankDamage::init(), Lightning::init(), TankDamage::logDeath(), MovementMap::MovementMap(), ComsSyncCheckMessage::readMessage(), ComsPlayerStateMessage::readMessage(), TargetParticleRenderer::recycleParticle(), ServerNewGameState::removeTargets(), ClientNewGameHandler::removeTargets(), TargetParticleRenderer::renderParticle(), ShotState::setup(), TankMenus::showTargetDetails(), TankFalling::simulate(), ShieldHit::simulate(), AddTarget::simulate(), Napalm::simulateDamage(), TargetParticleRenderer::simulateParticle(), ComsSyncCheckMessage::writeMessage(), ComsPlayerStateMessage::writeMessage(), and TankFalling::~TankFalling().

TargetMovement& ScorchedContext::getTargetMovement (  )  [inline]

Definition at line 62 of file ScorchedContext.h.

References targetMovement.

Referenced by Landscape::drawLand(), GroundMaps::generateMaps(), ActionController::stepActions(), and ComsPlayerStateMessage::writeMessage().

TankTeamScore& ScorchedContext::getTankTeamScore (  )  [inline]

Definition at line 63 of file ScorchedContext.h.

References tankTeamScore.

Referenced by TankDamage::calculateDamage(), ServerResetState::enterState(), ServerNewGameState::enterState(), ServerNextShotState::getRoundFinished(), TankSort::getWinningTeam(), ComsPlayerStateMessage::readMessage(), ServerShotFinishedState::scoreWinners(), TankResign::simulate(), WeaponGiveWin::weaponCallback(), and WeaponGiveScore::weaponCallback().

ActionController& ScorchedContext::getActionController (  )  [inline]

Definition at line 64 of file ScorchedContext.h.

References actionController.

Referenced by ClientNewGameHandler::actualProcessMessage(), WeaponNapalm::addNapalm(), WeaponRoller::addRoller(), PhysicsParticleActionObject::bounceShieldHit(), TankDamage::calculateDamage(), TankDamage::calculateDeath(), PhysicsParticleObject::checkCollision(), TankFalling::collision(), TargetDamageCalc::damageTarget(), DeformLandscape::deformLandscape(), Lightning::dispaceDirection(), SpeedChange::draw(), CameraDialog::drawLandscape(), ServerShotState::enterState(), WeaponTypeAction::fireWeapon(), WeaponTeleport::fireWeapon(), WeaponTeamAction::fireWeapon(), WeaponSound::fireWeapon(), WeaponSkyFlash::fireWeapon(), WeaponScatterPosition::fireWeapon(), WeaponScatterDirection::fireWeapon(), WeaponRoller::fireWeapon(), WeaponRandomChoice::fireWeapon(), WeaponProjectile::fireWeapon(), WeaponPosition::fireWeapon(), WeaponNapalm::fireWeapon(), WeaponMoveTank::fireWeapon(), WeaponMirv::fireWeapon(), WeaponMessage::fireWeapon(), WeaponLightning::fireWeapon(), WeaponLaser::fireWeapon(), WeaponGroupSelect::fireWeapon(), WeaponGiveWin::fireWeapon(), WeaponGiveScore::fireWeapon(), WeaponGivePower::fireWeapon(), WeaponGiveMoney::fireWeapon(), WeaponGiveLives::fireWeapon(), WeaponGiveLife::fireWeapon(), WeaponGiveAccessory::fireWeapon(), WeaponExplosion::fireWeapon(), WeaponDelay::fireWeapon(), WeaponAnimation::fireWeapon(), WeaponAimedUnder::fireWeapon(), WeaponAimedOver::fireWeapon(), WeaponAddTarget::fireWeapon(), DeformLandscape::flattenArea(), Lightning::generateLightning(), TankAIStrings::getAttackLine(), TargetSpace::getCollision(), TargetSpace::getCollisionSet(), TankAIStrings::getDeathLine(), LandscapeConditionRandom::getNextEventTime(), LandscapeConditionTime::getNextEventTime(), NumberParser::getValue(), Teleport::init(), TankSay::init(), TankDamage::init(), ShotBounce::init(), Napalm::init(), Explosion::init(), CameraPositionAction::init(), TankDamage::logDeath(), TankMovement::moveTank(), PlayShots::processFiredMessage(), ClientShotState::processMessage(), ClientChannelManager::processMessage(), PlayShots::processResignMessage(), ComsSyncCheckMessage::readMessage(), ShotState::run(), s3d_explosion(), s3d_laser(), s3d_napalm(), ScorchedContext(), SpeedChange::setSpeed(), ShotState::setup(), PhysicsParticleActionObject::shotShieldHit(), Teleport::simulate(), TankFired::simulate(), Resurrection::simulate(), Laser::simulate(), CheckResurrection::simulate(), AddTarget::simulate(), RenderTargets::Renderer3D::simulate(), SpeedChange::simulate(), AnimatedBackdropDialog::simulate(), Napalm::simulateAddEdge(), Boid2::update(), WeaponRepeat::weaponCallback(), and ComsSyncCheckMessage::writeMessage().

LandscapeMaps& ScorchedContext::getLandscapeMaps (  )  [inline]

Definition at line 65 of file ScorchedContext.h.

References landscapeMaps.

Referenced by ClientNewGameHandler::actualProcessMessage(), ImageModifier::addBitmapToLandscape(), ImageModifier::addBorderToBitmap(), ImageModifier::addCircleToLandscape(), LandscapeMusicManager::addMusics(), MovementMap::addPoint(), ShadowMap::addShadow(), LandscapeSoundManager::addSounds(), ServerNewGameState::addTanksToGame(), PlacementGroupDefinition::addToGroup(), DeformLandscape::applyInfos(), MovementMap::calculateAllPositions(), TankDamage::calculateDamage(), MovementMap::calculatePosition(), PhysicsParticleObject::checkBounceCollision(), Boid2::checkCollision(), PhysicsParticleObject::checkCollision(), PhysicsParticleObject::checkFallingCollision(), PhysicsParticleObject::checkShotCollision(), PlacementObjectTarget::createObject(), PlacementObjectTank::createObject(), PlacementObjectShadow::createObject(), DeformTextures::deformLandscape(), DeformLandscape::deformLandscapeInternal(), TargetSpace::draw(), NapalmRenderer::draw(), MissileActionRenderer::draw(), Wall::draw(), LandscapePoints::draw(), LandVisibilityPatch::draw(), TargetRendererImplTank::drawArrow(), SkyDome::drawBackdrop(), TargetRendererImplTank::drawInfo(), VisibilityPatchGrid::drawLand(), TargetRendererImplTank::drawLife(), LandVisibilityPatch::drawLODLevel(), GLWWindView::drawScene(), SkyRoof::drawSegment(), Landscape::drawShadows(), ServerNewGameState::enterState(), ExplosionNukeRenderer::ExplosionNukeRenderer(), WaterWaves::findPoints(), LandscapeConditionGroupSize::fireEvent(), WeaponTeleport::fireWeapon(), WeaponSelectPosition::fireWeapon(), WeaponScatterPosition::fireWeapon(), WeaponRoller::fireWeapon(), WeaponPosition::fireWeapon(), WeaponNapalm::fireWeapon(), WeaponMoveTank::fireWeapon(), WeaponLeapFrog::fireWeapon(), WeaponGroupSelect::fireWeapon(), WeaponCenterPosition::fireWeapon(), WeaponAimedUnder::fireWeapon(), WeaponAimedOver::fireWeapon(), DeformLandscape::flattenAreaInternal(), PlacementTankPosition::flattenTankPositions(), TargetMovementEntrySpline::generate(), TargetMovementEntryShips::generate(), TargetMovementEntryBoids::generate(), TargetMovement::generate(), WaterWaveDistance::generate(), WaterMapPoints::generate(), Water2Renderer::generate(), Water2::generate(), Water::generate(), LandscapePoints::generate(), Landscape::generate(), VisibilityPatchGrid::generate(), LandSurround::generateList(), GroundMaps::generateMaps(), Water2::generateTransparency(), WaterWaves::generateWaves(), MovementMap::getAndCheckEntry(), Napalm::getHeight(), getHeight(), LandscapeSoundPositionSet::getInitCount(), LandscapeSoundPositionSet::getInitData(), TargetCamera::getLandIntersect(), PhysicsParticleObject::getLandscapeCollision(), PlacementTypeTree::getPositions(), PlacementTypeMask::getPositions(), PlacementTypeDirect::getPositions(), PlacementTypeBounds::getPositions(), PhysicsParticleObject::getRoofCollision(), PhysicsParticleObject::getWallCollision(), MovementMap::getWaterHeight(), TankMenus::groupInfo(), TankAICurrentMove::inHole(), Napalm::init(), Explosion::init(), WallActionRenderer::init(), AnimatedBackdropDialog::init(), EventContainer::initialize(), TankLib::intersection(), MainCamera::keyboardCheck(), MovementMap::limitTexture(), TankAICurrentMove::lowestHighest(), ImageModifier::makeArenaBitmap(), TankAICurrentMove::makeGroupShot(), SkyRoof::makeNormal(), TargetCamera::maxHeightFunc(), TargetCamera::minHeightFunc(), TargetCamera::mouseDrag(), TargetCamera::mouseUp(), TargetCamera::moveCamera(), MovementMap::MovementMap(), MovementMap::movementTexture(), TankMovement::moveTank(), PlacementTankPosition::placeTank(), TargetGroup::readMessage(), ComsSyncCheckMessage::readMessage(), ClientReloadAdaptor::reloadLandscapeObjects(), ParticleRendererQuads::renderParticle(), s3d_get_arenaheight(), s3d_get_arenawidth(), s3d_get_height(), s3d_get_landscapeheight(), s3d_get_landscapewidth(), ScorchedClient::ScorchedClient(), LandVisibilityPatch::setLocation(), LandscapeSoundPositionGroup::setPosition(), LandscapeSoundPositionSet::setPosition(), InfoMap::showHeightBands(), ClientReloadAdaptor::showLandscapeInfo(), TargetMovementEntrySpline::simulate(), Teleport::simulate(), ShotProjectile::simulate(), Napalm::simulate(), Explosion::simulate(), Landscape::simulate(), TargetCamera::simulate(), MainCamera::simulate(), Napalm::simulateAddEdge(), Napalm::simulateDamage(), Napalm::simulateRmStep(), TankAICurrentMoveWeapons::TankAICurrentMoveWeapons(), MovementMap::tankBurried(), tankMaskCloseness(), and ComsSyncCheckMessage::writeMessage().

OptionsScorched& ScorchedContext::getOptionsGame (  )  [inline]

Definition at line 66 of file ScorchedContext.h.

References optionsGame.

Referenced by ServerTooFewPlayersStimulus::acceptStateChange(), ServerPlayingState::acceptStateChange(), EconomyFreeMarket::accessoryBought(), ServerChannelManager::actualSend(), ActionController::addAction(), OptionsDisplayConsole::addDisplayToConsole(), RulesDialog::addMOTD(), MovementMap::addPoint(), ActionController::addSyncCheck(), TankAIAdder::addTankAI(), TankAIAdder::addTankAIs(), ServerAuthHandlerDefault::authenticateUser(), PlayerDialog::buttonDown(), TankAICurrent::buyAccessories(), TankDamage::calculateDamage(), TankDamage::calculateDeath(), TankPosition::changePower(), ServerNewGameState::checkBots(), PhysicsParticleObject::checkCollision(), ServerKeepAliveHandler::checkKeepAlives(), ServerNewGameState::checkTeams(), ServerNewGameState::checkTeamsAuto(), ServerMessageHandler::clientConnected(), TankFalling::collision(), StatsLoggerDatabase::createLogger(), TankDefinition::createTank(), DeformLandscape::deformLandscape(), PlayerDialog::display(), ScoreDialog::draw(), RulesDialog::drawRules(), ServerStartingState::enterState(), ServerNextTurnState::enterState(), ServerNewGameState::enterState(), ViewPoints::explosion(), ServerAddPlayerHandler::filterName(), DeformLandscape::flattenArea(), TankAIStrings::getAIPlayerName(), TankAIStrings::getAttackLine(), ScorchedServerUtil::getAuthHandler(), TargetSpace::getCollision(), TargetSpace::getCollisionSet(), TankAIStrings::getDeathLine(), ViewPoints::getNewViewPoint(), AccessoryCreateContext::getOptionsGame(), ServerNextShotState::getRoundFinished(), TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), ServerWebServerUtil::getTemplate(), MovementMap::getWaterHeight(), TankSort::getWinningTeam(), Explosion::init(), StatsLogger::instance(), EconomyStore::loadEconomy(), TankDamage::logDeath(), main(), MovementMap::movementProof(), TankMovement::moveTank(), TurnController::newGame(), TankState::newGame(), TankScore::newMatch(), TankAccessories::newMatch(), TurnController::nextShot(), ServerBrowserInfo::processInfoMessage(), ServerConnectAuthHandler::processMessage(), ServerAddPlayerHandler::processMessage(), ClientNewGameHandler::processMessage(), ClientFileHandler::processMessage(), ServerWebSettingsHandler::SettingsModHandler::processRequest(), ServerWebSettingsHandler::SettingsMainHandler::processRequest(), ServerWebSettingsHandler::SettingsAllHandler::processRequest(), ServerWebSettingsHandler::SettingsLandscapeHandler::processRequest(), ServerWebSettingsHandler::SettingsPlayersHandler::processRequest(), ServerWebHandler::GameHandler::processRequest(), ServerWebHandler::PlayerHandler::processRequest(), PlayShots::processResignMessage(), ServerBrowserInfo::processStatusMessage(), ComsNewGameMessage::readMessage(), ComsConnectAcceptMessage::readMessage(), s3d_get_option(), ServerShotFinishedState::scoreWinners(), ClientKeepAliveSender::send(), ClientConnectionAuthHandler::sendAuth(), Target::setName(), PhysicsParticleObject::setPhysics(), EconomyFreeMarket::setPrice(), ShotState::setup(), setValues(), ServerFileServer::simulate(), ActionController::simulate(), Teleport::simulate(), TankResign::simulate(), Resurrection::simulate(), Explosion::simulate(), AddTarget::simulate(), startClientInternal(), startServer(), ActionController::stepActions(), ClientSave::storeClient(), MovementMap::tankBurried(), TutorialDialog::TutorialDialog(), Boid2::update(), ServerShotHolder::validateFiredMessage(), WeaponGiveWin::weaponCallback(), TankAIWeaponSets::WeaponSetEntry::weaponValid(), and ComsConnectAcceptMessage::writeMessage().

OptionsTransient& ScorchedContext::getOptionsTransient (  )  [inline]

Definition at line 67 of file ScorchedContext.h.

References optionsTransient.

Referenced by TankAccessories::accessoryAllowed(), TankAIAdder::addTankAI(), TankAICurrent::buyAccessories(), PhysicsParticleObject::checkBounceCollision(), PhysicsParticleObject::checkShotCollision(), WaterWaves::draw(), PlayerDialog::draw(), GLWPlanView::drawBuoys(), RulesDialog::drawRules(), Wall::drawWall(), ServerShotState::enterState(), ServerResetState::enterState(), ServerNextTurnState::enterState(), ServerNextRoundState::enterState(), ServerNewGameState::enterState(), TankLib::getShotTowardsPosition(), TankAIWeaponSets::WeaponSet::getTankAccessoryByType(), PhysicsParticleObject::getWallCollision(), WallActionRenderer::init(), ImageModifier::makeArenaBitmap(), ImageModifier::makeArenaSurroundBitmap(), ServerAdminCommon::newGame(), ParticleEngine::normalizedSimulate(), WindDialogToolTip::populate(), PhysicsParticleObject::setPhysics(), SkyDome::simulate(), ServerCommon::startNewGame(), startServer(), ServerShotHolder::validateFiredMessage(), and TankAIWeaponSets::WeaponSetEntry::weaponValid().

ComsMessageHandler& ScorchedContext::getComsMessageHandler (  )  [inline]

Definition at line 68 of file ScorchedContext.h.

References comsMessageHandler.

Referenced by ClientAddPlayerHandler::ClientAddPlayerHandler(), ClientAdminResultHandler::ClientAdminResultHandler(), ClientChannelManager::ClientChannelManager(), ClientConnectionAcceptHandler::ClientConnectionAcceptHandler(), ClientConnectionAuthHandler::ClientConnectionAuthHandler(), ClientConnectionRejectHandler::ClientConnectionRejectHandler(), ClientDefenseHandler::ClientDefenseHandler(), ClientFileHandler::ClientFileHandler(), ClientGameStateHandler::ClientGameStateHandler(), ClientGameStoppedHandler::ClientGameStoppedHandler(), ClientGiftMoneyHandler::ClientGiftMoneyHandler(), ClientInitializeHandler::ClientInitializeHandler(), ClientLinesHandler::ClientLinesHandler(), ClientNewGameHandler::ClientNewGameHandler(), ClientOperationHandler::ClientOperationHandler(), ClientPlayerStateHandler::ClientPlayerStateHandler(), ClientPlayerStatusHandler::ClientPlayerStatusHandler(), ClientRmPlayerHandler::ClientRmPlayerHandler(), ClientScoreHandler::ClientScoreHandler(), ClientShotState::ClientShotState(), ClientStartGameHandler::ClientStartGameHandler(), ClientStartTimerHandler::ClientStartTimerHandler(), ClientSyncCheckHandler::ClientSyncCheckHandler(), initComsHandlers(), ServerAddPlayerHandler::ServerAddPlayerHandler(), ServerAdminHandler::ServerAdminHandler(), ServerBuyAccessoryHandler::ServerBuyAccessoryHandler(), ServerChannelManager::ServerChannelManager(), ServerConnectAuthHandler::ServerConnectAuthHandler(), ServerConnectHandler::ServerConnectHandler(), ServerDefenseHandler::ServerDefenseHandler(), ServerFileAkHandler::ServerFileAkHandler(), ServerGiftMoneyHandler::ServerGiftMoneyHandler(), ServerHaveModFilesHandler::ServerHaveModFilesHandler(), ServerInitializeHandler::ServerInitializeHandler(), ServerKeepAliveHandler::ServerKeepAliveHandler(), ServerLinesHandler::ServerLinesHandler(), ServerOperationResultHandler::ServerOperationResultHandler(), ServerPlayedMoveHandler::ServerPlayedMoveHandler(), ServerPlayerReadyHandler::ServerPlayerReadyHandler(), startServer(), and TankMenus::TankMenus().

ModFiles& ScorchedContext::getModFiles (  )  [inline]

Definition at line 69 of file ScorchedContext.h.

References modFiles.

Referenced by ClientInitializeHandler::initialize(), ServerHaveModFilesHandler::processMessage(), ClientFileHandler::processMessage(), ClientConnectionAcceptHandler::processMessage(), ServerWebHandler::ModsHandler::processRequest(), and ServerFileServer::sendNextFile().

LandscapeDefinitions& ScorchedContext::getLandscapes (  )  [inline]

Definition at line 70 of file ScorchedContext.h.

References landscapes.

Referenced by ClientNewGameHandler::actualProcessMessage(), checkSettings(), ServerNewGameState::enterState(), AnimatedBackdropDialog::init(), ClientReloadAdaptor::reloadLandscapeObjects(), LandscapeDefinitionCache::setDefinition(), and OptionsScorched::updateLevelOptions().

TankModelStore& ScorchedContext::getTankModels (  )  [inline]

Definition at line 71 of file ScorchedContext.h.

References tankModelStore.

Referenced by TankAccessories::accessoryAllowed(), TankAIAdder::addTankAI(), PlayerDialog::buttonDown(), ServerNewGameState::checkTeams(), TankPosition::clientNewGame(), TankDefinition::createTank(), GLWTankViewer::draw(), TargetRendererImplTank::getModel(), GLWTankViewer::GLWTankViewer(), TankModel::initFromXML(), TankMovement::moveTank(), TankPosition::newGame(), Tank::newGame(), TankAccessories::newMatch(), ServerAddPlayerHandler::processMessage(), GLWTankViewer::select(), and TankMovement::simulationMove().

LUAScriptFactory& ScorchedContext::getLUAScriptFactory (  )  [inline]

Definition at line 72 of file ScorchedContext.h.

References luaScriptFactory.

Referenced by WeaponScript::parseXML().

LUAScriptHook& ScorchedContext::getLUAScriptHook (  )  [inline]

Definition at line 73 of file ScorchedContext.h.

References luaScriptHook.

Referenced by ServerChannelManager::actualSend(), ServerChannelManager::ChannelEntry::ChannelEntry(), ServerPlayingState::enterState(), ServerNextRoundState::enterState(), ServerNewGameState::enterState(), ServerShotFinishedState::scoreWinners(), ServerNewGameState::ServerNewGameState(), ServerNextRoundState::ServerNextRoundState(), ServerPlayingState::ServerPlayingState(), and ServerShotFinishedState::ServerShotFinishedState().


Member Data Documentation

ActionController* ScorchedContext::actionController [protected]

Definition at line 76 of file ScorchedContext.h.

Referenced by getActionController(), and ScorchedContext().

GameState* ScorchedContext::gameState [protected]

Definition at line 77 of file ScorchedContext.h.

Referenced by getGameState(), ScorchedClient::ScorchedClient(), and ScorchedContext().

LandscapeMaps* ScorchedContext::landscapeMaps [protected]

Definition at line 78 of file ScorchedContext.h.

Referenced by getLandscapeMaps(), and ScorchedContext().

ComsMessageHandler* ScorchedContext::comsMessageHandler [protected]

Definition at line 79 of file ScorchedContext.h.

Referenced by getComsMessageHandler(), and ScorchedContext().

NetInterface* ScorchedContext::netInterface [protected]

Definition at line 80 of file ScorchedContext.h.

Referenced by getNetInterface(), getNetInterfaceValid(), ScorchedContext(), and setNetInterface().

OptionsScorched* ScorchedContext::optionsGame [protected]

Definition at line 81 of file ScorchedContext.h.

Referenced by getOptionsGame(), and ScorchedContext().

OptionsTransient* ScorchedContext::optionsTransient [protected]

Definition at line 82 of file ScorchedContext.h.

Referenced by getOptionsTransient(), and ScorchedContext().

ViewPoints* ScorchedContext::viewPoints [protected]

Definition at line 83 of file ScorchedContext.h.

Referenced by getViewPoints(), and ScorchedContext().

ModFiles* ScorchedContext::modFiles [protected]

Definition at line 84 of file ScorchedContext.h.

Referenced by getModFiles(), and ScorchedContext().

AccessoryStore* ScorchedContext::accessoryStore [protected]

Definition at line 85 of file ScorchedContext.h.

Referenced by getAccessoryStore(), and ScorchedContext().

LandscapeDefinitions* ScorchedContext::landscapes [protected]

Definition at line 86 of file ScorchedContext.h.

Referenced by getLandscapes(), and ScorchedContext().

TargetContainer* ScorchedContext::targetContainer [protected]

Definition at line 87 of file ScorchedContext.h.

Referenced by getTargetContainer(), and ScorchedContext().

TankContainer* ScorchedContext::tankContainer [protected]

Definition at line 88 of file ScorchedContext.h.

Referenced by getTankContainer(), and ScorchedContext().

TankModelStore* ScorchedContext::tankModelStore [protected]

Definition at line 89 of file ScorchedContext.h.

Referenced by getTankModels(), and ScorchedContext().

TankTeamScore* ScorchedContext::tankTeamScore [protected]

Definition at line 90 of file ScorchedContext.h.

Referenced by getTankTeamScore(), and ScorchedContext().

TargetSpace* ScorchedContext::targetSpace [protected]

Definition at line 91 of file ScorchedContext.h.

Referenced by getTargetSpace(), and ScorchedContext().

TargetMovement* ScorchedContext::targetMovement [protected]

Definition at line 92 of file ScorchedContext.h.

Referenced by getTargetMovement(), and ScorchedContext().

LUAScriptFactory* ScorchedContext::luaScriptFactory [protected]

Definition at line 93 of file ScorchedContext.h.

Referenced by getLUAScriptFactory(), and ScorchedContext().

LUAScriptHook* ScorchedContext::luaScriptHook [protected]

Definition at line 94 of file ScorchedContext.h.

Referenced by getLUAScriptHook(), and ScorchedContext().

bool ScorchedContext::serverMode [protected]

Definition at line 95 of file ScorchedContext.h.

Referenced by getServerMode().


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