Documentation ¶
Index ¶
- type Tile
- func (tile Tile) Cities() []featureMod.Feature
- func (tile Tile) Equals(other Tile) bool
- func (tile Tile) ExactEquals(other Tile) bool
- func (tile Tile) Fields() []featureMod.Feature
- func (tile *Tile) GetFeatureAtSide(sideToCheck sideMod.Side, featureType featureMod.Type) *featureMod.Feature
- func (tile Tile) GetTileRotations() []Tile
- func (tile Tile) Monastery() *featureMod.Feature
- func (tile Tile) Roads() []featureMod.Feature
- func (tile Tile) Rotate(rotations uint) Tile
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) ExactEquals ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.