Module Class Reference

#include <module.h>

Inherited by Game, Gui, Network, and VideoManager.

List of all members.

Public Member Functions

virtual bool Load ()=0
virtual bool Unload ()=0
virtual bool Update ()=0
virtual void * AskFor (std::string data)
virtual void GetSignal (std::string name)
void SetManager (ResourceManager *manager)

Protected Attributes

ResourceManagerm_modulemanager


Detailed Description

This class is inherited by all the modules that should be managed by the resource manager


Member Function Documentation

virtual bool Module::Load (  )  [pure virtual]

Called, when the module is loaded by the Resource Manager ( or another class)

Implemented in Gui, Game, Network, and VideoManager.

virtual bool Module::Unload (  )  [pure virtual]

Called, when the module is to be updated the Resource Manager ( or another class)

Implemented in Gui, Game, Network, and VideoManager.

virtual bool Module::Update (  )  [pure virtual]

Called, when the module is unloaded the Resource Manager ( or another class)

Implemented in Gui, Game, Network, and VideoManager.

virtual void* Module::AskFor ( std::string  data  )  [inline, virtual]

A Function that is called to become a specified pointer

Parameters:
data the key to specify what you want
Returns:
a void pointer to the asked data

Reimplemented in Game, and Network.

virtual void Module::GetSignal ( std::string  name  )  [inline, virtual]

Called, when a signal is sent to the module

Parameters:
name the name of the signal

Reimplemented in Gui, Game, Network, and VideoManager.

void Module::SetManager ( ResourceManager manager  ) 

A function that sets the resource manager of the module

Parameters:
manager the pointer to the manager that is set


Member Data Documentation

ResourceManager* Module::m_modulemanager [protected]


The documentation for this class was generated from the following files:
Generated on Wed Feb 21 21:50:47 2007 for Minup by  doxygen 1.5.1-p1