player

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: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	Id         int
	Name       string
	IsTurn     bool
	ThrownDice bool
	Conn       *websocket.Conn
	Position   int
	Ready      bool
	Money      int
}

func NewPlayer

func NewPlayer() *Player

func (*Player) AllowEndTurn

func (p *Player) AllowEndTurn() bool

Indicates if the player performed all the mandatory actions to end the turn

func (*Player) EndTurn

func (p *Player) EndTurn()

Perform clean up when ending turn

Jump to

Keyboard shortcuts

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