#include <CElement.h>


Public Member Functions | |
| CElement () | |
| Base constructor. Some member initializations. | |
| virtual | ~CElement () |
| Base destructor. Does nothing. | |
| virtual void | SetArena (CArena *pArena) |
| Set link to the parent arena in which this element is. | |
| virtual void | SetDisplay (CDisplay *pDisplay) |
| Set link to the display object to use. | |
| virtual void | SetSound (CSound *pSound) |
| Set link to the sound object to use. | |
| virtual bool | Update (float DeltaTime)=0 |
| Update the element. Return whether the element should be deleted by the arena. | |
| virtual void | Display (void)=0 |
| Display the element. | |
| void | WriteSnapshot (CArenaSnapshot &Snapshot) |
| void | ReadSnapshot (CArenaSnapshot &Snapshot) |
| bool | Exist (void) |
| Return whether the element exists (i.e. should be updated and displayed). | |
Protected Member Functions | |
| void | Create (void) |
| Initialize the element. You need to call this on creation ( Create() )of the inherited class. | |
| void | Destroy (void) |
| Uninitialize the element. You need to call this on destruction ( Destroy() ) of the inherited class. | |
| virtual void | OnWriteSnapshot (CArenaSnapshot &Snapshot)=0 |
| virtual void | OnReadSnapshot (CArenaSnapshot &Snapshot)=0 |
Protected Attributes | |
| CArena * | m_pArena |
| Link to the parent arena in which this element is. | |
| CDisplay * | m_pDisplay |
| Link to the display object to use. | |
| CSound * | m_pSound |
| Link to the sound object to use. | |
Private Attributes | |
| bool | m_Exist |
| Does the element exist? (is it created?). | |
| CElement::CElement | ( | void | ) |
Base constructor. Some member initializations.
| CElement::~CElement | ( | void | ) | [virtual] |
Base destructor. Does nothing.
| void CElement::Create | ( | void | ) | [protected] |
Initialize the element. You need to call this on creation ( Create() )of the inherited class.

| void CElement::Destroy | ( | void | ) | [protected] |
| virtual void CElement::OnWriteSnapshot | ( | CArenaSnapshot & | Snapshot | ) | [protected, pure virtual] |
| virtual void CElement::OnReadSnapshot | ( | CArenaSnapshot & | Snapshot | ) | [protected, pure virtual] |
| void CElement::SetArena | ( | CArena * | pArena | ) | [inline, virtual] |
Set link to the parent arena in which this element is.
Reimplemented in CBomber.

| void CElement::SetDisplay | ( | CDisplay * | pDisplay | ) | [inline, virtual] |
Set link to the display object to use.

| void CElement::SetSound | ( | CSound * | pSound | ) | [inline, virtual] |
Set link to the sound object to use.

| virtual bool CElement::Update | ( | float | DeltaTime | ) | [pure virtual] |
| virtual void CElement::Display | ( | void | ) | [pure virtual] |
| void CElement::WriteSnapshot | ( | CArenaSnapshot & | Snapshot | ) |


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


| bool CElement::Exist | ( | void | ) | [inline] |
Return whether the element exists (i.e. should be updated and displayed).
bool CElement::m_Exist [private] |
Does the element exist? (is it created?).
CArena* CElement::m_pArena [protected] |
Link to the parent arena in which this element is.
CDisplay* CElement::m_pDisplay [protected] |
Link to the display object to use.
CSound* CElement::m_pSound [protected] |
Link to the sound object to use.
1.5.5