ProtoZed  awesome branch
A simple but powerful game framework
Public Member Functions | List of all members
PZ::Sound Class Referenceabstract
Inheritance diagram for PZ::Sound:
PZ::System PZ::NonCopyable PZ::EventHandler

Public Member Functions

 Sound (const SystemType &type, Application &application)
 
virtual ~Sound ()
 
virtual bool Start ()
 Starts the system.
 
virtual bool Stop ()
 Stops the system.
 
virtual void Update (float deltaTime)=0
 Runs an update.
 
- Public Member Functions inherited from PZ::System
 System (const SystemType &type, Application &application)
 
virtual ~System ()
 
const SystemTypeGetType () const
 Gets the type.
 
bool IsStarted () const
 
- Public Member Functions inherited from PZ::EventHandler
 EventHandler ()
 
virtual ~EventHandler ()
 
bool SubscribeTo (EventHandler &handler)
 
bool UnsubscribeTo (EventHandler &handler)
 
template<class T , class EventT >
bool RegisterEvent (T *obj, void(T::*memFn)(EventT &))
 
template<class T , class EventT >
bool UnregisterEvent (T *obj, void(T::*memFn)(EventT &))
 
void HandleEvent (const Event &e)
 
void EmitEvent (const Event &e) const
 

Additional Inherited Members

- Protected Member Functions inherited from PZ::System
ApplicationGetApplication () const
 

Constructor & Destructor Documentation

PZ::Sound::Sound ( const SystemType type,
Application application 
)
virtual PZ::Sound::~Sound ( )
virtual

Member Function Documentation

virtual bool PZ::Sound::Start ( )
virtual

Starts the system.

Returns
true if it succeeds, false if it fails.

Reimplemented from PZ::System.

virtual bool PZ::Sound::Stop ( )
virtual

Stops the system.

Returns
true if it succeeds, false if it fails.

Reimplemented from PZ::System.

virtual void PZ::Sound::Update ( float  deltaTime)
pure virtual

Runs an update.

Parameters
deltaTimeTime since the last frame.

Implements PZ::System.


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