window

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Choice

type Choice struct {
	ID      data.UUID
	Checked bool
}

func (*Choice) Text

func (c *Choice) Text(parser MessageSyntaxParser, game *data.Game) string

type MessageSyntaxParser

type MessageSyntaxParser interface {
	ParseMessageSyntax(content string) string
}

type Windows

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

func (*Windows) CanProceed

func (w *Windows) CanProceed(interpreterID consts.InterpreterID) bool

func (*Windows) ChosenIndex

func (w *Windows) ChosenIndex() int

ChosenIndex returns the chosen index that are chosen lastly. This value is valid even after the choosing windows are closed. This value is invalidated when the new choosing windows are shown.

func (*Windows) CloseAll

func (w *Windows) CloseAll()

func (*Windows) CloseImmediatelyForInterpreter

func (w *Windows) CloseImmediatelyForInterpreter(interpreterID consts.InterpreterID)

func (*Windows) DecodeMsgpack

func (w *Windows) DecodeMsgpack(dec *msgpack.Decoder) error

func (*Windows) Draw

func (w *Windows) Draw(screen *ebiten.Image, characters []*character.Character, offsetX, offsetY, windowOffsetY int)

func (*Windows) EncodeMsgpack

func (w *Windows) EncodeMsgpack(enc *msgpack.Encoder) error

func (*Windows) GC

func (w *Windows) GC(excludes []consts.InterpreterID)

GC closes windows immediately if its interpreter ID is not in the given interpreter ID set.

GC aims to rescue old save data.

func (*Windows) HasChosenIndex

func (w *Windows) HasChosenIndex() bool

func (*Windows) IsAnimating

func (w *Windows) IsAnimating(interpreterID consts.InterpreterID) bool

IsAnimating reports whether some of windows are animating. If interpreterID is non 0, checking the window related to the interpreter is skipped.

func (*Windows) IsBusy

func (w *Windows) IsBusy(interpreterID consts.InterpreterID) bool

IsAnimating reports whether some of windows are busy (animating or opened). If interpreterID is non 0, checking the window related to the interpreter is skipped.

func (*Windows) IsBusyWithChoosing

func (w *Windows) IsBusyWithChoosing() bool

func (*Windows) ShowBalloon

func (w *Windows) ShowBalloon(contentID data.UUID, parser MessageSyntaxParser, game *data.Game, balloonType data.BalloonType, eventID int, interpreterID consts.InterpreterID, messageStyle *data.MessageStyle)

func (*Windows) ShowChoices

func (w *Windows) ShowChoices(parser MessageSyntaxParser, game *data.Game, choices []*Choice, interpreterID consts.InterpreterID)

func (*Windows) ShowMessage

func (w *Windows) ShowMessage(contentID data.UUID, parser MessageSyntaxParser, game *data.Game, eventID int, background data.MessageBackground, positionType data.MessagePositionType, textAlign data.TextAlign, interpreterID consts.InterpreterID, messageStyle *data.MessageStyle)

func (*Windows) Update

func (w *Windows) Update(playerY int, parser MessageSyntaxParser, sceneManager *scene.Manager, characters []*character.Character)

Jump to

Keyboard shortcuts

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