player_state

package
v1.0.0-alpha.111 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayerState

type PlayerState struct {
	Level *level.Level
}

func (*PlayerState) AddEscape

func (s *PlayerState) AddEscape()

func (*PlayerState) AddFrame

func (s *PlayerState) AddFrame()

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) 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) SetWon

func (s *PlayerState) SetWon()

func (*PlayerState) SpeedrunCategories

func (s *PlayerState) SpeedrunCategories() SpeedrunCategories

func (*PlayerState) TnihSignsSeen

func (s *PlayerState) TnihSignsSeen(name string) (seen, total int)

func (*PlayerState) Won

func (s *PlayerState) Won() bool

type SeenState

type SeenState int
const (
	NotSeen SeenState = iota
	SeenNormal
	SeenFlipped
)

type SpeedrunCategories

type SpeedrunCategories int
const (
	AnyPercentSpeedrun     SpeedrunCategories = 0x01
	HundredPercentSpeedrun SpeedrunCategories = 0x02
	AllSignsSpeedrun       SpeedrunCategories = 0x04
	AllPathsSpeedrun       SpeedrunCategories = 0x08
	AllSecretsSpeedrun     SpeedrunCategories = 0x10
	AllFlippedSpeedrun     SpeedrunCategories = 0x20
	NoEscapeSpeedrun       SpeedrunCategories = 0x40
)

Jump to

Keyboard shortcuts

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