Documentation ¶
Overview ¶
Code generated by go-bindata. (@generated) DO NOT EDIT. sources: svg/youngstownreduxmap.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 YoungstownReduxBlank(phase godip.Phase) *state.State
- func YoungstownReduxGraph() *graph.Graph
- func YoungstownReduxStart() (result *state.State, err error)
Constants ¶
const ( Turkey godip.Nation = "Turkey" Austria godip.Nation = "Austria" Britain godip.Nation = "Britain" China godip.Nation = "China" Japan godip.Nation = "Japan" Italy godip.Nation = "Italy" Germany godip.Nation = "Germany" India godip.Nation = "India" Russia godip.Nation = "Russia" France godip.Nation = "France" )
Variables ¶
var Nations = []godip.Nation{Turkey, Austria, Britain, China, Japan, Italy, Germany, India, Russia, France}
var YoungstownReduxVariant = common.Variant{ Name: "Youngstown Redux", Graph: func() godip.Graph { return YoungstownReduxGraph() }, Start: YoungstownReduxStart, Blank: YoungstownReduxBlank, Phase: classical.NewPhase, Parser: classical.Parser, ExtraDominanceRules: map[godip.Province]common.DominanceRule{ "gas": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "bre": France, "par": France, "mar": France, "spa": godip.Neutral, }, }, "bug": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "mar": France, "par": France, "col": Germany, "swi": godip.Neutral, "bel": godip.Neutral, }, }, "pic": common.DominanceRule{ Nation: France, Dependencies: map[godip.Province]godip.Nation{ "par": France, "bre": France, "bel": godip.Neutral, }, }, "swa": common.DominanceRule{ Nation: Germany, Dependencies: map[godip.Province]godip.Nation{ "mun": Germany, "col": Germany, "swi": godip.Neutral, }, }, "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, }, }, "boh": common.DominanceRule{ Nation: Austria, Dependencies: map[godip.Province]godip.Nation{ "mun": Germany, "vnn": Austria, }, }, "gal": common.DominanceRule{ Nation: Austria, Dependencies: map[godip.Province]godip.Nation{ "vnn": Austria, "war": Russia, "rum": godip.Neutral, }, }, "tyo": common.DominanceRule{ Nation: Austria, Dependencies: map[godip.Province]godip.Nation{ "mun": Germany, "vnn": Austria, "tes": Austria, "mil": Italy, }, }, "ven": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "mil": Italy, "rom": Italy, "tes": Austria, }, }, "pie": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "mil": Italy, "rom": Italy, "mar": France, }, }, "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, "sev": Russia, "nay": godip.Neutral, }, }, "awd": common.DominanceRule{ Nation: Italy, Dependencies: map[godip.Province]godip.Nation{ "mog": Italy, "eth": godip.Neutral, }, }, "cau": common.DominanceRule{ Nation: Russia, Dependencies: map[godip.Province]godip.Nation{ "sev": Russia, "mos": Russia, "oms": Russia, "per": godip.Neutral, }, }, "tur": common.DominanceRule{ Nation: Russia, Dependencies: map[godip.Province]godip.Nation{ "oms": Russia, "per": godip.Neutral, "afg": godip.Neutral, "xin": godip.Neutral, }, }, "sib": common.DominanceRule{ Nation: Russia, Dependencies: map[godip.Province]godip.Nation{ "oms": Russia, "vla": Russia, "man": godip.Neutral, "mon": godip.Neutral, "xin": godip.Neutral, }, }, "sak": common.DominanceRule{ Nation: Russia, Dependencies: map[godip.Province]godip.Nation{ "vla": Russia, "kar": godip.Neutral, }, }, "mac": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "con": Turkey, "bul": godip.Neutral, "ser": godip.Neutral, "alb": godip.Neutral, "gre": godip.Neutral, }, }, "arm": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "ank": Turkey, "bag": Turkey, "sev": Russia, "per": godip.Neutral, }, }, "lev": common.DominanceRule{ Nation: Turkey, Dependencies: map[godip.Province]godip.Nation{ "mec": Turkey, "bag": Turkey, "egy": godip.Neutral, }, }, "sid": common.DominanceRule{ Nation: India, Dependencies: map[godip.Province]godip.Nation{ "bom": India, "del": India, "afg": godip.Neutral, "per": godip.Neutral, }, }, "kas": common.DominanceRule{ Nation: India, Dependencies: map[godip.Province]godip.Nation{ "del": India, "afg": godip.Neutral, }, }, "inn": common.DominanceRule{ Nation: China, Dependencies: map[godip.Province]godip.Nation{ "pek": China, "mon": godip.Neutral, "xin": godip.Neutral, "man": godip.Neutral, }, }, "heb": common.DominanceRule{ Nation: China, Dependencies: map[godip.Province]godip.Nation{ "pek": China, "tsi": Germany, "wuh": China, "sha": China, }, }, "qin": common.DominanceRule{ Nation: China, Dependencies: map[godip.Province]godip.Nation{ "pek": China, "wuh": China, "xin": godip.Neutral, }, }, "yun": common.DominanceRule{ Nation: China, Dependencies: map[godip.Province]godip.Nation{ "gua": China, "wuh": China, "vit": godip.Neutral, "bum": 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/youngstownreduxmap.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: "airborne", Version: "I", Description: "China, India and Japan join the standard seven nations.", SoloSCCount: func(*state.State) int { return 28 }, Rules: `First to 28 Supply Centers (SC) wins. If two nations have 28 SCs, the one with most wins. If drawn, the game continues an extra year. Fleets can move around the world via box sea regions, which are connected to the other ones in the same row and column. Six provinces have dual coasts: Spain, St. Petersburg, Levant, Arabia, Hebei, and Thailand. The Arctic region is impassable (Omsk & Siberia are land 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 RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
func YoungstownReduxGraph ¶
func YoungstownReduxStart ¶
Types ¶
This section is empty.