/***************************************************************************
                          KnightDirection.cpp  -  description
                             -------------------
    begin                : Tue May 22 2001
    copyright            : (C) 2001 by Sven Reichard
    email                : reichard@math.udel.edu
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
# include "Directions/KnightDirection.h"
# include "Square.h"
using namespace Alice;
KnightDirection::KnightDirection(signed char diff)
  : Direction(diff)
{};

KnightDirection::~KnightDirection()
{};

bool
KnightDirection::isKnightDirection() const
{
  return true;
};

Square 
KnightDirection::blockedSquareFrom(const Square& sq, 
			  const Board& board) const
{
  return appliedTo(sq);
};
