/***************************************************************************
                          DirectionUpLeft.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/DirectionUpLeft.h"
# include "Square.h"
using namespace Alice;

BasicBoard<Square>
DirectionUpLeft::image;

bool
DirectionUpLeft::isInitialized=(false);

DirectionUpLeft::DirectionUpLeft()
  : DiagonalDirection(1 - (1 << Square::fileShift))
{};

DirectionUpLeft::~DirectionUpLeft()
{};
bool
DirectionUpLeft::isUpLeft() const
{
  return true;
};


Square
DirectionUpLeft::appliedTo( const Square& sq ) const
{
  return sq.up().left();
};

