views

package
v0.0.0-...-a07ad1b Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Screen

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

func CreateScreen

func CreateScreen(rowLength int, columnLength int) *Screen

func (*Screen) ForEachCells

func (screen *Screen) ForEachCells(
	callback func(
		y int,
		x int,
		symbol rune,
		foreground termbox.Attribute,
		background termbox.Attribute))

func (*Screen) Render

func (screen *Screen) Render(props *ScreenProps)

type ScreenCellProps

type ScreenCellProps struct {
	Symbol     rune
	Foreground termbox.Attribute
	Background termbox.Attribute
}

type ScreenProps

type ScreenProps struct {
	FieldCells            [][]*ScreenCellProps
	FloorNumber           int
	LankMessage           string
	LankMessageForeground termbox.Attribute
	RemainingTime         float64
}

Jump to

Keyboard shortcuts

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