tiles

package
v0.0.0-...-65675ae Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugTile

func NewDebugTile(width int, height int) archetypes.Object

func NewHighlightTile

func NewHighlightTile(width int, height int) archetypes.Object

Types

type ForestType

type ForestType int
const (
	ForestStandard ForestType = iota
	ForestPine
	ForestMixed
)

type GroundType

type GroundType int
const (
	GroundGrass GroundType = iota
	GroundSand
	GroundSea
)

type Tile

func NewBuildingTile

func NewBuildingTile(groundType GroundType, buildingType components.BuildingType) Tile

func NewForestTile

func NewForestTile(groundType GroundType, forestType ForestType) Tile

func NewGroundTile

func NewGroundTile(groundType GroundType) Tile

func NewMountainsTile

func NewMountainsTile(groundType GroundType, mountainType archetypes.MountainType) Tile

func (Tile) GetArea

func (t Tile) GetArea() *components.Area

func (Tile) GetClickable

func (t Tile) GetClickable() *components.Clickable

func (Tile) GetCollider

func (t Tile) GetCollider() *components.Collider

func (Tile) GetDrawable

func (t Tile) GetDrawable() *components.Drawable

func (Tile) GetResourcesSource

func (t Tile) GetResourcesSource() *components.ResourcesSource

func (Tile) GetWorldSpace

func (t Tile) GetWorldSpace() *components.WorldSpace

Jump to

Keyboard shortcuts

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