Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mortic::IScene Class Reference

A scene or state in mortic. More...

Inheritance diagram for mortic::IScene:

mortic::IObject List of all members.

Public Member Functions

 IScene (IRoot *root, std::string name)
 Constructor.
virtual void start ()=0
 Stop the Scene.
virtual void stop ()=0
 Stop the Scene.
virtual void run ()=0
 Run the Scene.
virtual bool event (IEvent *e)=0
 Handle an Event.

Detailed Description

A scene or state in mortic.

Scenes are where all the code actually should be. Right now, they can be equated to runstates. You could have a scene for the menu, configuration, and game. Just subclass this object, and register it with the ISceneManager.

See also:
ISceneManager

Definition at line 35 of file IScene.h.


Constructor & Destructor Documentation

mortic::IScene::IScene IRoot root,
std::string  name
[inline]
 

Constructor.

Definition at line 39 of file IScene.h.


Member Function Documentation

virtual bool mortic::IScene::event IEvent e  )  [pure virtual]
 

Handle an Event.

Don't call this directly, but call it from ISceneManager.

See also:
IEvent

IEventManager

virtual void mortic::IScene::run  )  [pure virtual]
 

Run the Scene.

Called every frame. Don't call this directly, but call it from ISceneManager.

virtual void mortic::IScene::start  )  [pure virtual]
 

Stop the Scene.

Don't call this directly, but call it from ISceneManager.

virtual void mortic::IScene::stop  )  [pure virtual]
 

Stop the Scene.

Don't call this directly, but call it from ISceneManager.


Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4