terrain

package module
v0.0.0-...-bd015fa Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2015 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 Terrain

type Terrain struct {
	X         uint16
	Y         uint16
	MaxHeight uint16
	// contains filtered or unexported fields
}

func New

func New(x uint16, y uint16, max_height uint16) *Terrain

func (*Terrain) CopyTo

func (t *Terrain) CopyTo(destination *Terrain, xOffset uint16, yOffset uint16) error

func (*Terrain) Flush

func (t *Terrain) Flush(writer io.Writer) error

func (*Terrain) GetHeight

func (t *Terrain) GetHeight(x uint16, y uint16) (num uint16, err error)

func (*Terrain) Iterate

func (t *Terrain) Iterate(fn func(uint16, uint16, uint16))

func (*Terrain) SetHeight

func (t *Terrain) SetHeight(x uint16, y uint16, height uint16) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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