Documentation ¶
Index ¶
- type Player
- func (p *Player) AddAvailableAction(action interfaces.Action)
- func (p *Player) GetAvailableActions() []interfaces.Action
- func (p *Player) GetLastTick() int
- func (p *Player) GetLastTickTime() time.Time
- func (p *Player) GetPlayerId() int
- func (p *Player) SetLastTick(tickNum int)
- func (p *Player) SetLastTickTime(t time.Time)
- func (p *Player) SetPlayerId(id int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { *spectator.Spectator *entity.Entity PlayerId int AvailableActions []interfaces.Action PlayerLastTick int PlayerLastTickTime time.Time }
func New ¶
func New(g interfaces.Game) *Player
func (*Player) AddAvailableAction ¶
func (p *Player) AddAvailableAction(action interfaces.Action)
func (*Player) GetAvailableActions ¶
func (p *Player) GetAvailableActions() []interfaces.Action
func (*Player) GetLastTick ¶
func (*Player) GetLastTickTime ¶
func (*Player) GetPlayerId ¶
func (*Player) SetLastTick ¶
func (*Player) SetLastTickTime ¶
func (*Player) SetPlayerId ¶
Click to show internal directories.
Click to hide internal directories.