CWall Class Reference

An element in the arena which represents a wall. More...

#include <CWall.h>

Inheritance diagram for CWall:

Inheritance graph
[legend]
Collaboration diagram for CWall:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CWall (void)
 Constructor (initialize the base class).
virtual ~CWall (void)
 Destructor (uninitialize the base class).
void Create (int BlockX, int BlockY, EWallType Type)
 Initialize the wall.
void Destroy (void)
 Uninitialize the wall.
bool Update (float DeltaTime)
 Update the wall. Return whether the element should be deleted by the arena.
void Display (void)
 Display the wall.
void OnWriteSnapshot (CArenaSnapshot &Snapshot)
void OnReadSnapshot (CArenaSnapshot &Snapshot)
void Burn (void)
 Make the wall react when it is burnt by an explosion.
void Crush (void)
 Make the wall react when it is crushed by another wall.
int GetBlockX (void)
 Return the block position X of the wall.
int GetBlockY (void)
 Return the block position Y of the wall.
bool IsBurning (void)
 Return whether the wall is burning.
int GetType (void)
 Return the type of the wall.

Private Attributes

int m_iX
 Integer position X (in pixels) in the arena.
int m_iY
 Integer position Y (in pixels) in the arena.
float m_fX
 Float position X (in pixels) in the arena (only used for falling walls because they move).
float m_fY
 Float position Y (in pixels) in the arena (only used for falling walls because they move).
int m_BlockX
 Position X (in blocks) in the arena grid.
int m_BlockY
 Position Y (in blocks) in the arena grid.
int m_Sprite
 Current sprite to use when displaying.
float m_Timer
 Time counter for animation.
bool m_Dead
 Is the wall dead? (can it be deleted by the arena?).
bool m_Burning
 Is the wall burning?
EWallType m_Type
 Type of the wall.


Detailed Description

An element in the arena which represents a wall.

Constructor & Destructor Documentation

CWall::CWall ( void   ) 

Constructor (initialize the base class).

CWall::~CWall ( void   )  [virtual]

Destructor (uninitialize the base class).


Member Function Documentation

void CWall::Create ( int  BlockX,
int  BlockY,
EWallType  Type 
)

Initialize the wall.

Here is the call graph for this function:

Here is the caller graph for this function:

void CWall::Destroy ( void   ) 

Uninitialize the wall.

Reimplemented from CElement.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CWall::Update ( float  DeltaTime  )  [virtual]

Update the wall. Return whether the element should be deleted by the arena.

Implements CElement.

Here is the caller graph for this function:

void CWall::Display ( void   )  [virtual]

Display the wall.

Implements CElement.

Here is the call graph for this function:

Here is the caller graph for this function:

void CWall::OnWriteSnapshot ( CArenaSnapshot Snapshot  )  [virtual]

Implements CElement.

Here is the call graph for this function:

void CWall::OnReadSnapshot ( CArenaSnapshot Snapshot  )  [virtual]

Implements CElement.

Here is the call graph for this function:

void CWall::Burn ( void   ) 

Make the wall react when it is burnt by an explosion.

Here is the caller graph for this function:

void CWall::Crush ( void   ) 

Make the wall react when it is crushed by another wall.

Here is the caller graph for this function:

int CWall::GetBlockX ( void   )  [inline]

Return the block position X of the wall.

Here is the caller graph for this function:

int CWall::GetBlockY ( void   )  [inline]

Return the block position Y of the wall.

Here is the caller graph for this function:

bool CWall::IsBurning ( void   )  [inline]

Return whether the wall is burning.

int CWall::GetType ( void   )  [inline]

Return the type of the wall.

Here is the caller graph for this function:


Member Data Documentation

int CWall::m_iX [private]

Integer position X (in pixels) in the arena.

int CWall::m_iY [private]

Integer position Y (in pixels) in the arena.

float CWall::m_fX [private]

Float position X (in pixels) in the arena (only used for falling walls because they move).

float CWall::m_fY [private]

Float position Y (in pixels) in the arena (only used for falling walls because they move).

int CWall::m_BlockX [private]

Position X (in blocks) in the arena grid.

int CWall::m_BlockY [private]

Position Y (in blocks) in the arena grid.

int CWall::m_Sprite [private]

Current sprite to use when displaying.

float CWall::m_Timer [private]

Time counter for animation.

bool CWall::m_Dead [private]

Is the wall dead? (can it be deleted by the arena?).

bool CWall::m_Burning [private]

Is the wall burning?

Type of the wall.


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

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