1 #ifndef DART_PHYSICS_SERVER_COMMAND_PROCESSOR_H 2 #define DART_PHYSICS_SERVER_COMMAND_PROCESSOR_H 3 4 #include "../PhysicsCommandProcessorInterface.h" 5 6 class DARTPhysicsServerCommandProcessor : public PhysicsCommandProcessorInterface 7 { 8 public: 9 DARTPhysicsServerCommandProcessor(); 10 11 virtual ~DARTPhysicsServerCommandProcessor(); 12 13 virtual bool connect(); 14 15 virtual void disconnect(); 16 17 virtual bool isConnected() const; 18 19 virtual bool processCommand(const struct SharedMemoryCommand& clientCmd, struct SharedMemoryStatus& serverStatusOut, char* bufferServerToClient, int bufferSizeInBytes); 20 21 virtual bool receiveStatus(struct SharedMemoryStatus& serverStatusOut, char* bufferServerToClient, int bufferSizeInBytes); 22 renderScene(int renderFlags)23 virtual void renderScene(int renderFlags) {} physicsDebugDraw(int debugDrawFlags)24 virtual void physicsDebugDraw(int debugDrawFlags) {} setGuiHelper(struct GUIHelperInterface * guiHelper)25 virtual void setGuiHelper(struct GUIHelperInterface* guiHelper) {} setTimeOut(double timeOutInSeconds)26 virtual void setTimeOut(double timeOutInSeconds) {} 27 }; 28 29 #endif //DART_PHYSICS_COMMAND_PROCESSOR_H 30