Documentation ¶
Index ¶
- type State
- func (self *State) AddBounce(src, dst godip.Province)
- func (self *State) Bounce(src, dst godip.Province) bool
- func (self *State) ClearBounces()
- func (self *State) ClearDislodgers()
- func (self *State) Corroborate(nat godip.Nation) []godip.Inconsistency
- func (self *State) Dislodged(prov godip.Province) (u godip.Unit, p godip.Province, ok bool)
- func (self *State) Dislodgeds() map[godip.Province]godip.Unit
- func (self *State) Dump() (units map[godip.Province]godip.Unit, ...)
- func (self *State) Find(filter godip.StateFilter) (provinces []godip.Province, orders []godip.Order, units []*godip.Unit)
- func (self *State) ForceDisband(prov godip.Province)
- func (self *State) ForceDisbands() map[godip.Province]bool
- func (self *State) GetProfile() (map[string]time.Duration, map[string]int)
- func (self *State) Graph() godip.Graph
- func (self *State) Load(units map[godip.Province]godip.Unit, ...) *State
- func (self *State) MemoizeProvSlice(key string, f func() []godip.Province) []godip.Province
- func (self *State) Move(src, dst godip.Province, preventRetreat bool)
- func (self *State) Next() (err error)
- func (self *State) Options(orders []godip.Order, nation godip.Nation) (result godip.Options)
- func (self *State) Order(prov godip.Province) (o godip.Order, p godip.Province, ok bool)
- func (self *State) Orders() map[godip.Province]godip.Adjudicator
- func (self *State) Phase() godip.Phase
- func (self *State) Profile(a string, t time.Time)
- func (self *State) RemoveDislodged(prov godip.Province)
- func (self *State) RemoveUnit(prov godip.Province)
- func (self *State) Resolutions() map[godip.Province]error
- func (self *State) Retreat(src, dst godip.Province) (err error)
- func (self *State) SetDislodged(prov godip.Province, unit godip.Unit) (err error)
- func (self *State) SetDislodgeds(dislodgeds map[godip.Province]godip.Unit) (err error)
- func (self *State) SetDislodger(attacker, victim godip.Province)
- func (self *State) SetOrder(prov godip.Province, order godip.Adjudicator) (err error)
- func (self *State) SetOrders(orders map[godip.Province]godip.Adjudicator)
- func (self *State) SetResolution(p godip.Province, err error)
- func (self *State) SetSC(p godip.Province, n godip.Nation)
- func (self *State) SetSupplyCenters(supplyCenters map[godip.Province]godip.Nation) *State
- func (self *State) SetUnit(prov godip.Province, unit godip.Unit) (err error)
- func (self *State) SetUnits(units map[godip.Province]godip.Unit) (err error)
- func (self *State) SupplyCenter(prov godip.Province) (n godip.Nation, p godip.Province, ok bool)
- func (self *State) SupplyCenters() map[godip.Province]godip.Nation
- func (self *State) Unit(prov godip.Province) (u godip.Unit, p godip.Province, ok bool)
- func (self *State) Units() map[godip.Province]godip.Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) ClearBounces ¶
func (self *State) ClearBounces()
func (*State) ClearDislodgers ¶
func (self *State) ClearDislodgers()
func (*State) Corroborate ¶ added in v0.1.41
func (self *State) Corroborate(nat godip.Nation) []godip.Inconsistency
func (*State) ForceDisband ¶ added in v0.1.54
func (*State) ForceDisbands ¶ added in v0.1.54
func (*State) GetProfile ¶
func (*State) Load ¶
func (self *State) Load( units map[godip.Province]godip.Unit, supplyCenters map[godip.Province]godip.Nation, dislodgeds map[godip.Province]godip.Unit, dislodgers map[godip.Province]godip.Province, bounces map[godip.Province]map[godip.Province]bool, orders map[godip.Province]godip.Adjudicator) *State
func (*State) MemoizeProvSlice ¶
func (*State) RemoveDislodged ¶
func (*State) RemoveUnit ¶
func (*State) SetDislodged ¶
func (*State) SetDislodgeds ¶
func (*State) SetDislodger ¶
func (*State) SetSupplyCenters ¶
func (*State) SupplyCenter ¶
Click to show internal directories.
Click to hide internal directories.