CFloor Class Reference

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

#include <CFloor.h>

Inheritance diagram for CFloor:

Inheritance graph
[legend]
Collaboration diagram for CFloor:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CFloor (void)
 Constructor. Initialize the base class.
virtual ~CFloor (void)
 Destructor. Uninitialize the base class.
void Create (int BlockX, int BlockY, EFloorAction floorAction)
 Initialize the floor.
void Destroy (void)
 Uninitialize the floor.
bool Update (float DeltaTime)
 Update the element. Return whether the element should be deleted by the arena.
void Display (void)
 Display the floor.
void OnWriteSnapshot (CArenaSnapshot &Snapshot)
void OnReadSnapshot (CArenaSnapshot &Snapshot)
void Crush (void)
 Make the floor react when the floor is crushed by a wall.
int GetBlockX (void)
 Return the block position X of the floor.
int GetBlockY (void)
 Return the block position Y of the floor.
EFloorAction GetFloorAction (void)
 Return the action of the floor.
bool HasAction (void)
 Return if the block has a action.

Private Attributes

int m_iX
 Integer position X (in pixels) in the arena.
int m_iY
 Integer position Y (in pixels) in the arena.
int m_BlockX
 Position X (in blocks) in the arena grid.
int m_BlockY
 Position Y (in blocks) in the arena grid.
bool m_Dead
 Should the floor be deleted by the arena?
EFloorAction m_FloorAction
 Action the floor does to objects touching it.


Detailed Description

An element in the arena which represents a bomb.

Constructor & Destructor Documentation

CFloor::CFloor ( void   ) 

Constructor. Initialize the base class.

CFloor::~CFloor ( void   )  [virtual]

Destructor. Uninitialize the base class.


Member Function Documentation

void CFloor::Create ( int  BlockX,
int  BlockY,
EFloorAction  floorAction 
)

Initialize the floor.

Here is the call graph for this function:

Here is the caller graph for this function:

void CFloor::Destroy ( void   ) 

Uninitialize the floor.

Reimplemented from CElement.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Implements CElement.

Here is the caller graph for this function:

void CFloor::Display ( void   )  [virtual]

Display the floor.

Implements CElement.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements CElement.

Here is the call graph for this function:

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

Implements CElement.

Here is the call graph for this function:

void CFloor::Crush ( void   ) 

Make the floor react when the floor is crushed by a wall.

Here is the caller graph for this function:

int CFloor::GetBlockX ( void   )  [inline]

Return the block position X of the floor.

Here is the caller graph for this function:

int CFloor::GetBlockY ( void   )  [inline]

Return the block position Y of the floor.

Here is the caller graph for this function:

EFloorAction CFloor::GetFloorAction ( void   )  [inline]

Return the action of the floor.

Here is the caller graph for this function:

bool CFloor::HasAction ( void   )  [inline]

Return if the block has a action.

Here is the call graph for this function:


Member Data Documentation

int CFloor::m_iX [private]

Integer position X (in pixels) in the arena.

int CFloor::m_iY [private]

Integer position Y (in pixels) in the arena.

int CFloor::m_BlockX [private]

Position X (in blocks) in the arena grid.

int CFloor::m_BlockY [private]

Position Y (in blocks) in the arena grid.

bool CFloor::m_Dead [private]

Should the floor be deleted by the arena?

Action the floor does to objects touching it.


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

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