Documentation ¶
Overview ¶
Code generated by go-bindata. (@generated) DO NOT EDIT. sources: svg/year1908map.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 RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func Year1908Blank(phase godip.Phase) *state.State
- func Year1908Graph() *graph.Graph
- func Year1908Start() (result *state.State, err error)
Constants ¶
Variables ¶
var Year1908Variant = common.Variant{ Name: "1908: Fall of Europe", Graph: func() godip.Graph { return Year1908Graph() }, Start: Year1908Start, Blank: Year1908Blank, Phase: classical.NewPhase, Parser: classical.Parser, ExtraDominanceRules: map[godip.Province]common.DominanceRule{ "tyr": common.DominanceRule{ Nation: godip.Austria, Dependencies: map[godip.Province]godip.Nation{ "vie": godip.Austria, "tri": godip.Austria, "mun": Germany, "mil": Italy, }, }, "ven": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "mil": Italy, "tri": godip.Austria, "rom": Italy, }, }, "pie": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "mil": Italy, "mar": France, }, }, "boh": common.DominanceRule{ Nation: godip.Austria, Dependencies: map[godip.Province]godip.Nation{ "vie": godip.Austria, "bud": godip.Austria, "mun": Germany, "ber": Germany, }, }, "tra": common.DominanceRule{ Nation: godip.Austria, Dependencies: map[godip.Province]godip.Nation{ "bud": godip.Austria, "rum": godip.Neutral, "ser": godip.Neutral, }, }, "gal": common.DominanceRule{ Nation: godip.Austria, Dependencies: map[godip.Province]godip.Nation{ "bud": godip.Austria, "war": Russia, }, }, "sil": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "ber": Germany, "war": Russia, }, }, "pru": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "ber": Germany, "war": Russia, }, }, "ruh": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "kie": Germany, "fra": Germany, "net": godip.Neutral, "bel": godip.Neutral, }, }, "swa": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "kie": Germany, "fra": Germany, "swi": godip.Neutral, "bel": godip.Neutral, }, }, "mac": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "con": Turkey, "bul": godip.Neutral, "ser": godip.Neutral, "bos": godip.Neutral, "gre": godip.Neutral, }, }, "lev": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "smy": Turkey, "cai": Britain, }, }, "arm": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "smy": Turkey, "sev": Russia, }, }, "ukr": common.DominanceRule{ Nation: Russia, Dependencies: map[godip.Province]godip.Nation{ "war": Russia, "sev": Russia, "mos": Russia, "rum": godip.Neutral, }, }, "fin": common.DominanceRule{ Nation: Russia, Dependencies: map[godip.Province]godip.Nation{ "stp": Russia, "swe": godip.Neutral, "nwy": godip.Neutral, }, }, "alg": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "cas": France, "tun": godip.Neutral, "trp": godip.Neutral, }, }, "gas": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "mar": France, "par": France, "bre": France, "spa": godip.Neutral, }, }, "bur": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "mar": France, "par": France, "swi": godip.Neutral, "bel": godip.Neutral, }, }, "pic": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "par": France, "swi": godip.Neutral, "bel": godip.Neutral, }, }, }, Nations: Nations, PhaseTypes: classical.PhaseTypes, Seasons: classical.Seasons, UnitTypes: classical.UnitTypes, SoloWinner: common.SCCountWinner(18), SoloSCCount: func(*state.State) int { return 18 }, ProvinceLongNames: provinceLongNames, SVGMap: func() ([]byte, error) { return Asset("svg/year1908map.svg") }, SVGVersion: "1", 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: "Enriador & VaeVictis", Version: "1.0", Description: "Europe on the verge of a new conflict between the Great Powers.", Rules: `Movement, support and convoys (only by fleets) are allowed between Mid-Atlantic Ocean and Cairo. Movement and support (by both armies and fleets) are allowed between Casablanca and Spain. Cairo, Constantinople, Denmark, Kiel and Sweden are considered canal provinces (fleets can move through them without regard to coasts). Units can only be built on your own starting supply centers. 18 of 40 supply centers are required for victory. If the two leading players are tied then the game will continue for another year.`, }
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 RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
func Year1908Graph ¶
func Year1908Start ¶
Types ¶
This section is empty.