Class MrBlack

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class MrBlack
    extends ComputerFigure
    Computer figure that colors every field it moves to black.
    See Also:
    Serialized Form
    • Constructor Detail

      • MrBlack

        public MrBlack​(Game game,
                       FigureInfo figureInfo)
        Creates a new MrBlack.
        Parameters:
        game - The game.
        figureInfo - The figure info.
    • Method Detail

      • doSpecialUpdate

        protected void doSpecialUpdate​(AnimationInfo animation)
        Sets the point MrBlack is on to color black.
        Overrides:
        doSpecialUpdate in class ComputerFigure
        Parameters:
        animation - The AnimationInfo.