Nimbus  0.2
A game... with arrows... which should be clouds
 All Classes Functions Variables Enumerations Enumerator
Nimbus::Rainy Class Reference

#include <Rainy.h>

Inheritance diagram for Nimbus::Rainy:
Collaboration diagram for Nimbus::Rainy:

Public Member Functions

 Rainy (BehaviourType type, World *world, EventSystem *eventSystem)
 
 Rainy (BehaviourType type, World *world, Ogre::ConfigFile::SettingsMultiMap *initializingSettings, EventSystem *eventSystem)
 
 Rainy (Rainy *other, World *world, int id, EventSystem *eventSystem)
 
virtual ~Rainy (void)
 
virtual void startup (void)
 
virtual void update (void)
 
virtual void shutdown (void)
 
virtual Behaviourclone (Ogre::ConfigFile::SettingsMultiMap *initializingSettings, EventSystem *eventSystem)
 
virtual Behaviourclone (int id, EventSystem *eventSystem)
 
- Public Member Functions inherited from Nimbus::Behaviour
 Behaviour (BehaviourType type, World *world, EventSystem *eventSystem)
 
 Behaviour (BehaviourType type, World *world, Ogre::ConfigFile::SettingsMultiMap *initializingSettings, EventSystem *eventSystem)
 
 Behaviour (Behaviour *other, World *world, int id, EventSystem *eventSystem)
 
BehaviourType getBehaviourType ()
 

Additional Inherited Members

- Protected Attributes inherited from Nimbus::Behaviour
WorldmWorld
 
BehaviourType mBehaviourType
 
GameEntityId mParentId
 
EventSystemmEntityEventSystem
 

Detailed Description

Rainy is a behaviour that will cause the applied to an entity that will cause the entity to rain down on the tiles below it.

Constructor & Destructor Documentation

Nimbus::Rainy::Rainy ( BehaviourType  type,
World world,
EventSystem eventSystem 
)

Default constructor, taking a world pointer.

Parameters
typeThe type of Behaviour being constructed.
worldA pointer to the game world.
eventSystemA pointer to the parent entity's event system.
Nimbus::Rainy::Rainy ( BehaviourType  type,
World world,
Ogre::ConfigFile::SettingsMultiMap *  initializingSettings,
EventSystem eventSystem 
)

Constructor based of a set of initial settings.

Parameters
typeThe type of Behaviour being constructed.
worldA pointer to the game world.
intitializingSettingsA map of settings used to construct the intial entity.
eventSystemA pointer to the parent entity's event system.
Nimbus::Rainy::Rainy ( Rainy other,
World world,
int  id,
EventSystem eventSystem 
)

Constructor based on another Rainy behaviour.

Parameters
otherA pointer to the other Rainy behaviour.
worldA pointer to the game world.
idThe id of the parent entity holding this behaviour.
eventSystemA pointer to the parent entity's event system.
Nimbus::Rainy::~Rainy ( void  )
virtual

Virtual destructor for destroying things.

Member Function Documentation

Behaviour * Nimbus::Rainy::clone ( Ogre::ConfigFile::SettingsMultiMap *  initializingSettings,
EventSystem eventSystem 
)
virtual

Duplicates the entity using the settings given. Currently merely returns a pointer given by the constructor.

Implements Nimbus::Behaviour.

Behaviour * Nimbus::Rainy::clone ( int  id,
EventSystem eventSystem 
)
virtual

Duplicates the entity based on the current copy. This is used to enable use of the prototype pattern.

Implements Nimbus::Behaviour.

void Nimbus::Rainy::shutdown ( void  )
virtual

!! STUBBED !! Shuts down the behaviour, taking care of any major cleanup.

Implements Nimbus::Behaviour.

void Nimbus::Rainy::startup ( void  )
virtual

!! STUBBED !! Starts up the initial behaviour.

Implements Nimbus::Behaviour.

void Nimbus::Rainy::update ( void  )
virtual

!! STUBBED !! Updates the behaviour, influencing the entity.

Implements Nimbus::Behaviour.


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