Package math.wfc
Class Tile
java.lang.Object
math.wfc.Tile
A Class to store data about a Tile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Getter Function for the id of the tile.Function to see if all Rules for this tile are fullfilles at a certain position
-
Constructor Details
-
Tile
public Tile(int id) Default Constructer that initializes a Tile without rules.- Parameters:
id
- the id of the Tile
-
Tile
Constructer that takes a list of rules for the given Tile.- Parameters:
id
- the id of the Tilerules
- the rules to add to the Tile
-
-
Method Details
-
getState
Function to see if all Rules for this tile are fullfilles at a certain position- Parameters:
grid
- current gridstatex
- x-coordinate of Superpositiony
- y-coordinate of Superposition- Returns:
- Rule.STATE object with result of all included rules
-
getId
public int getId()Getter Function for the id of the tile.- Returns:
- id of the tile that was set in the Constructor
-