NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Namespaces | Defines | Functions
SoundModuleMessages.cpp File Reference

Provides the class declaration for the sound engine. More...

#include "SoundModule.h"
#include <EngineConfig.h>
#include "../sharedbase/MessageRouter.h"
#include "../sharedbase/Envelope.h"
#include "Messages.h"
Include dependency graph for SoundModuleMessages.cpp:

Go to the source code of this file.

Namespaces

namespace  Sound
 Namespace to contain every item that is related to the sound engine.

Defines

#define SUBSCRIBE_BASIC(msgid, handler)   {std::shared_ptr<Subscriber> handler_sptr(new Subscriber(boost::bind((&handler), this, _1))); this->msgrouter->Subscribe((msgid), handler_sptr);}
#define UNSUBSCRIBE_BASIC(msgid, handler)   {std::shared_ptr<Subscriber> handler_sptr(new Subscriber(boost::bind((&handler), this, _1))); this->msgrouter->Unsubscribe((msgid), handler_sptr);}
#define SUBSCRIBE_DIRECTED(msgid, handler)   {std::shared_ptr<DirectedSubscriber> handler_sptr(new DirectedSubscriber(boost::bind((&handler), this, _1))); this->msgrouter->SubscribeDirected((msgid), handler_sptr);}
#define UNSUBSCRIBE_DIRECTED(msgid, handler)   {std::shared_ptr<DirectedSubscriber> handler_sptr(new DirectedSubscriber(boost::bind((&handler), this, _1))); this->msgrouter->UnsubscribeDirected((msgid), handler_sptr);}

Functions

template<class T >
std::string Sound::to_string (const T &t)
template<class T >
std::string Sound::to_hex (const T &t)
template<typename T >
void Sound::HandleMessageSingleParam (boost::function< void(T)> setter, const int msgID, EnvelopeSPTR envelope)

Detailed Description

Provides the class declaration for the sound engine.

Author:
Ricky Curtice
Date:
20120211

Definition in file SoundModuleMessages.cpp.