armyview

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmyScreen

type ArmyScreen struct {
	Cache       *lbx.LbxCache
	ImageCache  util.ImageCache
	Player      *playerlib.Player
	State       ArmyScreenState
	ShowVault   func()
	FirstRow    int
	UI          *uilib.UI
	DrawMinimap func(*ebiten.Image, int, int, [][]bool, uint64)
}

func MakeArmyScreen

func MakeArmyScreen(cache *lbx.LbxCache, player *playerlib.Player, drawMinimap func(*ebiten.Image, int, int, [][]bool, uint64), showVault func()) *ArmyScreen

func (*ArmyScreen) Draw

func (view *ArmyScreen) Draw(screen *ebiten.Image)

func (*ArmyScreen) MakeUI

func (view *ArmyScreen) MakeUI() *uilib.UI

func (*ArmyScreen) Update

func (view *ArmyScreen) Update() ArmyScreenState

type ArmyScreenState

type ArmyScreenState int
const (
	ArmyScreenStateRunning ArmyScreenState = iota
	ArmyScreenStateDone
)

Jump to

Keyboard shortcuts

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