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

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