CArenaCloser Class Reference

This class manages the closure of an arena. More...

#include <CArenaCloser.h>

Collaboration diagram for CArenaCloser:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CArenaCloser (void)
 Constructor.
 ~CArenaCloser (void)
 Destructor.
void SetArena (CArena *pArena)
 Set the arena to close.
void SetOptions (COptions *pOptions)
 Set the options object to use.
void Create (void)
 Initialize the arena closer (this doesn't start closure).
void Destroy (void)
 Uninitialize the arena closer (frees any allocated memory).
void Start (void)
 Start to close the arena.
void Stop (void)
 Stop closing the arena.
void Update (float DeltaTime)
 Close the arena if closure has started.
void WriteSnapshot (CArenaSnapshot &Snapshot)
void ReadSnapshot (CArenaSnapshot &Snapshot)
bool IsClosing (void)
 Is the arena currently closing?
int GetNextBlockPositionX (int Index)
 Get the X position (in blocks) of the block that will be closed next.
int GetNextBlockPositionY (int Index)
 Get the Y position (in blocks) of the block that will be closed next.
int GetNumberOfBlocksLeft (void)
 Get the number of blocks the arena closer still has to close.
float GetTimeBetweenTwoBlockClosures (void)
 Get the time (in seconds) that elapses between the closure of one block and the closure of the next block.
float GetTimeLeftBeforeClosingNextBlock (void)
 Get the time left (in seconds) before the next block should start closing.

Private Member Functions

void CreateSpiralClosing (void)
 Prepare the closure data for a spiral arena closure.
void CreateHorizontalClosing (void)
 Prepare the closure data for an horizontal arena closure.
void CreateVerticalClosing (void)
 Prepare the closure data for a vertical arena closure.

Private Attributes

CArenam_pArena
 Arena to close.
COptionsm_pOptions
 Options object where to find the arena closure settings for this match.
TClosure m_ClosureData
 Sequence of block positions which have to be closed in this order.
float m_TimeBetweenTwoBlockClosures
 How many seconds should elapse after closing a block and before closing the next block?
float m_TimeLeftBeforeClosingNextBlock
 Time left in seconds before the next block should start closing.
bool m_IsClosing
 Is the arena currently closing?


Detailed Description

This class manages the closure of an arena.

Constructor & Destructor Documentation

CArenaCloser::CArenaCloser ( void   ) 

Constructor.

CArenaCloser::~CArenaCloser ( void   ) 

Destructor.


Member Function Documentation

void CArenaCloser::CreateSpiralClosing ( void   )  [private]

Prepare the closure data for a spiral arena closure.

Here is the caller graph for this function:

void CArenaCloser::CreateHorizontalClosing ( void   )  [private]

Prepare the closure data for an horizontal arena closure.

Here is the caller graph for this function:

void CArenaCloser::CreateVerticalClosing ( void   )  [private]

Prepare the closure data for a vertical arena closure.

Here is the caller graph for this function:

void CArenaCloser::SetArena ( CArena pArena  )  [inline]

Set the arena to close.

Here is the caller graph for this function:

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

Set the options object to use.

Here is the caller graph for this function:

void CArenaCloser::Create ( void   ) 

Initialize the arena closer (this doesn't start closure).

Here is the call graph for this function:

Here is the caller graph for this function:

void CArenaCloser::Destroy ( void   ) 

Uninitialize the arena closer (frees any allocated memory).

Here is the caller graph for this function:

void CArenaCloser::Start ( void   ) 

Start to close the arena.

Here is the call graph for this function:

Here is the caller graph for this function:

void CArenaCloser::Stop ( void   ) 

Stop closing the arena.

Here is the caller graph for this function:

void CArenaCloser::Update ( float  DeltaTime  ) 

Close the arena if closure has started.

Here is the call graph for this function:

Here is the caller graph for this function:

void CArenaCloser::WriteSnapshot ( CArenaSnapshot Snapshot  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void CArenaCloser::ReadSnapshot ( CArenaSnapshot Snapshot  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

bool CArenaCloser::IsClosing ( void   )  [inline]

Is the arena currently closing?

Here is the caller graph for this function:

int CArenaCloser::GetNextBlockPositionX ( int  Index  )  [inline]

Get the X position (in blocks) of the block that will be closed next.

Here is the caller graph for this function:

int CArenaCloser::GetNextBlockPositionY ( int  Index  )  [inline]

Get the Y position (in blocks) of the block that will be closed next.

Here is the caller graph for this function:

int CArenaCloser::GetNumberOfBlocksLeft ( void   )  [inline]

Get the number of blocks the arena closer still has to close.

Here is the caller graph for this function:

float CArenaCloser::GetTimeBetweenTwoBlockClosures ( void   )  [inline]

Get the time (in seconds) that elapses between the closure of one block and the closure of the next block.

Here is the caller graph for this function:

float CArenaCloser::GetTimeLeftBeforeClosingNextBlock ( void   )  [inline]

Get the time left (in seconds) before the next block should start closing.

Here is the caller graph for this function:


Member Data Documentation

Arena to close.

Options object where to find the arena closure settings for this match.

Sequence of block positions which have to be closed in this order.

How many seconds should elapse after closing a block and before closing the next block?

Time left in seconds before the next block should start closing.

bool CArenaCloser::m_IsClosing [private]

Is the arena currently closing?


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

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