Example #1
0
 public static new void AddMoves(PieceType type)
 {
     type.Slide(new Direction(0, 1));
     type.Slide(new Direction(0, -1));
     type.Step(new Direction(1, 0));
     type.Step(new Direction(-1, 0));
     Ferz.AddMoves(type);
 }
Example #2
0
 public static new void AddMoves(PieceType type)
 {
     Ferz.AddMoves(type);
     type.Step(new Direction(2, 1));
     type.Step(new Direction(2, -1));
     type.Step(new Direction(-2, -1));
     type.Step(new Direction(-2, 1));
 }
Example #3
0
        // *** INITIALIZATION *** //

        #region AddPieceTypes
        public override void AddPieceTypes()
        {
            base.AddPieceTypes();
            //	The Elephant gets the added abtility to move as Ferz
            Ferz.AddMoves(Elephant);
            Elephant.PreferredImage = "Elephant Ferz";
            Elephant.MidgameValue   = 400;
            Elephant.EndgameValue   = 400;
            //	The General gets the added ability to move as Wazir
            Wazir.AddMoves(General);
            General.MidgameValue = 400;
            General.EndgameValue = 400;
        }
Example #4
0
        public static new void AddMoves(PieceType type)
        {
            Ferz.AddMoves(type);

            //	add the multi-path move
            MoveCapability move     = MoveCapability.Step(new Direction(2, 0));
            MovePathInfo   movePath = new MovePathInfo();

            movePath.AddPath(new List <Direction>()
            {
                new Direction(1, 1), new Direction(1, -1)
            });
            movePath.AddPath(new List <Direction>()
            {
                new Direction(1, -1), new Direction(1, 1)
            });
            move.PathInfo = movePath;
            type.AddMoveCapability(move);
        }
 public static new void AddMoves(PieceType type)
 {
     Elephant.AddMoves(type);
     Ferz.AddMoves(type);
 }
 public static new void AddMoves(PieceType type)
 {
     Ferz.AddMoves(type);
     Tribbabah.AddMoves(type);
 }
 public static new void AddMoves(PieceType type)
 {
     Rook.AddMoves(type);
     Ferz.AddMoves(type);
 }
 public static new void AddMoves(PieceType type)
 {
     Ferz.AddMoves(type);
     Camel.AddMoves(type);
 }
Example #9
0
 public static new void AddMoves(PieceType type)
 {
     Ferz.AddMoves(type);
     Elephant.AddMoves(type);
     Dabbabah.AddMoves(type);
 }