CArena Class Reference

#include <CArena.h>

Collaboration diagram for CArena:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CArena (void)
 ~CArena (void)
CArenaoperator= (const CArena &Arena)
void SetDisplay (CDisplay *pDisplay)
void SetSound (CSound *pSound)
void SetOptions (COptions *pOptions)
void Create (void)
void Destroy (void)
void Update (float DeltaTime)
void UpdateSingleBomber (int Player, float DeltaTime)
void Display (void)
void WriteSnapshot (CArenaSnapshot &Snapshot)
void ReadSnapshot (CArenaSnapshot &Snapshot)
bool IsPrediction ()
void SetPrediction (bool Active)
CArenaCloserGetArenaCloser (void)
CBomberGetBomber (int Index)
CBombGetBomb (int Index)
CWallGetWall (int Index)
CItemGetItem (int Index)
CExplosionGetExplosion (int Index)
CFloorGetFloor (int Index)
int MaxFloors (void)
int MaxWalls (void)
int MaxBombs (void)
int MaxItems (void)
int MaxExplosions (void)
int MaxBombers (void)
int BombsInUse (void)
 return the bomb counter
void NewFloor (int BlockX, int BlockY, EBlockType BlockType)
void NewWall (int BlockX, int BlockY, EWallType Type)
void NewBomb (int BlockX, int BlockY, int FlameSize, float TimeLeft, int OwnerPlayer)
void NewItem (int BlockX, int BlockY, EItemType Type, bool Fumes, bool FlyingRandom)
void NewExplosion (int BlockX, int BlockY, int FlameSize)
void NewBomber (int BlockX, int BlockY, int Player)
EFloorAction GetFloorAction (int BlockX, int BlockY)
int ToBlock (int Position)
int ToPosition (int Block)
bool IsWall (int BlockX, int BlockY)
bool IsSoftWall (int BlockX, int BlockY)
bool IsHardWall (int BlockX, int BlockY)
bool IsFallingWall (int BlockX, int BlockY)
bool IsBurningWall (int BlockX, int BlockY)
bool IsItem (int BlockX, int BlockY)
bool IsBombItem (int BlockX, int BlockY)
bool IsFlameItem (int BlockX, int BlockY)
bool IsRollerItem (int BlockX, int BlockY)
bool IsKickItem (int BlockX, int BlockY)
bool IsSkullItem (int BlockX, int BlockY)
bool IsThrowItem (int BlockX, int BlockY)
bool IsPunchItem (int BlockX, int BlockY)
bool IsRemoteItem (int BlockX, int BlockY)
bool IsBurningItem (int BlockX, int BlockY)
bool IsBomb (int BlockX, int BlockY)
bool IsFlame (int BlockX, int BlockY)
bool IsExplosion (int BlockX, int BlockY)
bool IsBomber (int BlockX, int BlockY)
bool IsAliveBomber (int BlockX, int BlockY)
bool IsDyingBomber (int BlockX, int BlockY)
bool IsFloor (int BlockX, int BlockY)
bool IsFloorWithMoveEffect (int BlockX, int BlockY)

Private Member Functions

 CArena (const CArena &Arena)
void ClearBlock (int X, int Y)
void UpdateElements (float DeltaTime)
void UpdateView (void)
bool GetBlockHas (int BlockX, int BlockY, TBlockHas BlockHas)
void SetBlockHas (int BlockX, int BlockY, TBlockHas BlockHas)
void DeleteBomber (int Index)
void DeleteBomb (int Index)
void DeleteWall (int Index)
void DeleteItem (int Index)
void DeleteExplosion (int Index)
void DeleteFloor (int Index)

Private Attributes

CDisplaym_pDisplay
 Display object to pass to elements so they can display something.
CSoundm_pSound
 Sound object to pass to elements so they can make sound.
COptionsm_pOptions
 Options object to use to get information about what the user chose.
CFloor m_Floors [MAX_FLOORS]
CWall m_Walls [MAX_WALLS]
CBomb m_Bombs [MAX_BOMBS]
CItem m_Items [MAX_ITEMS]
CExplosion m_Explosions [MAX_EXPLOSIONS]
CBomber m_Bombers [MAX_BOMBERS]
CArenaCloser m_ArenaCloser
TBlockHas m_BlockHas [ARENA_WIDTH][ARENA_HEIGHT]
 Simplified view of the arena made using the element containers. This allows a fast access to the basic information of the arena.
int m_BombsInUse
 A counter for bombs in use.
bool m_Prediction


Constructor & Destructor Documentation

CArena::CArena ( const CArena Arena  )  [private]

CArena::CArena ( void   ) 

Here is the call graph for this function:

CArena::~CArena ( void   ) 


Member Function Documentation

void CArena::ClearBlock ( int  X,
int  Y 
) [private]

Here is the call graph for this function:

void CArena::UpdateElements ( float  DeltaTime  )  [private]

Here is the caller graph for this function:

void CArena::UpdateView ( void   )  [private]

Todo:
: Check which functions depend on these BLOCKHAS_xxx values

Here is the caller graph for this function:

bool CArena::GetBlockHas ( int  BlockX,
int  BlockY,
TBlockHas  BlockHas 
) [inline, private]

void CArena::SetBlockHas ( int  BlockX,
int  BlockY,
TBlockHas  BlockHas 
) [inline, private]

Here is the caller graph for this function:

void CArena::DeleteBomber ( int  Index  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::DeleteBomb ( int  Index  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::DeleteWall ( int  Index  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::DeleteItem ( int  Index  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::DeleteExplosion ( int  Index  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::DeleteFloor ( int  Index  )  [private]

Here is the call graph for this function:

Here is the caller graph for this function:

CArena & CArena::operator= ( const CArena Arena  ) 

Here is the call graph for this function:

void CArena::SetDisplay ( CDisplay pDisplay  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::SetSound ( CSound pSound  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::SetOptions ( COptions pOptions  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::Create ( void   ) 

See also:
CItem::CreateItems()

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::Destroy ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::Update ( float  DeltaTime  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::UpdateSingleBomber ( int  Player,
float  DeltaTime 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::Display ( void   ) 

Here is the caller graph for this function:

void CArena::WriteSnapshot ( CArenaSnapshot Snapshot  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::ReadSnapshot ( CArenaSnapshot Snapshot  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsPrediction (  )  [inline]

void CArena::SetPrediction ( bool  Active  )  [inline]

CArenaCloser & CArena::GetArenaCloser ( void   )  [inline]

Here is the caller graph for this function:

CBomber & CArena::GetBomber ( int  Index  )  [inline]

Here is the call graph for this function:

CBomb & CArena::GetBomb ( int  Index  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

CWall & CArena::GetWall ( int  Index  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

CItem & CArena::GetItem ( int  Index  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

CExplosion & CArena::GetExplosion ( int  Index  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

CFloor & CArena::GetFloor ( int  Index  )  [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

int CArena::MaxFloors ( void   )  [inline]

Here is the caller graph for this function:

int CArena::MaxWalls ( void   )  [inline]

Here is the caller graph for this function:

int CArena::MaxBombs ( void   )  [inline]

int CArena::MaxItems ( void   )  [inline]

Here is the caller graph for this function:

int CArena::MaxExplosions ( void   )  [inline]

Here is the caller graph for this function:

int CArena::MaxBombers ( void   )  [inline]

int CArena::BombsInUse ( void   )  [inline]

return the bomb counter

Returns:
how many bombs are currently used

Here is the caller graph for this function:

void CArena::NewFloor ( int  BlockX,
int  BlockY,
EBlockType  BlockType 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::NewWall ( int  BlockX,
int  BlockY,
EWallType  Type 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::NewBomb ( int  BlockX,
int  BlockY,
int  FlameSize,
float  TimeLeft,
int  OwnerPlayer 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::NewItem ( int  BlockX,
int  BlockY,
EItemType  Type,
bool  Fumes,
bool  FlyingRandom 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::NewExplosion ( int  BlockX,
int  BlockY,
int  FlameSize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CArena::NewBomber ( int  BlockX,
int  BlockY,
int  Player 
)

Here is the call graph for this function:

Here is the caller graph for this function:

EFloorAction CArena::GetFloorAction ( int  BlockX,
int  BlockY 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int CArena::ToBlock ( int  Position  )  [inline]

Here is the caller graph for this function:

int CArena::ToPosition ( int  Block  )  [inline]

Here is the caller graph for this function:

bool CArena::IsWall ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsSoftWall ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsHardWall ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsFallingWall ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsBurningWall ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsBombItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsFlameItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsRollerItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsKickItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsSkullItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsThrowItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsPunchItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsRemoteItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsBurningItem ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsBomb ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsFlame ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsExplosion ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsBomber ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsAliveBomber ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsDyingBomber ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

bool CArena::IsFloor ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArena::IsFloorWithMoveEffect ( int  BlockX,
int  BlockY 
) [inline]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Display object to pass to elements so they can display something.

Sound object to pass to elements so they can make sound.

Options object to use to get information about what the user chose.

CFloor CArena::m_Floors[MAX_FLOORS] [private]

CWall CArena::m_Walls[MAX_WALLS] [private]

CBomb CArena::m_Bombs[MAX_BOMBS] [private]

CItem CArena::m_Items[MAX_ITEMS] [private]

CExplosion CArena::m_Explosions[MAX_EXPLOSIONS] [private]

CBomber CArena::m_Bombers[MAX_BOMBERS] [private]

TBlockHas CArena::m_BlockHas[ARENA_WIDTH][ARENA_HEIGHT] [private]

Simplified view of the arena made using the element containers. This allows a fast access to the basic information of the arena.

int CArena::m_BombsInUse [private]

A counter for bombs in use.

bool CArena::m_Prediction [private]


The documentation for this class was generated from the following files:

Generated on Sat Oct 18 12:26:40 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo