Documentation ¶
Index ¶
- func GetSeed() (rv int64)
- type Game
- func (g *Game) DeletePlayer(name string) bool
- func (g *Game) GetHash() hash.Hash
- func (g *Game) HasPlayer(name string) bool
- func (g *Game) History() []string
- func (g *Game) Leaders() []LeaderInfo
- func (g *Game) ListStocks() []Stock
- func (g *Game) News() []string
- func (g *Game) Player(name string) *PlayerInfo
- type GameState
- type LeaderInfo
- type LeaderSort
- type Player
- type PlayerInfo
- type Stock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
func (*Game) DeletePlayer ¶
func (*Game) Leaders ¶
func (g *Game) Leaders() []LeaderInfo
func (*Game) ListStocks ¶
func (*Game) Player ¶
func (g *Game) Player(name string) *PlayerInfo
type GameState ¶
type GameState struct { Stock [stockTypes]Stock Player map[string]*Player News []string History []string Key []byte Previous time.Time }
func (*GameState) Leaders ¶
func (g *GameState) Leaders() []LeaderInfo
type LeaderInfo ¶
type LeaderSort ¶
type LeaderSort []LeaderInfo
func (LeaderSort) Len ¶
func (l LeaderSort) Len() int
func (LeaderSort) Less ¶
func (l LeaderSort) Less(i, j int) bool
func (LeaderSort) Swap ¶
func (l LeaderSort) Swap(i, j int)
type PlayerInfo ¶
type PlayerInfo struct { Cash uint64 // contains filtered or unexported fields }
func (*PlayerInfo) CheckPassword ¶
func (p *PlayerInfo) CheckPassword(pw []byte) bool
func (*PlayerInfo) SetPassword ¶
func (p *PlayerInfo) SetPassword(pw []byte)
Click to show internal directories.
Click to hide internal directories.