Exemplo n.º 1
0
    public List <OrientedCell> CalcRouteTo(MoveImpl move)
    {
        List <OrientedCell> to_list = new List <OrientedCell> (1);

        List <OrientedCell>[] routes = new List <OrientedCell> [1];

        to_list.Add(move.GetTargetCell(gameboard_impl));

        new Routing(gameboard_impl).CalcRouteToMulty(move.GetUnitPlace(gameboard_impl), to_list, routes);        //ToDo try to remove this

        return(routes[0] != null && routes[0].Count > 0 ? routes[0] : null);
    }
Exemplo n.º 2
0
 public Vector2 FindTargetCellPlace(MoveImpl move)
 {
     return(FindCellPlace(move.GetTargetCell(gameboard_impl)));
 }