Documentation ¶
Index ¶
- type PlayerState
- func (s *PlayerState) AddEscape()
- func (s *PlayerState) AddFrame()
- func (s *PlayerState) AddTeleport()
- func (s *PlayerState) CheckpointSeen(name string) SeenState
- func (s *PlayerState) CheckpointsWalked(from, to string) bool
- func (s *PlayerState) Escapes() int
- func (s *PlayerState) Frames() int
- func (s *PlayerState) GiveAbility(name string) bool
- func (s *PlayerState) HasAbility(name string) bool
- func (s *PlayerState) Init()
- func (s *PlayerState) LastCheckpoint() string
- func (s *PlayerState) RecordCheckpoint(name string, flipped bool) bool
- func (s *PlayerState) RecordCheckpointEdge(name string, flipped bool) bool
- func (s *PlayerState) Score() string
- func (s *PlayerState) SetLives(n int)
- func (s *PlayerState) SetWon()
- func (s *PlayerState) SpeedrunCategories() SpeedrunCategories
- func (s *PlayerState) Teleports() int
- func (s *PlayerState) TnihSignsSeen(name string) (seen, total int)
- func (s *PlayerState) Won() bool
- type SeenState
- type SpeedrunCategories
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayerState ¶
func (*PlayerState) AddEscape ¶
func (s *PlayerState) AddEscape()
func (*PlayerState) AddFrame ¶
func (s *PlayerState) AddFrame()
func (*PlayerState) AddTeleport ¶ added in v1.1.66
func (s *PlayerState) AddTeleport()
func (*PlayerState) CheckpointSeen ¶
func (s *PlayerState) CheckpointSeen(name string) SeenState
func (*PlayerState) CheckpointsWalked ¶
func (s *PlayerState) CheckpointsWalked(from, to string) bool
func (*PlayerState) Escapes ¶
func (s *PlayerState) Escapes() int
func (*PlayerState) Frames ¶
func (s *PlayerState) Frames() int
func (*PlayerState) GiveAbility ¶
func (s *PlayerState) GiveAbility(name string) bool
func (*PlayerState) HasAbility ¶
func (s *PlayerState) HasAbility(name string) bool
func (*PlayerState) Init ¶ added in v1.1.66
func (s *PlayerState) Init()
Init must be called when Level got externally changed, e.g. by loading world or a save state.
func (*PlayerState) LastCheckpoint ¶
func (s *PlayerState) LastCheckpoint() string
func (*PlayerState) RecordCheckpoint ¶
func (s *PlayerState) RecordCheckpoint(name string, flipped bool) bool
func (*PlayerState) RecordCheckpointEdge ¶
func (s *PlayerState) RecordCheckpointEdge(name string, flipped bool) bool
func (*PlayerState) Score ¶
func (s *PlayerState) Score() string
func (*PlayerState) SetLives ¶ added in v1.5.23
func (s *PlayerState) SetLives(n int)
func (*PlayerState) SetWon ¶
func (s *PlayerState) SetWon()
func (*PlayerState) SpeedrunCategories ¶
func (s *PlayerState) SpeedrunCategories() SpeedrunCategories
func (*PlayerState) Teleports ¶ added in v1.1.66
func (s *PlayerState) Teleports() int
func (*PlayerState) TnihSignsSeen ¶
func (s *PlayerState) TnihSignsSeen(name string) (seen, total int)
func (*PlayerState) Won ¶
func (s *PlayerState) Won() bool
type SpeedrunCategories ¶
type SpeedrunCategories int
const ( // Real speedrun categories. AnyPercentSpeedrun SpeedrunCategories = 0x01 AllCheckpointsSpeedrun SpeedrunCategories = 0x02 AllSignsSpeedrun SpeedrunCategories = 0x04 AllPathsSpeedrun SpeedrunCategories = 0x08 AllSecretsSpeedrun SpeedrunCategories = 0x10 AllFlippedSpeedrun SpeedrunCategories = 0x20 NoEscapeSpeedrun SpeedrunCategories = 0x40 NoTeleportsSpeedrun SpeedrunCategories = 0x80 NoPushSpeedrun SpeedrunCategories = 0x100 )
func (SpeedrunCategories) ContainAll ¶
func (c SpeedrunCategories) ContainAll(cats SpeedrunCategories) bool
func (SpeedrunCategories) Describe ¶
func (c SpeedrunCategories) Describe() (categories string, tryNext string)
func (SpeedrunCategories) DescribeShort ¶
func (c SpeedrunCategories) DescribeShort() string
func (SpeedrunCategories) Name ¶
func (c SpeedrunCategories) Name() string
func (SpeedrunCategories) ShortName ¶
func (c SpeedrunCategories) ShortName() string
Click to show internal directories.
Click to hide internal directories.