level

package
v0.0.0-...-ee820f7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level struct {
	SizeX int
	SizeY int

	Buildings []buildings.Building
}

func NewLevel

func NewLevel(sizeX, sizeY int, buildings []buildings.Building) Level

func (Level) Render

func (l Level) Render() Representation

type Representation

type Representation [][]rune

func (Representation) SaveToFile

func (r Representation) SaveToFile(fileName string, sizeX, sizeY int) error

func (Representation) ShowInConsole

func (r Representation) ShowInConsole()

Jump to

Keyboard shortcuts

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