property

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package property implements basic property kinds in Monoply, including street, railroad, and utility.

Index

Constants

View Source
const (
	Orange  = iota
	Yellow  = iota
	Green   = iota
	Indigo  = iota
	Violet  = iota
	Blue    = iota
	Magenta = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Railroad

type Railroad struct {
	Name  string
	Rent  int
	Owner string
}

type Street

type Street struct {
	Name        string
	Color       int
	Price       int
	Rent        [6]int
	UpgradeCost int
	Owner       string
	Level       int
}

func (*Street) CurrentRent

func (s *Street) CurrentRent() int

func (*Street) Update

func (s *Street) Update() error

type Utility

type Utility struct {
	Name  string
	Owner string
}

func (*Utility) Rent

func (u *Utility) Rent() int

Jump to

Keyboard shortcuts

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