2018-07-01 21:42:32 +00:00
|
|
|
#ifndef DART_PHYSICS_SERVER_COMMAND_PROCESSOR_H
|
|
|
|
#define DART_PHYSICS_SERVER_COMMAND_PROCESSOR_H
|
|
|
|
|
|
|
|
#include "../PhysicsCommandProcessorInterface.h"
|
|
|
|
|
|
|
|
class DARTPhysicsServerCommandProcessor : public PhysicsCommandProcessorInterface
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DARTPhysicsServerCommandProcessor();
|
2018-09-23 21:17:31 +00:00
|
|
|
|
2018-07-01 21:42:32 +00:00
|
|
|
virtual ~DARTPhysicsServerCommandProcessor();
|
|
|
|
|
|
|
|
virtual bool connect();
|
|
|
|
|
|
|
|
virtual void disconnect();
|
|
|
|
|
|
|
|
virtual bool isConnected() const;
|
|
|
|
|
|
|
|
virtual bool processCommand(const struct SharedMemoryCommand& clientCmd, struct SharedMemoryStatus& serverStatusOut, char* bufferServerToClient, int bufferSizeInBytes);
|
|
|
|
|
|
|
|
virtual bool receiveStatus(struct SharedMemoryStatus& serverStatusOut, char* bufferServerToClient, int bufferSizeInBytes);
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual void renderScene(int renderFlags) {}
|
|
|
|
virtual void physicsDebugDraw(int debugDrawFlags) {}
|
|
|
|
virtual void setGuiHelper(struct GUIHelperInterface* guiHelper) {}
|
|
|
|
virtual void setTimeOut(double timeOutInSeconds) {}
|
2018-07-01 21:42:32 +00:00
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //DART_PHYSICS_COMMAND_PROCESSOR_H
|