youngstownredux

package
v0.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Overview

Code generated by go-bindata. (@generated) DO NOT EDIT. sources: svg/youngstownreduxmap.svg

Index

Constants

View Source
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

View Source
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

func Asset(name string) ([]byte, error)

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

func AssetDir(name string) ([]string, error)

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

func AssetInfo(name string) (os.FileInfo, error)

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 AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

func YoungstownReduxBlank

func YoungstownReduxBlank(phase godip.Phase) *state.State

func YoungstownReduxGraph

func YoungstownReduxGraph() *graph.Graph

func YoungstownReduxStart

func YoungstownReduxStart() (result *state.State, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL