Newer
Older
/**These Values are being set when initialized
*/
int size, posx, posy;
/**The Value of this Integer determines who owns this Tile
/**Initializer for Tile Objects
* @param size Sets the Size of the Image
* @param posx Sets the x-Position of the Image
* @param posy Sets the y-Position of the Image
*/
public Tile(int size, int posx, int posy){
size = this.size;
posx = this.posx;
posy = this.posy;
* @param owner
*/
public void set_owner(int player){
owner = player;
}
/**Returns the owner
* @return owner
*/
public int get_owner(){
return owner;
}
/**Returns if the Tile-owner is equal to the given Player
* @param owner
*/
public boolean is_owner(int player){
return owner == player;
}
/**Whether this Tile is owned by a Player