InformationObserver.h 441 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "NetworkMessage.h"
  3. #include <Array.h>
  4. #include <Critical.h>
  5. class InformationObserver : public Framework::ReferenceCounter
  6. {
  7. private:
  8. Framework::RCArray<NetworkMessage> waitingMessages;
  9. bool ready;
  10. int entityId;
  11. Framework::Critical cs;
  12. public:
  13. InformationObserver(int entityId);
  14. ~InformationObserver();
  15. int getEntityId() const;
  16. bool sendMessage(NetworkMessage* message);
  17. void setReady();
  18. };