grid

package
v0.0.0-...-3bd8aaf Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grid

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

func New

func New(x, y int) *Grid

func (*Grid) EachRoom

func (g *Grid) EachRoom(f func(*Room))

func (*Grid) Nodes

func (g *Grid) Nodes() []graph.Node

func (*Grid) RoomAt

func (g *Grid) RoomAt(x, y int) (*Room, error)

type Room

type Room struct {
	Blocked bool

	X, Y int
	// contains filtered or unexported fields
}

func (*Room) Adjacent

func (r *Room) Adjacent() []graph.Node

Jump to

Keyboard shortcuts

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