#include <gmcomponent.h>

Public Member Functions | |
| GMComponent (const std::string &name) | |
| Constructor. | |
| virtual void | DispatchNetworkMessage (const Message &message) |
| handles a sent a message | |
| virtual void | ProcessMessage (const Message &message) |
| handles a processed a message | |
| const GameManager * | GetGameManager () const |
| Gets the game manager that owns this component. | |
| GameManager * | GetGameManager () |
| Gets the game manager that owns this component. | |
| const GameManager::ComponentPriority & | GetComponentPriority () const |
| Get the priority of this component. | |
| virtual void | OnAddedToGM () |
| Called immediately after a component is added to the GM. | |
| virtual void | OnRemovedFromGM () |
| Called immediately after a component is removed from the GM. | |
Protected Member Functions | |
| virtual | ~GMComponent () |
| Destructor. | |
Friends | |
| class | GameManager |
| dtGame::GMComponent::GMComponent | ( | const std::string & | name | ) |
Constructor.
| name | client code must supply a unique name for this instance. |
| dtGame::GMComponent::~GMComponent | ( | ) | [protected, virtual] |
Destructor.
| void dtGame::GMComponent::DispatchNetworkMessage | ( | const Message & | message | ) | [virtual] |
handles a sent a message
| The | message |
Reimplemented in dtGame::DefaultNetworkPublishingComponent, dtHLAGM::HLAComponent, and dtNetGM::NetworkComponent.
| void dtGame::GMComponent::ProcessMessage | ( | const Message & | message | ) | [virtual] |
handles a processed a message
| The | message |
Reimplemented in dtAnim::AnimationComponent, dtDIS::MasterComponent, dtGame::DeadReckoningComponent, dtGame::DefaultMessageProcessor, dtGame::DefaultNetworkPublishingComponent, dtGame::LogController, dtGame::ServerLoggerComponent, dtGame::TaskComponent, dtHLAGM::HLAComponent, dtLMS::LmsComponent, and dtNetGM::NetworkComponent.
| const GameManager* dtGame::GMComponent::GetGameManager | ( | ) | const [inline] |
Gets the game manager that owns this component.
| GameManager* dtGame::GMComponent::GetGameManager | ( | ) | [inline] |
Gets the game manager that owns this component.
| const GameManager::ComponentPriority& dtGame::GMComponent::GetComponentPriority | ( | ) | const [inline] |
Get the priority of this component.
| virtual void dtGame::GMComponent::OnAddedToGM | ( | ) | [inline, virtual] |
Called immediately after a component is added to the GM.
Override this to do init type behavior that needs access to the GameManager.
Reimplemented in dtDIS::MasterComponent, dtGame::BaseInputComponent, and dtNetGM::NetworkComponent.
| virtual void dtGame::GMComponent::OnRemovedFromGM | ( | ) | [inline, virtual] |
Called immediately after a component is removed from the GM.
This is where any previously allocated memory should be deallocated, files unloaded, resources free'd, etc. This gets called when the GMComponent gets removed from the GameManager and when the GameManager gets shut down.
Reimplemented in dtDIS::MasterComponent, and dtGame::BaseInputComponent.
friend class GameManager [friend] |