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.py 826 B

1234567891011121314151617181920212223242526272829303132333435
  1. from typing import List, Union
  2. import PyAPI.structures as THUAI6
  3. class State:
  4. def __init__(self, **kwargs) -> None:
  5. self.teamScore = 0
  6. self.self = THUAI6.Student()
  7. self.students = []
  8. self.trickers = []
  9. self.props = []
  10. self.gameMap = []
  11. self.bullets = []
  12. self.bombedBullets = []
  13. self.mapInfo = THUAI6.GameMap()
  14. self.gameInfo = THUAI6.GameInfo()
  15. self.guids = []
  16. teamScore: int
  17. self: Union[THUAI6.Student, THUAI6.Tricker]
  18. students: List[THUAI6.Student]
  19. trickers: List[THUAI6.Tricker]
  20. props: List[THUAI6.Prop]
  21. gameMap: List[List[THUAI6.PlaceType]]
  22. bullets: List[THUAI6.Bullet]
  23. bombedBullets: List[THUAI6.BombedBullet]
  24. mapInfo: THUAI6.GameMap
  25. gameInfo: THUAI6.GameInfo
  26. guids: List[int]