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.

structures.go 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package thuai6
  2. type GameState int8
  3. const (
  4. NullGameState GameState = 0
  5. GameStart GameState = 1
  6. GameRunning GameState = 2
  7. GameEnd GameState = 3
  8. )
  9. type PlayerType int8
  10. const (
  11. NullPlayerType PlayerType = 0
  12. StudentPlayer PlayerType = 1
  13. TrickerPlayer PlayerType = 2
  14. )
  15. type StudentType int8
  16. const (
  17. NullStudentType StudentType = 0
  18. Athlete StudentType = 1
  19. Teacher StudentType = 2
  20. StraightAStudent StudentType = 3
  21. Robot StudentType = 4
  22. TechOtaku StudentType = 5
  23. Sunshine StudentType = 6
  24. )
  25. type TrickerType int8
  26. const (
  27. NullTrickerType TrickerType = 0
  28. Assassin TrickerType = 1
  29. Klee TrickerType = 2
  30. ANoisyPerson TrickerType = 3
  31. Idol TrickerType = 4
  32. )
  33. type Player struct {
  34. x int32
  35. y int32
  36. }
  37. type Student struct {
  38. Player
  39. determination int32
  40. }
  41. type Tricker struct {
  42. Player
  43. trickDesire float64
  44. }