draw_by_gocui

package
v0.0.0-...-b5afa3f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAFrame

func MakeAFrame(width int, height int, ps []*game.Point) []string

Types

type SnakeUI

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

func NewSnakeUI

func NewSnakeUI(quitFunc quitFunc) *SnakeUI

func (*SnakeUI) Height

func (ui *SnakeUI) Height() int

func (*SnakeUI) Output

func (ui *SnakeUI) Output(ps []*game.Point)

func (*SnakeUI) SetPerformer

func (ui *SnakeUI) SetPerformer(performer playerActionPerformer)

func (*SnakeUI) Start

func (ui *SnakeUI) Start() error

func (*SnakeUI) Stop

func (ui *SnakeUI) Stop()

func (*SnakeUI) Width

func (ui *SnakeUI) Width() int

TODO: use size outside

Jump to

Keyboard shortcuts

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