terrain

package
v0.0.0-...-f579556 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Codes = []string{
		ALPS:  "ALPS",
		AR:    "AR",
		BH:    "BH",
		BR:    "BR",
		CH:    "CH",
		DE:    "DE",
		DF:    "DF",
		DH:    "DH",
		FORDS: "FORDS",
		GH:    "GH",
		HSM:   "HSM",
		JG:    "JG",
		JH:    "JH",
		L:     "L",
		LCM:   "LCM",
		LJM:   "LJM",
		LSM:   "LSM",
		O:     "O",
		PI:    "PI",
		PR:    "PR",
		R:     "R",
		RH:    "RH",
		SH:    "SH",
		SW:    "SW",
		TU:    "TU",
	}
	Description = []string{
		ALPS:  "Alpine",
		AR:    "Arid:",
		BH:    "Brush Hill",
		BR:    "Brush",
		CH:    "Conifer Hills",
		DE:    "Desert",
		DF:    "Deciduous Forest",
		DH:    "Deciduous Hill",
		FORDS: "Fords",
		GH:    "Grassy Hills",
		HSM:   "High Mountains",
		JG:    "Jungle",
		JH:    "Jungle Hill",
		L:     "Lake",
		LCM:   "Low Conifer Mountains",
		LJM:   "Low Jungle Mountain",
		LSM:   "Low Snowy Mountains",
		O:     "Ocean",
		PI:    "Polar Ice",
		PR:    "Prairie",
		R:     "River",
		RH:    "Rocky Hills",
		SH:    "Snowy Hills",
		SW:    "Swamp",
		TU:    "Tundra",
	}
	LongDescription = [...]string{
		ALPS:  "a bigger version of HSM.",
		AR:    "Arid: tundra without water.",
		BH:    "Brush Hill: Hill covered with brush.",
		BR:    "Brush: Conifer forest with fewer trees more bushes (Forestry not possible here).",
		CH:    "Conifer Hill: Hill covered with conifer forest.",
		DE:    "Desert: Arid without grass.",
		DF:    "Deciduous: Seasonal forest.",
		DH:    "Deciduous Hill: Hill covered with deciduous forest.",
		FORDS: "Shallow spots that are ways across rivers.",
		GH:    "Grassy Hill: Hill covered with grass.",
		HSM:   "High Mountains: cannot be entered, except through a pass.",
		JG:    "Jungle: Wet forest.",
		JH:    "Jungle Hill: Hill covered with jungle.",
		L:     "Lake a body of water.",
		LCM:   "Low Conifer Mountains: Hills but higher, difficult to enter covered with conifer forest.",
		LJM:   "Low Jungle Mountain.",
		LSM:   "Low Snowy Mountains: Hills but higher, very difficult to enter.",
		O:     "Ocean.",
		PI:    "Polar Ice: Permanent ice and difficult to move through.",
		PR:    "Prairie: Grassland.",
		R:     "Rivers: Large moving bodies of water impossible to cross unless through a ford or by boat.",
		RH:    "Rocky Hill: Hill covered with rocks.",
		SH:    "Snow Hill: colder than GH, snow rather than grass.",
		SW:    "Swamp: very wet grassland.",
		TU:    "Tundra: not very good grassland.",
	}
)

Functions

This section is empty.

Types

type Terrain

type Terrain int
const (
	Unknown Terrain = iota
	ALPS
	AR
	BH
	BR
	CH
	DE
	DF
	DH
	FORDS
	GH
	HSM
	JG
	JH
	L
	LCM
	LJM
	LSM
	O
	PI
	PR
	R
	RH
	SH
	SW
	TU
)

func (Terrain) Code

func (c Terrain) Code() string

func (Terrain) Description

func (c Terrain) Description() string

Description returns a description of the code.

func (Terrain) LongDescription

func (c Terrain) LongDescription() string

LongDescription returns an expanded description of the terrain code.

func (Terrain) MarshalJSON

func (c Terrain) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface

func (Terrain) String

func (c Terrain) String() string

String implements the string.Stringer interface

func (Terrain) ToFill

func (c Terrain) ToFill() string

func (*Terrain) UnmarshalJSON

func (c *Terrain) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

Jump to

Keyboard shortcuts

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