stub state

This commit is contained in:
Bel LaPointe
2021-02-21 23:22:49 -06:00
parent 7216ac1620
commit 3954d3cc6a
6 changed files with 125 additions and 0 deletions

30
game/state/player.go Normal file
View File

@@ -0,0 +1,30 @@
package state
type PlayerState struct {
ID string
Name string
IsFacist bool
IsHitler bool
IsDead bool
IsChancellor bool
IsCandidateChancellor bool
IsPresident bool
IsCandidatePresident bool
IsVoting bool
IsShooting bool
IsInspecting bool
IsPeeking bool
}
func (state PlayerState) Redact(alignment Alignment) PlayerState {
state2 := state
state2.IsFacist = state2.IsFacist && alignment.CanSeeFacist()
state2.IsHitler = state2.IsHitler && alignment.CanSeeHitler()
return state2
}