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

1234567891011121314151617181920212223242526272829303132333435363738
  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. // 存储场上的状态
  10. struct State
  11. {
  12. int32_t teamScore;
  13. // 自身信息,根据playerType的不同,可以调用的值也不同。
  14. std::shared_ptr<THUAI6::Student> studentSelf;
  15. std::shared_ptr<THUAI6::Tricker> trickerSelf;
  16. std::vector<std::shared_ptr<THUAI6::Student>> students;
  17. std::vector<std::shared_ptr<THUAI6::Tricker>> trickers;
  18. std::vector<std::shared_ptr<THUAI6::Prop>> props;
  19. std::vector<std::shared_ptr<THUAI6::Bullet>> bullets;
  20. std::vector<std::shared_ptr<THUAI6::BombedBullet>> bombedBullets;
  21. std::vector<std::vector<THUAI6::PlaceType>> gameMap;
  22. std::shared_ptr<THUAI6::GameMap> mapInfo;
  23. std::shared_ptr<THUAI6::GameInfo> gameInfo;
  24. std::vector<int64_t> guids;
  25. };
  26. #endif