tree

package
v0.0.0-...-091a6ad Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 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 Forest

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

func NewForest

func NewForest(treeFactory *TreeFactory) *Forest

func (*Forest) Draw

func (f *Forest) Draw()

func (*Forest) PlantTree

func (f *Forest) PlantTree(x, y int, name, color string, texture []byte)

type Tree

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

func NewTree

func NewTree(x, y int, treeType *TreeType) *Tree

func (*Tree) Draw

func (t *Tree) Draw()

type TreeFactory

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

func NewTreeFactory

func NewTreeFactory() *TreeFactory

func (*TreeFactory) GetTreeType

func (tf *TreeFactory) GetTreeType(name, color string, texture []byte) *TreeType

type TreeType

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

func NewTreeType

func NewTreeType(name, color string, texture []byte) *TreeType

func (*TreeType) Draw

func (tt *TreeType) Draw(x, y int)

Jump to

Keyboard shortcuts

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