tiles

package
v0.0.0-...-5c15ff0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile struct {
	Features []featureMod.Feature
}

Immutable object

func (Tile) Cities

func (tile Tile) Cities() []featureMod.Feature

func (Tile) Equals

func (tile Tile) Equals(other Tile) bool

checks if two tiles are the same, ignoring their orientation

func (Tile) ExactEquals

func (tile Tile) ExactEquals(other Tile) bool

checks if two tiles are the same, including their orientation

func (Tile) Fields

func (tile Tile) Fields() []featureMod.Feature

func (*Tile) GetFeatureAtSide

func (tile *Tile) GetFeatureAtSide(sideToCheck sideMod.Side, featureType featureMod.Type) *featureMod.Feature

Return the feature of certain type on desired side

func (Tile) GetTileRotations

func (tile Tile) GetTileRotations() []Tile

Returns all possible rotations of the input tile, while ensuring that no duplicates are included in the result.

func (Tile) Monastery

func (tile Tile) Monastery() *featureMod.Feature

func (Tile) Roads

func (tile Tile) Roads() []featureMod.Feature

func (Tile) Rotate

func (tile Tile) Rotate(rotations uint) Tile

Rotate tile clockwise

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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