UIDialog.h 574 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <Text.h>
  3. #include <XML.h>
  4. class NetworkMessage;
  5. class Entity;
  6. class UIDialog : public Framework::ReferenceCounter
  7. {
  8. private:
  9. Framework::Text id;
  10. int playerId;
  11. protected:
  12. Framework::XML::Element* uiml;
  13. public:
  14. UIDialog(
  15. Framework::Text id, int playerId, Framework::XML::Element* uiml);
  16. virtual ~UIDialog();
  17. virtual void api(Framework::StreamReader* zRequest,
  18. NetworkMessage* zResponse);
  19. bool open() const;
  20. bool update() const;
  21. const Framework::Text& getId() const;
  22. int getPlayerId() const;
  23. };