示例#1
0
    private List <List <Vector2> > GenerateAllowedIndexesForPawn()
    {
        List <List <Vector2> > moves = new List <List <Vector2> >();

        moves.Add(AllowedMovesGenerator.GetMovesForDirection(1, 0, 2));

        return(moves);
    }
示例#2
0
    public List <List <Vector2> > GetAllowedMoves()
    {
        List <List <Vector2> > moves = new List <List <Vector2> >();

        moves.Add(AllowedMovesGenerator.GetMovesForDirection(1, 0, 3));

        return(moves);
    }
示例#3
0
    public List <List <Vector2> > GetAllowedMoves()
    {
        List <List <Vector2> > moves = new List <List <Vector2> >();

        moves.Add(AllowedMovesGenerator.GetMovesForDirection(-1, 1, Constants.TABLE_SIZE));
        moves.Add(AllowedMovesGenerator.GetMovesForDirection(1, 1, Constants.TABLE_SIZE));
        moves.Add(AllowedMovesGenerator.GetMovesForDirection(1, -1, Constants.TABLE_SIZE));
        moves.Add(AllowedMovesGenerator.GetMovesForDirection(-1, -1, Constants.TABLE_SIZE));
        return(moves);
    }
示例#4
0
    private List <List <Vector2> > GenerateAllowedIndexesForRook()
    {
        List <List <Vector2> > moves = new List <List <Vector2> >();

        moves.Add(AllowedMovesGenerator.GetMovesForDirection(-1, 0, Constants.TABLE_SIZE));
        moves.Add(AllowedMovesGenerator.GetMovesForDirection(0, 1, Constants.TABLE_SIZE));
        moves.Add(AllowedMovesGenerator.GetMovesForDirection(1, 0, Constants.TABLE_SIZE));
        moves.Add(AllowedMovesGenerator.GetMovesForDirection(0, -1, Constants.TABLE_SIZE));

        return(moves);
    }