2023-03-27 06:40:44 +00:00
|
|
|
package cardsim
|
|
|
|
|
|
|
|
import "math/rand"
|
|
|
|
|
|
|
|
// Player stores all gameplay state for one player.
|
|
|
|
type Player[C StatsCollection] struct {
|
2023-04-01 19:21:42 +00:00
|
|
|
Stats C
|
|
|
|
Name string
|
|
|
|
Deck *Deck[C]
|
|
|
|
Hand []Card[C]
|
|
|
|
HandLimit int
|
|
|
|
ActionsPerTurn int
|
|
|
|
ActionsRemaining int
|
|
|
|
PermanentActions []Card[C]
|
|
|
|
Rules *RuleCollection[C]
|
|
|
|
Rand rand.Rand
|
|
|
|
Turn int
|
|
|
|
PendingMessages []Message
|
2023-03-27 06:40:44 +00:00
|
|
|
}
|