Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

BattleState Class Reference

#include <BattleState.h>

Collaboration diagram for BattleState:

Collaboration graph
[legend]
List of all members.

Detailed Description

internal state data of a battle (states of all units, bullets, particles, etc)

Definition at line 40 of file BattleState.h.

Public Methods

 BattleState ()
void addBullet (const BattleBullet b)

Public Attributes

vector< BattleGroupgroups
vector< BattleJetsjets
list< BattleSpritesprites
list< BattleDebrisdebris
BattleBullet bullets [MAX_BULLET]
int bulletCount
ATerrain terrain
Vec3D teamAColor
Vec3D teamBColor
int synch_firstShotTick
int synch_firstKillTick
int m_cvLastContact
int m_cvLastStress
int m_cvLastPanick


Constructor & Destructor Documentation

BattleState::BattleState   [inline]
 

Definition at line 43 of file BattleState.h.

00044         {
00045                 bulletCount = 0;
00046         }


Member Function Documentation

void BattleState::addBullet const BattleBullet    b [inline]
 

Definition at line 48 of file BattleState.h.

References MAX_BULLET.

Referenced by BattleGroup::fire(), BattleGroup::fireAntiAir(), BattleJets::fireAntiAirMissiles(), and BattleJets::fireAntiSurfaceMissiles().

00049         {
00050                 if ( bulletCount < MAX_BULLET ) bullets[bulletCount++] = b;
00051         }


Member Data Documentation

int BattleState::bulletCount
 

Definition at line 58 of file BattleState.h.

Referenced by BattleEntry::renderBullets(), and BattleEntry::updateBullets().

BattleBullet BattleState::bullets[MAX_BULLET]
 

Definition at line 57 of file BattleState.h.

Referenced by BattleEntry::renderBullets(), and BattleEntry::updateBullets().

list<BattleDebris> BattleState::debris
 

Definition at line 56 of file BattleState.h.

Referenced by BattleGroup::destroyUnit(), BattleEntry::renderDebris(), BattleJets::takeHit(), and BattleEntry::updateDebris().

vector<BattleGroup> BattleState::groups
 

Definition at line 53 of file BattleState.h.

Referenced by BattleGroup::acquireGroupTargets(), BattleEntry::countGroupsBelongingToPlayer(), BattleGroup::fire(), BattleJets::flyTo(), BattleEntry::getGroupAtPos2D(), BattleEntry::getTeamCode(), BattleEntry::initBattle(), BattleEntry::input(), BattleEntry::inputIssueGroupCommand(), BattleEntry::inputSelectByHotKey(), BattleEntry::inputSelectGroups(), BattleEntry::inputSelectJets(), BattleEntry::isBattleFinished(), BattleEntry::maySendGroundReinforcement(), BattleGroup::moveBattleGroup(), BattleJets::orderToBomb(), BattleEntry::processQueuedInput(), BattleGroup::render(), BattleEntry::renderGroups(), BattleEntry::renderInterface(), BattleEntry::renderMiniMap(), BattleEntry::sendGroundReinforcement(), BattleEntry::updateBullets(), and BattleEntry::updateGroups().

vector<BattleJets> BattleState::jets
 

Definition at line 54 of file BattleState.h.

Referenced by BattleEntry::countGroupsBelongingToPlayer(), BattleGroup::fireAntiAir(), BattleJets::fireAntiAirMissiles(), BattleEntry::getTeamCode(), BattleEntry::initBattle(), BattleEntry::input(), BattleEntry::inputIssueJetsCommand(), BattleEntry::inputSelectByHotKey(), BattleEntry::inputSelectJets(), BattleEntry::isBattleFinished(), BattleEntry::maySendAirReinforcement(), BattleEntry::processQueuedInput(), BattleEntry::renderJets(), BattleEntry::renderMiniMap(), BattleEntry::sendAirReinforcement(), BattleEntry::updateBullets(), and BattleEntry::updateJets().

int BattleState::m_cvLastContact
 

Definition at line 69 of file BattleState.h.

Referenced by BattleEntry::BattleEntry(), playVoiceContact(), and BattleEntry::update().

int BattleState::m_cvLastPanick
 

Definition at line 71 of file BattleState.h.

Referenced by BattleEntry::BattleEntry(), playVoiceContact(), playVoiceStress(), and BattleEntry::update().

int BattleState::m_cvLastStress
 

Definition at line 70 of file BattleState.h.

Referenced by BattleEntry::BattleEntry(), playVoicePanick(), playVoiceStress(), and BattleEntry::update().

list<BattleSprite> BattleState::sprites
 

Definition at line 55 of file BattleState.h.

Referenced by BattleGroup::destroyUnit(), BattleEntry::renderParticles(), BattleGroup::takeHit(), BattleEntry::updateBullets(), BattleEntry::updateDebris(), and BattleEntry::updateParticles().

int BattleState::synch_firstKillTick
 

Definition at line 65 of file BattleState.h.

Referenced by BattleGroup::destroyUnit(), and BattleEntry::initBattle().

int BattleState::synch_firstShotTick
 

Definition at line 64 of file BattleState.h.

Referenced by BattleGroup::fire(), and BattleEntry::initBattle().

Vec3D BattleState::teamAColor
 

Definition at line 60 of file BattleState.h.

Referenced by BattleGroup::destroyUnit(), BattleGroup::fire(), BattleJets::fireAntiAirMissiles(), BattleJets::fireAntiSurfaceMissiles(), BattleEntry::initBattle(), playVoiceContact(), playVoicePanick(), playVoiceStress(), and BattleJets::takeHit().

Vec3D BattleState::teamBColor
 

Definition at line 60 of file BattleState.h.

Referenced by BattleGroup::destroyUnit(), BattleGroup::fire(), BattleJets::fireAntiAirMissiles(), BattleJets::fireAntiSurfaceMissiles(), BattleEntry::initBattle(), playVoiceContact(), playVoicePanick(), playVoiceStress(), and BattleJets::takeHit().

ATerrain BattleState::terrain
 

Definition at line 59 of file BattleState.h.

Referenced by BattleGroup::destroyUnit(), BattleGroup::drawOutlineBox(), BattleGroup::fire(), BattleGroup::fireAntiAir(), BattleJets::flyTo(), BattleEntry::initBattle(), BattleEntry::inputIssueJetsCommand(), BattleGroup::isContain2DPoint(), BattleJets::orderToBomb(), BattleGroup::render(), BattleEntry::renderEnvironment(), BattleEntry::renderGroups(), and BattleEntry::updateDebris().


The documentation for this class was generated from the following file:
Generated on Wed Apr 23 05:52:02 2003 for Modern Warfare by doxygen1.3-rc2