17 using std::unique_ptr;
83 void handleHIDEvents(vector<GUIMouseEvent>& mouseEvents, vector<GUIKeyboardEvent>& keyEvents);
131 virtual void run()
override;
138 void handleInNetworkPackets(
const vector<Logic*>& logics, vector<LogicNetworkPacket>& inLogicNetworkPackets);
virtual ~ApplicationClient()
Public constructor.
void setAudioGain(float gain)
Set audio gain.
ApplicationClient(Context *context, UDPClient *udpClient=nullptr)
Public constructor.
unique_ptr< UDPClient > udpClient
unique_ptr< Context > context
void handleInNetworkPackets(const vector< Logic * > &logics, vector< LogicNetworkPacket > &inLogicNetworkPackets)
Handle in logic network packets.
unordered_map< string, ActiveSound > activeSounds
vector< QueuedSound > queuedSounds
void update()
Updates engine and audio to context engine and audio instances.
void handleHIDEvents(vector< GUIMouseEvent > &mouseEvents, vector< GUIKeyboardEvent > &keyEvents)
Collect HID events to pass to logics that have handling HID events enabled.
virtual void run() override
Abstract run() method, should be implemented by subclassed class, will be called after spawn by start...
Dynamic physics world class.
Vector3 class representing vector3 mathematical structure and operations with x, y,...
QueuedSound(const string &gameLogicId, const string &id, float gain, float pitch, bool ignoreIfPlaying, bool attachedToLogic, const Vector3 &position, float distanceFromCamera)
#define FORBID_CLASS_COPY(CLASS)