board

package
v0.0.0-...-f7464b4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SpaceTypeStart = iota
	SpaceTypeProperty
	SpaceTypeRailroad
	SpaceTypeJail
	SpaceTypeGotoJail
	SpaceTypeTax
	SpaceTypeChance
	SpaceTypeChest
	SpaceTypeFreeParking
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	Spaces []*Space
}

type Space

type Space struct {
	Info  *SpaceInfo
	Owner *player.Player
}

func NewSpace

func NewSpace(name string, spaceType int, price int, rent int) *Space

type SpaceInfo

type SpaceInfo struct {
	Name  string
	Price int
	Type  int
	Rent  int
}

Jump to

Keyboard shortcuts

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