board

package
v0.0.0-...-48e53a6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPosition = MIDDLE_CENTER

Functions

This section is empty.

Types

type Board

type Board interface {
	Grids() BoardGrid
	CurrentGrid() TileGrid
	GridAt(pos Position) TileGrid
	GetCurrentPos() Position
	SetCurrentPos(pos Position)
	GetPreviousPos() Position
	GetTileUnderCursor() (*tile.Tile, Position)
	ResetAll()
	UI() *ui.BoardUI

	DrawBoard(screen *ebiten.Image)
	DrawTile(t *tile.Tile, pos Position)
	DrawTileUnderCursor()
	SetGridToDraw(pos Position)
}

func NewBoard

func NewBoard() Board

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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