diplomacy

package
v0.0.0-...-94f88f4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowDiplomacyScreen

func ShowDiplomacyScreen(cache *lbx.LbxCache, player *playerlib.Player, enemy *playerlib.Player) (func(coroutine.YieldFunc), func(*ebiten.Image))

player is talking to enemy

Types

type Talk

type Talk struct {
	UI        *uilib.UI
	Font      *font.Font
	TitleFont *font.Font
	Items     []TalkItem
	Elements  []*uilib.UIElement
}

func (*Talk) AddItem

func (talk *Talk) AddItem(item string, available bool, action func())

func (*Talk) Clear

func (talk *Talk) Clear()

func (*Talk) SetTitle

func (talk *Talk) SetTitle(title string)

type TalkItem

type TalkItem struct {
	Text   string
	Action func()
}

Jump to

Keyboard shortcuts

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