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 870 B

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