types

package
v0.0.0-...-2f90b60 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction uint8
const (
	DirUp Direction = 1 << iota
	DirRight
	DirDown
	DirLeft
)
const DirNone Direction = 0

type Maze

type Maze []MazeRow

Maze represents a maze structured as a list of MazeRows which are themselves a list of valid directions.

func (Maze) Height

func (m Maze) Height(ch float64) int

Height returns the pixel height of the maze give the configurations height value for the maze

func (Maze) Width

func (m Maze) Width(cw float64) int

Width returns the pixel width of the maze give the configurations width value for the maze

type MazeRow

type MazeRow []Direction

MazeRow represents a single row of the maze, which is a list of directions.

Jump to

Keyboard shortcuts

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