StartingDiceRolls int32 = 1
)
+const (
+ EventEndTurn EventType = iota
+ EventRollDice
+ EventLandUnowned
+ EventJail
+)
+
// Board config
const (
TypeGo PropertyType = iota
}
type PropertyType int
+
+type EventType int32
+
+func (ctx *Context) EventPeek() EventType {
+ return ctx.Turn.EventStack[len(ctx.Turn.EventStack)-1]
+}
+
+func (ctx *Context) EventPop() EventType {
+ last := ctx.Turn.EventStack[len(ctx.Turn.EventStack)-1]
+ ctx.Turn.EventStack = ctx.Turn.EventStack[:len(ctx.Turn.EventStack)]
+ return last
+}
+
type Space struct {
PropertyType PropertyType
SubIndexID int32 // FK to resp. OwnableProperty types
NumDiceRolled int32
RolledDoubles bool
MoveQueue []int32
+ EventStack []EventType
InDebt bool
Modifier Modifiers
}