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, Nations: Nations, PhaseTypes: classical.PhaseTypes, Seasons: classical.Seasons, UnitTypes: classical.UnitTypes, SoloWinner: common.SCCountWinner(28), 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: "A ten player variant that adds China, India and Japan to the standard seven nations.", Rules: "Rules are as per classical Diplomacy. There are eight box sea regions which are each connected " + "to the other boxes in the same row and column, and allow fleets to travel 'around the world'. Six provinces " + "have two coasts (Spain, St. Petersburg, Levant, Arabia, Hebei and Thailand), and all other coastal regions have a " + "single coast. Note that the frozen Arctic region is impassible and prevents fleets from reaching Omsk and Siberia. " + "The winner is the first nation to 28 supply centers, or the player with the most in the case of " + "multiple nations reaching 28 in the same turn. If the leading two nations both have the same number of centers " + "then the game will continue for another year. This variant is based on the Youngstown variant by Rod Walker, " + "A. Phillips, Ken Lowe and Jon Monsarret.", }
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.