sceneimpl

package
v0.0.0-...-bf68151 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const FadingCount = 30

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedSettingsScene

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

TODO We should rename setttingScene and AdvancedSettingsScene There is no stronger need to split scenes, so we probably should consider merging them into one.

func (*AdvancedSettingsScene) Draw

func (s *AdvancedSettingsScene) Draw(screen *ebiten.Image)

func (*AdvancedSettingsScene) Resize

func (s *AdvancedSettingsScene) Resize(width, height int)

func (*AdvancedSettingsScene) Update

func (s *AdvancedSettingsScene) Update(sceneManager *scene.Manager) error

type MapScene

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

func NewMapScene

func NewMapScene() *MapScene

func NewMapSceneWithGame

func NewMapSceneWithGame(game *gamestate.Game) *MapScene

func NewTitleMapScene

func NewTitleMapScene(sceneManager *scene.Manager, savedGame *gamestate.Game) *MapScene

func (*MapScene) DebugPanel

func (m *MapScene) DebugPanel(entityType debug.DebugPanelType) *debug.DebugPanel

func (*MapScene) Draw

func (m *MapScene) Draw(screen *ebiten.Image)

func (*MapScene) Resize

func (m *MapScene) Resize(width, height int)

func (*MapScene) Update

func (m *MapScene) Update(sceneManager *scene.Manager) error

type Scene

type Scene interface {
	Update(sceneManager *scene.Manager) error
	Draw(screen *ebiten.Image)
	Resize(width, height int)
}

func NewInitialScene

func NewInitialScene(sceneManager *scene.Manager) (Scene, error)

type SettingsScene

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

func NewSettingsScene

func NewSettingsScene() *SettingsScene

func (*SettingsScene) Draw

func (s *SettingsScene) Draw(screen *ebiten.Image)

func (*SettingsScene) Resize

func (s *SettingsScene) Resize(width, height int)

func (*SettingsScene) Update

func (s *SettingsScene) Update(sceneManager *scene.Manager) error

type SplashScene

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

func NewSplashScene

func NewSplashScene() *SplashScene

func (*SplashScene) Draw

func (s *SplashScene) Draw(screen *ebiten.Image)

func (*SplashScene) Resize

func (s *SplashScene) Resize(width, height int)

func (*SplashScene) Update

func (s *SplashScene) Update(sceneManager *scene.Manager) error

Jump to

Keyboard shortcuts

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