public List <Pair <MTile, int> > GetAoETilesWithDistance(int dist) { var logic = new HexTileLogic(); var pairs = logic.GetAoETilesWithDistance(dist, this); var distTiles = new List <Pair <MTile, int> >(); foreach (var kvp in pairs) { distTiles.Add(new Pair <MTile, int>(this.ConvertIHexToMTile(kvp.X), kvp.Y)); } return(distTiles); }
public MTile GetPushTile(MTile target) { var logic = new HexTileLogic(); var tile = logic.GetPushTile(this, target); if (tile != null && tile.GetCurrentOccupant() == null) { return(tile as MTile); } else { return(null); } }
public bool IsTileNW(IHex target, int dist) { var logic = new HexTileLogic(); return(logic.IsTileNW(this, target, dist)); }
public List <IHex> GetRayTilesViaDistNW(int dist) { var logic = new HexTileLogic(); return(logic.GetRayTilesViaDistNW(this, dist)); }
public List <MTile> GetConvertedRaycastTiles(IHex target, int dist) { var logic = new HexTileLogic(); return(this.ConvertIHexToMTile(logic.GetRaycastTiles(this, target, dist))); }
public List <IHex> GetRaycastTiles(IHex target, int dist) { var logic = new HexTileLogic(); return(logic.GetRaycastTiles(this, target, dist)); }
public IHex GetRandomNearbyTile(int probes) { var logic = new HexTileLogic(); return(logic.GetRandomNearbyTile(probes, this)); }
public List <MTile> GetEmptyAoETiles(int dist) { var logic = new HexTileLogic(); return(this.ConvertIHexToMTile(logic.GetEmptyAoETiles(dist, this))); }
public List <MTile> GetArcTiles(MTile target) { var logic = new HexTileLogic(); return(this.ConvertIHexToMTile(logic.GetArcTiles(this, target))); }