game

package
v0.0.0-...-6b508d1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildingPrototypeId_Main uint8 = iota + 1
	BuildingPrototypeId_Pit
	BuildingPrototypeId_Mine
)
View Source
const (
	UnitPrototypeId_AntiAir uint8 = iota + 1
	UnitPrototypeId_Air
	UnitPrototypeId_Tank
	UnitPrototypeId_Worker
	UnitPrototypeId_Turret
)
View Source
const (
	UI_Label_WinScreen = iota + core.UI_Id_Count
	UI_Container_EndScreen
	UI_Id_Count
)
View Source
const (
	MaxTicks = 1800
)

Variables

View Source
var (
	BuildableBuildingPrototypeIds = []uint8{}
	UnitPrototypeIds              = []uint8{UnitPrototypeId_Air, UnitPrototypeId_AntiAir, UnitPrototypeId_Tank}
)
View Source
var SpriteGetter = &spriteGetter{}

Functions

This section is empty.

Types

type Client

type Client struct {
	*core.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(headlessClient core.IHeadlessClient, config core.ClientConfig, active bool) *Client

func (*Client) Draw

func (c *Client) Draw(screen *ebiten.Image)

func (*Client) UI

func (c *Client) UI() *UI

func (*Client) Update

func (c *Client) Update() error

type UI

type UI struct {
	*core.UIManager
}

func NewUI

func NewUI(cli *core.Client, spriteGetter assets.SpriteGetter) *UI

func (*UI) DismissEndScreen

func (m *UI) DismissEndScreen()

func (*UI) IsShowingEndScreen

func (m *UI) IsShowingEndScreen() bool

func (*UI) Regenerate

func (ui *UI) Regenerate() *UI

func (*UI) ShowEndScreen

func (m *UI) ShowEndScreen(winnerId uint8, outOfTime bool)

func (*UI) ShowLoseScreen

func (m *UI) ShowLoseScreen()

Jump to

Keyboard shortcuts

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