Documentation ¶
Overview ¶
Code generated by go-bindata. (@generated) DO NOT EDIT. sources: svg/westernworld901map.svg
Index ¶
- Constants
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func MustAsset(name string) []byte
- func NeutralOrders(state state.State) (ret map[godip.Province]godip.Adjudicator)
- func Phase(year int, season godip.Season, typ godip.PhaseType) godip.Phase
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func WesternWorld901Blank(phase godip.Phase) *state.State
- func WesternWorld901Graph() *graph.Graph
- func WesternWorld901Start() (result *state.State, err error)
Constants ¶
const ( UmayyadEmirate godip.Nation = "Umayyad Emirate" PrincipalityofKiev godip.Nation = "Principality of Kiev" KingdomofDenmark godip.Nation = "Kingdom of Denmark" KhaganateofKhazaria godip.Nation = "Khaganate of Khazaria" WestFrankishKingdom godip.Nation = "West Frankish Kingdom" TulunidEmirate godip.Nation = "Tulunid Emirate" AbbasidCaliphate godip.Nation = "Abbasid Caliphate" EastFrankishKingdom godip.Nation = "East Frankish Kingdom" EasternRomanEmpire godip.Nation = "Eastern Roman Empire" )
Variables ¶
var Nations = []godip.Nation{UmayyadEmirate, PrincipalityofKiev, KingdomofDenmark, KhaganateofKhazaria, WestFrankishKingdom, TulunidEmirate, AbbasidCaliphate, EastFrankishKingdom, EasternRomanEmpire}
var WesternWorld901Variant = common.Variant{ Name: "Western World 901", Graph: func() godip.Graph { return WesternWorld901Graph() }, Start: WesternWorld901Start, Blank: WesternWorld901Blank, Phase: newPhase, Parser: hundred.BuildAnywhereParser, ExtraDominanceRules: map[godip.Province]common.DominanceRule{ "fra": common.DominanceRule{ Nation: EastFrankishKingdom, Dependencies: map[godip.Province]godip.Nation{ "swa": EastFrankishKingdom, "bre": EastFrankishKingdom, "sax": EastFrankishKingdom, "lot": godip.Neutral, }, }, "abk": common.DominanceRule{ Nation: KhaganateofKhazaria, Dependencies: map[godip.Province]godip.Nation{ "bnj": KhaganateofKhazaria, "tam": KhaganateofKhazaria, "sax": EastFrankishKingdom, "geo": godip.Neutral, }, }, "buc": common.DominanceRule{ Nation: EasternRomanEmpire, Dependencies: map[godip.Province]godip.Nation{ "att": EasternRomanEmpire, "con": EasternRomanEmpire, "geo": godip.Neutral, }, }, "epi": common.DominanceRule{ Nation: EasternRomanEmpire, Dependencies: map[godip.Province]godip.Nation{ "con": EasternRomanEmpire, "dal": godip.Neutral, }, }, "mos": common.DominanceRule{ Nation: AbbasidCaliphate, Dependencies: map[godip.Province]godip.Nation{ "ard": AbbasidCaliphate, "bag": AbbasidCaliphate, "arm": godip.Neutral, "aze": godip.Neutral, }, }, "tou": common.DominanceRule{ Nation: WestFrankishKingdom, Dependencies: map[godip.Province]godip.Nation{ "gas": WestFrankishKingdom, "nar": WestFrankishKingdom, "aqt": WestFrankishKingdom, "pam": godip.Neutral, }, }, "aut": common.DominanceRule{ Nation: WestFrankishKingdom, Dependencies: map[godip.Province]godip.Nation{ "par": WestFrankishKingdom, "nar": WestFrankishKingdom, "aqt": WestFrankishKingdom, "lot": godip.Neutral, "lbu": godip.Neutral, }, }, }, Nations: Nations, PhaseTypes: classical.PhaseTypes, Seasons: classical.Seasons, UnitTypes: classical.UnitTypes, SoloWinner: common.SCCountWinner(33), ProvinceLongNames: provinceLongNames, SVGMap: func() ([]byte, error) { return Asset("svg/westernworld901map.svg") }, SVGVersion: "4", SVGUnits: map[godip.UnitType]func() ([]byte, error){ godip.Army: func() ([]byte, error) { return classical.Asset("svg/army.svg") }, godip.Fleet: func() ([]byte, error) { return classical.Asset("svg/fleet.svg") }, }, CreatedBy: "David Cohen", Version: "4.0", Description: "Nine powers compete for the Western World circa 901.", SoloSCCount: func(*state.State) int { return 33 }, Rules: `First to 33 Supply Centers (SC) wins. Units may be built in any owned SC. Neutral SCs get an army which always holds and disbands when dislodged. This will be rebuilt if the SC is unowned during adjustment. Five provinces have dual coasts: Saamiland, Veletia, Jorvik, Rome and Pechenega. Constantinople has a canal as in the standard map. The Khazar Sea is not connected to other sea regions.`, }
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func NeutralOrders ¶
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
func WesternWorld901Graph ¶
func WesternWorld901Start ¶
Types ¶
This section is empty.