#include <CFloor.h>


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. | |
| CFloor::CFloor | ( | void | ) |
Constructor. Initialize the base class.
| CFloor::~CFloor | ( | void | ) | [virtual] |
Destructor. Uninitialize the base class.
| void CFloor::Create | ( | int | BlockX, | |
| int | BlockY, | |||
| EFloorAction | floorAction | |||
| ) |
Initialize the floor.


| void CFloor::Destroy | ( | void | ) |
Uninitialize the floor.
Reimplemented from CElement.


| bool CFloor::Update | ( | float | DeltaTime | ) | [virtual] |
Update the element. Return whether the element should be deleted by the arena.
Implements CElement.

| void CFloor::Display | ( | void | ) | [virtual] |
Display the floor.
Implements CElement.


| void CFloor::OnWriteSnapshot | ( | CArenaSnapshot & | Snapshot | ) | [virtual] |
| void CFloor::OnReadSnapshot | ( | CArenaSnapshot & | Snapshot | ) | [virtual] |
| void CFloor::Crush | ( | void | ) |
Make the floor react when the floor is crushed by a wall.

| int CFloor::GetBlockX | ( | void | ) | [inline] |
Return the block position X of the floor.

| int CFloor::GetBlockY | ( | void | ) | [inline] |
Return the block position Y of the floor.

| EFloorAction CFloor::GetFloorAction | ( | void | ) | [inline] |
Return the action of the floor.

| bool CFloor::HasAction | ( | void | ) | [inline] |
Return if the block has a action.

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?
EFloorAction CFloor::m_FloorAction [private] |
Action the floor does to objects touching it.
1.5.5