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

1234567891011121314151617181920212223242526272829303132333435
  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::shared_ptr<THUAI6::GameMap> gameMap;
  21. std::shared_ptr<THUAI6::GameInfo> gameInfo;
  22. std::vector<int64_t> guids;
  23. };
  24. #endif