You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

state.h 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifndef STATE_H
  3. #define STATE_H
  4. #include <vector>
  5. #include <array>
  6. #include <map>
  7. #include <memory>
  8. #include "structures.h"
  9. #undef GetMessage
  10. #undef SendMessage
  11. #undef PeekMessage
  12. // 存储场上的状态
  13. struct State
  14. {
  15. int32_t teamScore;
  16. // 自身信息,根据playerType的不同,可以调用的值也不同。
  17. std::shared_ptr<THUAI6::Student> studentSelf;
  18. std::shared_ptr<THUAI6::Tricker> trickerSelf;
  19. std::vector<std::shared_ptr<THUAI6::Student>> students;
  20. std::vector<std::shared_ptr<THUAI6::Tricker>> trickers;
  21. std::vector<std::shared_ptr<THUAI6::Prop>> props;
  22. std::vector<std::shared_ptr<THUAI6::Bullet>> bullets;
  23. std::vector<std::shared_ptr<THUAI6::BombedBullet>> bombedBullets;
  24. std::vector<std::vector<THUAI6::PlaceType>> gameMap;
  25. std::shared_ptr<THUAI6::GameMap> mapInfo;
  26. std::shared_ptr<THUAI6::GameInfo> gameInfo;
  27. std::vector<int64_t> guids;
  28. };
  29. #endif