modes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: BSD-3-Clause Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	ModelAdapter() *model.Adapter
	NewRenderContext(viewMatrix *mgl.Mat4) *graphics.RenderContext
	ForGraphics() graphics.Context
	ControlFactory() controls.Factory
}

Context provides some global resources.

type ElectronicMessagesMode

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

ElectronicMessagesMode is a mode for messages.

func NewElectronicMessagesMode

func NewElectronicMessagesMode(context Context, parent *ui.Area) *ElectronicMessagesMode

NewElectronicMessagesMode returns a new instance.

func (*ElectronicMessagesMode) SetActive

func (mode *ElectronicMessagesMode) SetActive(active bool)

SetActive implements the Mode interface.

type GameBitmapsMode

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

GameBitmapsMode is a mode for arbitrary game bitmaps.

func NewGameBitmapsMode

func NewGameBitmapsMode(context Context, parent *ui.Area) *GameBitmapsMode

NewGameBitmapsMode returns a new instance.

func (*GameBitmapsMode) SetActive

func (mode *GameBitmapsMode) SetActive(active bool)

SetActive implements the Mode interface.

type GameObjectsMode

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

GameObjectsMode is a mode for game object properties.

func NewGameObjectsMode

func NewGameObjectsMode(context Context, parent *ui.Area) *GameObjectsMode

NewGameObjectsMode returns a new instance.

func (*GameObjectsMode) SetActive

func (mode *GameObjectsMode) SetActive(active bool)

SetActive implements the Mode interface.

type GameTextsMode

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

GameTextsMode is a mode for arbitrary game texts.

func NewGameTextsMode

func NewGameTextsMode(context Context, parent *ui.Area) *GameTextsMode

NewGameTextsMode returns a new instance.

func (*GameTextsMode) SetActive

func (mode *GameTextsMode) SetActive(active bool)

SetActive implements the Mode interface.

type GameTexturesMode

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

GameTexturesMode is a mode for game textures.

func NewGameTexturesMode

func NewGameTexturesMode(context Context, parent *ui.Area) *GameTexturesMode

NewGameTexturesMode returns a new instance.

func (*GameTexturesMode) SetActive

func (mode *GameTexturesMode) SetActive(active bool)

SetActive implements the Mode interface.

type LevelControlMode

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

LevelControlMode is a mode for archive level control.

func NewLevelControlMode

func NewLevelControlMode(context Context, parent *ui.Area, mapDisplay *display.MapDisplay) *LevelControlMode

NewLevelControlMode returns a new instance.

func (*LevelControlMode) SetActive

func (mode *LevelControlMode) SetActive(active bool)

SetActive implements the Mode interface.

type LevelMapMode

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

LevelMapMode is a mode for level maps.

func NewLevelMapMode

func NewLevelMapMode(context Context, parent *ui.Area, mapDisplay *display.MapDisplay) *LevelMapMode

NewLevelMapMode returns a new instance.

func (*LevelMapMode) SetActive

func (mode *LevelMapMode) SetActive(active bool)

SetActive implements the Mode interface.

type LevelObjectsMode

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

LevelObjectsMode is a mode for level objects.

func NewLevelObjectsMode

func NewLevelObjectsMode(context Context, parent *ui.Area, mapDisplay *display.MapDisplay) *LevelObjectsMode

NewLevelObjectsMode returns a new instance.

func (*LevelObjectsMode) SetActive

func (mode *LevelObjectsMode) SetActive(active bool)

SetActive implements the Mode interface.

type WelcomeMode

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

WelcomeMode is a simple mode greeting the user and giving initial help.

func NewWelcomeMode

func NewWelcomeMode(context Context, parent *ui.Area) *WelcomeMode

NewWelcomeMode returns a new instance.

func (*WelcomeMode) SetActive

func (mode *WelcomeMode) SetActive(active bool)

SetActive implements the Mode interface.

Jump to

Keyboard shortcuts

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