states

package
v0.0.0-...-fb118bf Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeathState

type DeathState struct {
	// contains filtered or unexported fields
}

DeathState is the player death state

func (*DeathState) OnPause

func (st *DeathState) OnPause(world w.World)

OnPause method

func (*DeathState) OnResume

func (st *DeathState) OnResume(world w.World)

OnResume method

func (*DeathState) OnStart

func (st *DeathState) OnStart(world w.World)

OnStart method

func (*DeathState) OnStop

func (st *DeathState) OnStop(world w.World)

OnStop method

func (*DeathState) Update

func (st *DeathState) Update(world w.World) states.Transition

Update method

type DifficultyMenuState

type DifficultyMenuState struct {
	// contains filtered or unexported fields
}

DifficultyMenuState is the difficulty menu state

func (*DifficultyMenuState) OnPause

func (st *DifficultyMenuState) OnPause(world w.World)

OnPause method

func (*DifficultyMenuState) OnResume

func (st *DifficultyMenuState) OnResume(world w.World)

OnResume method

func (*DifficultyMenuState) OnStart

func (st *DifficultyMenuState) OnStart(world w.World)

OnStart method

func (*DifficultyMenuState) OnStop

func (st *DifficultyMenuState) OnStop(world w.World)

OnStop method

func (*DifficultyMenuState) Update

func (st *DifficultyMenuState) Update(world w.World) states.Transition

Update method

type GameOverState

type GameOverState struct {
	// contains filtered or unexported fields
}

GameOverState is the game over menu state

func (*GameOverState) OnPause

func (st *GameOverState) OnPause(world w.World)

OnPause method

func (*GameOverState) OnResume

func (st *GameOverState) OnResume(world w.World)

OnResume method

func (*GameOverState) OnStart

func (st *GameOverState) OnStart(world w.World)

OnStart method

func (*GameOverState) OnStop

func (st *GameOverState) OnStop(world w.World)

OnStop method

func (*GameOverState) Update

func (st *GameOverState) Update(world w.World) states.Transition

Update method

type GameplayState

type GameplayState struct {
	// contains filtered or unexported fields
}

GameplayState is the main game state

func (*GameplayState) OnPause

func (st *GameplayState) OnPause(world w.World)

OnPause method

func (*GameplayState) OnResume

func (st *GameplayState) OnResume(world w.World)

OnResume method

func (*GameplayState) OnStart

func (st *GameplayState) OnStart(world w.World)

OnStart method

func (*GameplayState) OnStop

func (st *GameplayState) OnStop(world w.World)

OnStop method

func (*GameplayState) Update

func (st *GameplayState) Update(world w.World) states.Transition

Update method

type HighscoresState

type HighscoresState struct {
	// contains filtered or unexported fields
}

HighscoresState is the highscores state

func (*HighscoresState) OnPause

func (st *HighscoresState) OnPause(world w.World)

OnPause method

func (*HighscoresState) OnResume

func (st *HighscoresState) OnResume(world w.World)

OnResume method

func (*HighscoresState) OnStart

func (st *HighscoresState) OnStart(world w.World)

OnStart method

func (*HighscoresState) OnStop

func (st *HighscoresState) OnStop(world w.World)

OnStop method

func (*HighscoresState) Update

func (st *HighscoresState) Update(world w.World) states.Transition

Update method

type LevelCompleteState

type LevelCompleteState struct {
	// contains filtered or unexported fields
}

LevelCompleteState is the level complete menu state

func (*LevelCompleteState) OnPause

func (st *LevelCompleteState) OnPause(world w.World)

OnPause method

func (*LevelCompleteState) OnResume

func (st *LevelCompleteState) OnResume(world w.World)

OnResume method

func (*LevelCompleteState) OnStart

func (st *LevelCompleteState) OnStart(world w.World)

OnStart method

func (*LevelCompleteState) OnStop

func (st *LevelCompleteState) OnStop(world w.World)

OnStop method

func (*LevelCompleteState) Update

func (st *LevelCompleteState) Update(world w.World) states.Transition

Update method

type MainMenuState struct {
	// contains filtered or unexported fields
}

MainMenuState is the main menu state

func (st *MainMenuState) OnPause(world w.World)

OnPause method

func (st *MainMenuState) OnResume(world w.World)

OnResume method

func (st *MainMenuState) OnStart(world w.World)

OnStart method

func (st *MainMenuState) OnStop(world w.World)

OnStop method

func (st *MainMenuState) Update(world w.World) states.Transition

Update method

type MuteMenuState

type MuteMenuState struct {
	// contains filtered or unexported fields
}

MuteMenuState is the mute menu state

func (*MuteMenuState) OnPause

func (st *MuteMenuState) OnPause(world w.World)

OnPause method

func (*MuteMenuState) OnResume

func (st *MuteMenuState) OnResume(world w.World)

OnResume method

func (*MuteMenuState) OnStart

func (st *MuteMenuState) OnStart(world w.World)

OnStart method

func (*MuteMenuState) OnStop

func (st *MuteMenuState) OnStop(world w.World)

OnStop method

func (*MuteMenuState) Update

func (st *MuteMenuState) Update(world w.World) states.Transition

Update method

type PauseMenuState

type PauseMenuState struct {
	// contains filtered or unexported fields
}

PauseMenuState is the pause menu state

func (*PauseMenuState) OnPause

func (st *PauseMenuState) OnPause(world w.World)

OnPause method

func (*PauseMenuState) OnResume

func (st *PauseMenuState) OnResume(world w.World)

OnResume method

func (*PauseMenuState) OnStart

func (st *PauseMenuState) OnStart(world w.World)

OnStart method

func (*PauseMenuState) OnStop

func (st *PauseMenuState) OnStop(world w.World)

OnStop method

func (*PauseMenuState) Update

func (st *PauseMenuState) Update(world w.World) states.Transition

Update method

Jump to

Keyboard shortcuts

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