public getTile ( Coord co ) : Coord | ||
co | Coord | If not null this object is used to return the information. If /// null a new one is created and returned. /// /// |
return | Coord |
public Coord getTile(Coord co)
{
if (co != null)
{
co.x = ctX;
co.y = ctY;
return co;
}
else
{
return new Coord(ctX, ctY);
}
}