Documentation ¶
Overview ¶
Code generated by go-bindata. (@generated) DO NOT EDIT. sources: svg/europe1939map.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 Europe1939Blank(phase godip.Phase) *state.State
- func Europe1939Graph() *graph.Graph
- func Europe1939Start() (result *state.State, err error)
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
Constants ¶
Variables ¶
var Europe1939Variant = common.Variant{ Name: "Europe 1939", Graph: func() godip.Graph { return Europe1939Graph() }, Start: Europe1939Start, Blank: Europe1939Blank, Phase: classical.NewPhase, Parser: classical.Parser, ExtraDominanceRules: map[godip.Province]common.DominanceRule{ "nav": common.DominanceRule{ Nation: Spain, Dependencies: map[godip.Province]godip.Nation{ "mad": Spain, "bac": Spain, "por": godip.Neutral, }, }, "mor": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "alg": France, "tan": Spain, }, }, "cyr": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "cai": France, "tri": Italy, }, }, "tun": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "alg": France, "tri": Italy, }, }, "pal": common.DominanceRule{ Nation: Britain, Dependencies: map[godip.Province]godip.Nation{ "bag": Britain, "cai": Britain, "ara": godip.Neutral, }, }, "syr": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "bag": Britain, "ada": Turkey, "alg": France, "mar": France, }, }, "arm": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "ada": Turkey, "teh": godip.Neutral, "bag": Britain, }, }, "cau": common.DominanceRule{ Nation: USSR, Dependencies: map[godip.Province]godip.Nation{ "sta": USSR, "ank": Turkey, "teh": godip.Neutral, }, }, "tur": common.DominanceRule{ Nation: USSR, Dependencies: map[godip.Province]godip.Nation{ "sta": USSR, "teh": godip.Neutral, }, }, "ukr": common.DominanceRule{ Nation: USSR, Dependencies: map[godip.Province]godip.Nation{ "mos": USSR, "sea": USSR, "kra": Poland, "rum": godip.Neutral, }, }, "lub": common.DominanceRule{ Nation: Poland, Dependencies: map[godip.Province]godip.Nation{ "war": Poland, "kra": Poland, "lit": godip.Neutral, }, }, "ven": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "rom": Italy, "mil": Italy, "cro": godip.Neutral, }, }, "pie": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "rom": Italy, "mar": France, "swi": godip.Neutral, }, }, "auv": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "lyo": France, "mar": France, "bac": Spain, }, }, "pic": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "bre": France, "par": France, "bel": godip.Neutral, }, }, "bur": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "lyo": France, "par": France, "bel": godip.Neutral, "swi": godip.Neutral, }, }, "als": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "lyo": France, "par": France, "bel": godip.Neutral, "swi": godip.Neutral, "col": Germany, "mun": Germany, }, }, "pru": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "dan": Poland, "ber": Germany, }, }, "sil": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "ber": Germany, "mun": Germany, "wro": Poland, }, }, "boh": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "vie": Germany, "mun": Germany, "wro": Poland, }, }, "tyo": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "vie": Germany, "mun": Germany, "mil": Italy, "swi": godip.Neutral, }, }, }, Nations: Nations, PhaseTypes: classical.PhaseTypes, Seasons: classical.Seasons, UnitTypes: classical.UnitTypes, SoloWinner: common.SCCountWinner(28), ProvinceLongNames: provinceLongNames, SVGMap: func() ([]byte, error) { return Asset("svg/europe1939map.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: "Mikalis Kamaritis", Version: "I", Description: "Eight nations poised for battle at the start of World War II.", SoloSCCount: func(*state.State) int { return 28 }, Rules: `First to 28 Supply Centers (SC) is the winner. The neutral nation of Yugoslavia gets an army in Serbia, which will disband when dislodged. Armies & fleets can move between Liverpool & Northern Ireland and Napels & Sicily. A sea route around Africa means South Atlantic Ocean, Red Sea and Persian Gulf are adjacent.`, }
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 Europe1939Graph ¶
func Europe1939Start ¶
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
Types ¶
This section is empty.