ProtoZed  awesome branch
A simple but powerful game framework
Public Member Functions | List of all members
PZ::SystemList Class Reference

List of systems. More...

Inheritance diagram for PZ::SystemList:
PZ::NonCopyable

Public Member Functions

 SystemList (Application &application)
 
 ~SystemList ()
 
template<class T >
T * Add (const SystemType &type)
 Adds a system at the end.
 
template<class T >
T * InsertAfter (const SystemType &type, const SystemType &after)
 Inserts a system after another system.
 
template<class T >
T * InsertBefore (const SystemType &type, const SystemType &before)
 Inserts a system before another system.
 
bool Remove (const SystemType &type)
 Removes a system.
 
void RemoveAll ()
 Removes all systems.
 
bool Has (const SystemType &type) const
 Query if a system is in the list.
 
template<class T >
T * Get (const SystemType &type) const
 
SystemGet (const SystemType &type) const
 Gets a system.
 
void StartAll ()
 
void StopAll ()
 
void UpdateAll (float deltaTime)
 

Additional Inherited Members

- Protected Member Functions inherited from PZ::NonCopyable
 NonCopyable ()
 

Detailed Description

List of systems.

Constructor & Destructor Documentation

PZ::SystemList::SystemList ( Application application)
PZ::SystemList::~SystemList ( )

Member Function Documentation

template<class T >
T* PZ::SystemList::Add ( const SystemType type)
inline

Adds a system at the end.

Parameters
typeThe type of the system.
Returns
null if it fails, else the system.
template<class T >
T* PZ::SystemList::Get ( const SystemType type) const
inline
System* PZ::SystemList::Get ( const SystemType type) const

Gets a system.

Parameters
typeThe type of the system.
Returns
null if it fails, else the system.
bool PZ::SystemList::Has ( const SystemType type) const
inline

Query if a system is in the list.

Parameters
typeThe type of the system.
Returns
true if the system is in the list, false if not.
template<class T >
T* PZ::SystemList::InsertAfter ( const SystemType type,
const SystemType after 
)
inline

Inserts a system after another system.

Parameters
typeThe type of the system.
afterThe type of the system to insert after.
Returns
null if it fails, else the system.
template<class T >
T* PZ::SystemList::InsertBefore ( const SystemType type,
const SystemType before 
)
inline

Inserts a system before another system.

Parameters
typeThe type of the system.
beforeThe type of the system to insert before.
Returns
null if it fails, else the system.
bool PZ::SystemList::Remove ( const SystemType type)

Removes a system.

Parameters
typeThe type of the system to remove.
Returns
true if it succeeds, false if it fails.
void PZ::SystemList::RemoveAll ( )

Removes all systems.

void PZ::SystemList::StartAll ( )
void PZ::SystemList::StopAll ( )
void PZ::SystemList::UpdateAll ( float  deltaTime)

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