OOP-Projects-Java

Log | Files | Refs | README

Tileable.java (465B)


      1 package blocks;
      2 
      3 import java.awt.Color;
      4 
      5 public interface Tileable {
      6 	/**
      7 	 * Is the Tile occupied.
      8 	 * @return occupancy state.
      9 	 */
     10 	public boolean isOccupied();
     11 	
     12 	/**
     13 	 * Set if the Tile is occupied or not.
     14 	 * @param state.
     15 	 */
     16 	void setOccupied(boolean state);
     17 
     18 	/**
     19 	 * get the color of the Tile.
     20 	 * @return Color of tile.
     21 	 */
     22 	public Color getColor();
     23 	
     24 	/**
     25 	 * Set the color of the Tile.
     26 	 * @param color.
     27 	 */
     28 	public void setColor(Color color);
     29 
     30 	
     31 }