game

package
v0.0.0-...-eb6d389 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

func New

func New() *Game

func (*Game) Char

func (g *Game) Char(r rune)

func (*Game) CmdMove

func (g *Game) CmdMove()

func (*Game) CmdTurn

func (g *Game) CmdTurn(td turnDirection)

func (*Game) Draw

func (g *Game) Draw(d grid.DrawableGrid)

func (*Game) Fin

func (g *Game) Fin(last bool) bool

func (*Game) Key

func (g *Game) Key(e grid.KeyEvent)

func (*Game) MouseClick

func (g *Game) MouseClick(e grid.MouseClickEvent)

func (*Game) MouseDrag

func (g *Game) MouseDrag(e grid.MouseDragEvent)

func (*Game) MouseMove

func (g *Game) MouseMove(e grid.MouseMoveEvent)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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