zurück zur Übersicht

SimpleBoardRed.java

 
/** 
 * SimpleBoardRed.java
 *
 * @author Martin Klöckner, Daniel Höpfl
 *
 * @see SimpleBoard
 */

package SpringerPack.Boards;

import java.awt.Color;
import java.awt.Polygon;

/**
 * This class implements an IOutput conform Board.
 * It inherits all but three functions from SimpleBoard.
 * The three functions just change the color of the output.
 *
 * @see SimpleBoard
 * @see IOutput
 */
public class SimpleBoardRed extends SimpleBoard {

      /**
       * function to get the Color of "white" fields
       *
       * @return   Color of "white" fields
       *
       * @see SimpleBoard#getWhiteFieldColor
       */
   public Color getWhiteFieldColor()
   {
      return Color.white;
   }

      /**
       * function to get the Color of "black" fields
       *
       * @return   Color of "black" fields
       *
       * @see SimpleBoard#getBlackFieldColor
       */
   public Color getBlackFieldColor()
   {
      return new Color(255, 128, 128);
   }

      /**
       * function to get the Color of the outline of the startfield
       *
       * @return   Color of startfields border
       *
       * @see SimpleBoard#getStartFieldBorderColor
       */
   public Color getStartFieldBorderColor()
   {
      return Color.blue;
   }
}

zurück zur Übersicht