EgoController.h 988 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "include/EgoInterface.h"
  3. #include <memory>
  4. class CEgoClient;
  5. class CEgoController:public IEgoControl
  6. {
  7. public:
  8. CEgoController(IEgoNotify* noitfy);
  9. virtual void Login(std::string account, std::string pass) override;
  10. virtual void ReqCarList() override;
  11. virtual void Start(std::array<IRender*, RenderPosition::ALL>& ar) override;
  12. virtual void OnCarConnect(int32_t peer) override;
  13. virtual void OnCarLeave() override;
  14. virtual ControlStatus CheckStatus() override;
  15. virtual void OnMoveBegin(int32_t rid,WorkArea area, int32_t no) override;
  16. //virtual void SwitchDriver(int32_t id) override;
  17. virtual std::string GetAccount() override;
  18. virtual std::string GetPassword() override;
  19. virtual std::string GetName() override;
  20. //virtual bool IsAutoClose() override;
  21. virtual void ChangeState(UserState state) override;
  22. virtual void SetReady(bool b) override;
  23. //virtual void SetCurrentPage(PageProp prop) override;
  24. private:
  25. std::unique_ptr<CEgoClient> _client;
  26. };