atlas

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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCave

func GenCave(atlas *Atlas)

func GenTestlevel

func GenTestlevel(atlas *Atlas)

func Translate

func Translate(screen image.Rectangle, center image.Point, atlas image.Rectangle) image.Point

Types

type Atlas

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

func New

func New() *Atlas

func (*Atlas) Bounds

func (atlas *Atlas) Bounds() image.Rectangle

func (*Atlas) ExploreAll

func (atlas *Atlas) ExploreAll()

func (*Atlas) GetFeature

func (atlas *Atlas) GetFeature(pos image.Point) aspect.Feature

func (*Atlas) Glyph

func (atlas *Atlas) Glyph(p image.Point) Glyph

func (*Atlas) IsPassable

func (atlas *Atlas) IsPassable(p image.Point) bool

func (*Atlas) IsSeen

func (atlas *Atlas) IsSeen(p image.Point) bool

func (*Atlas) IsTransparent

func (atlas *Atlas) IsTransparent(p image.Point) bool

func (*Atlas) IsVisible

func (atlas *Atlas) IsVisible(p image.Point) bool

func (*Atlas) IsWallable

func (atlas *Atlas) IsWallable(p image.Point) bool

func (*Atlas) RandomFloor

func (atlas *Atlas) RandomFloor() image.Point

func (*Atlas) SetFeature

func (atlas *Atlas) SetFeature(pos image.Point, feature aspect.Feature)

func (*Atlas) SetVisible

func (atlas *Atlas) SetVisible(p image.Point)

func (*Atlas) Vision

func (atlas *Atlas) Vision(source image.Point)

type Cell

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

type Glyph

type Glyph struct {
	Code int
	Fore grid.Color
	Back grid.Color
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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