westernworld901

package
v0.1.93 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Overview

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

Index

Constants

View Source
const (
	UmayyadEmirate      godip.Nation = "Umayyad Emirate"
	PrincipalityofKiev  godip.Nation = "Principality of Kiev"
	KingdomofDenmark    godip.Nation = "Kingdom of Denmark"
	KhaganateofKhazaria godip.Nation = "Khaganate of Khazaria"
	WestFrankishKingdom godip.Nation = "West Frankish Kingdom"
	TulunidEmirate      godip.Nation = "Tulunid Emirate"
	AbbasidCaliphate    godip.Nation = "Abbasid Caliphate"
	EastFrankishKingdom godip.Nation = "East Frankish Kingdom"
	EasternRomanEmpire  godip.Nation = "Eastern Roman Empire"
)

Variables

View Source
var WesternWorld901Variant = common.Variant{
	Name:   "Western World 901",
	Graph:  func() godip.Graph { return WesternWorld901Graph() },
	Start:  WesternWorld901Start,
	Blank:  WesternWorld901Blank,
	Phase:  newPhase,
	Parser: hundred.BuildAnywhereParser,
	ExtraDominanceRules: map[godip.Province]common.DominanceRule{
		"fra": common.DominanceRule{
			Nation: EastFrankishKingdom,
			Dependencies: map[godip.Province]godip.Nation{
				"swa": EastFrankishKingdom,
				"bre": EastFrankishKingdom,
				"sax": EastFrankishKingdom,
				"lot": godip.Neutral,
			},
		},
		"abk": common.DominanceRule{
			Nation: KhaganateofKhazaria,
			Dependencies: map[godip.Province]godip.Nation{
				"bnj": KhaganateofKhazaria,
				"tam": KhaganateofKhazaria,
				"sax": EastFrankishKingdom,
				"geo": godip.Neutral,
			},
		},
		"buc": common.DominanceRule{
			Nation: EasternRomanEmpire,
			Dependencies: map[godip.Province]godip.Nation{
				"att": EasternRomanEmpire,
				"con": EasternRomanEmpire,
				"geo": godip.Neutral,
			},
		},
		"epi": common.DominanceRule{
			Nation: EasternRomanEmpire,
			Dependencies: map[godip.Province]godip.Nation{
				"con": EasternRomanEmpire,
				"dal": godip.Neutral,
			},
		},
		"mos": common.DominanceRule{
			Nation: AbbasidCaliphate,
			Dependencies: map[godip.Province]godip.Nation{
				"ard": AbbasidCaliphate,
				"bag": AbbasidCaliphate,
				"arm": godip.Neutral,
				"aze": godip.Neutral,
			},
		},
		"tou": common.DominanceRule{
			Nation: WestFrankishKingdom,
			Dependencies: map[godip.Province]godip.Nation{
				"gas": WestFrankishKingdom,
				"nar": WestFrankishKingdom,
				"aqt": WestFrankishKingdom,
				"pam": godip.Neutral,
			},
		},
		"aut": common.DominanceRule{
			Nation: WestFrankishKingdom,
			Dependencies: map[godip.Province]godip.Nation{
				"par": WestFrankishKingdom,
				"nar": WestFrankishKingdom,
				"aqt": WestFrankishKingdom,
				"lot": godip.Neutral,
				"lbu": godip.Neutral,
			},
		},
	},
	Nations:           Nations,
	PhaseTypes:        classical.PhaseTypes,
	Seasons:           classical.Seasons,
	UnitTypes:         classical.UnitTypes,
	SoloWinner:        common.SCCountWinner(33),
	ProvinceLongNames: provinceLongNames,
	SVGMap: func() ([]byte, error) {
		return Asset("svg/westernworld901map.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:   "David Cohen",
	Version:     "4.0",
	Description: "Nine powers compete for the Western World circa 901.",
	SoloSCCount: func(*state.State) int { return 33 },
	Rules: `First to 33 Supply Centers (SC) wins.
Units may be built in any owned SC.
Neutral SCs get an army which always holds and disbands when dislodged. This will be rebuilt if the SC is unowned during adjustment.
Five provinces have dual coasts: Saamiland, Veletia, Jorvik, Rome and Pechenega.
Constantinople has a canal as in the standard map.
The Khazar Sea is not connected to other sea regions.`,
}

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 NeutralOrders

func NeutralOrders(state state.State) (ret map[godip.Province]godip.Adjudicator)

func Phase

func Phase(year int, season godip.Season, typ godip.PhaseType) godip.Phase

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 WesternWorld901Blank

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

func WesternWorld901Graph

func WesternWorld901Graph() *graph.Graph

func WesternWorld901Start

func WesternWorld901Start() (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