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

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #ifndef STATE_H
  3. #define STATE_H
  4. #include <vector>
  5. #include "structures.h"
  6. // 存储场上的状态
  7. struct State
  8. {
  9. uint32_t teamScore;
  10. // 自身信息,根据playerType的不同,可以调用的值也不同。
  11. std::shared_ptr<THUAI6::Human> humanSelf;
  12. std::shared_ptr<THUAI6::Butcher> butcherSelf;
  13. std::vector<std::shared_ptr<THUAI6::Human>> humans;
  14. std::vector<std::shared_ptr<THUAI6::Butcher>> butchers;
  15. std::vector<std::shared_ptr<THUAI6::Prop>> props;
  16. THUAI6::PlaceType gamemap[51][51];
  17. std::vector<int64_t> guids;
  18. };
  19. #endif