frontend

package
v0.0.0-...-a7e05d3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	Game          *backend.Game
	App           *tview.Application
	CurrentPlayer uuid.UUID

	Done chan error
	// contains filtered or unexported fields
}

View renders the game and handles user interaction.

func NewView

func NewView(game *backend.Game) *View

NewView construsts a new View struct.

func (*View) Start

func (view *View) Start()

Start starts the frontend game loop.

Jump to

Keyboard shortcuts

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