#include <CArena.h>

Public Member Functions | |
| CArena (void) | |
| ~CArena (void) | |
| CArena & | operator= (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) |
| CArenaCloser & | GetArenaCloser (void) |
| CBomber & | GetBomber (int Index) |
| CBomb & | GetBomb (int Index) |
| CWall & | GetWall (int Index) |
| CItem & | GetItem (int Index) |
| CExplosion & | GetExplosion (int Index) |
| CFloor & | GetFloor (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 | |
| CDisplay * | m_pDisplay |
| Display object to pass to elements so they can display something. | |
| CSound * | m_pSound |
| Sound object to pass to elements so they can make sound. | |
| COptions * | m_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 |
| CArena::CArena | ( | const CArena & | Arena | ) | [private] |
| CArena::CArena | ( | void | ) |

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

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

| void CArena::UpdateView | ( | void | ) | [private] |

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

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


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


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


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


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


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


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


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


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


| void CArena::Create | ( | void | ) |


| void CArena::Destroy | ( | void | ) |


| void CArena::Update | ( | float | DeltaTime | ) |


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


| void CArena::Display | ( | void | ) |

| void CArena::WriteSnapshot | ( | CArenaSnapshot & | Snapshot | ) |


| void CArena::ReadSnapshot | ( | CArenaSnapshot & | Snapshot | ) |


| bool CArena::IsPrediction | ( | ) | [inline] |
| void CArena::SetPrediction | ( | bool | Active | ) | [inline] |
| CArenaCloser & CArena::GetArenaCloser | ( | void | ) | [inline] |

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

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


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


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


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


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


| int CArena::MaxFloors | ( | void | ) | [inline] |

| int CArena::MaxWalls | ( | void | ) | [inline] |

| int CArena::MaxBombs | ( | void | ) | [inline] |
| int CArena::MaxItems | ( | void | ) | [inline] |

| int CArena::MaxExplosions | ( | void | ) | [inline] |

| int CArena::MaxBombers | ( | void | ) | [inline] |
| int CArena::BombsInUse | ( | void | ) | [inline] |
return the bomb counter

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


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


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


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


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


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


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


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

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

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


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


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

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


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


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


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

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

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

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

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


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

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

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

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


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


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


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


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


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


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

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


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


CDisplay* CArena::m_pDisplay [private] |
Display object to pass to elements so they can display something.
CSound* CArena::m_pSound [private] |
Sound object to pass to elements so they can make sound.
COptions* CArena::m_pOptions [private] |
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] |
CArenaCloser CArena::m_ArenaCloser [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] |
1.5.5