public void Killed(ServerTowerModel hitSendingTower) { IsDead = true; hitSendingTower?.KilledMob(MobData); }
public double GetDistance(ServerTowerModel tower) { return(GetDistance(tower.X, tower.Y)); }
public void RemoveTower(ServerTowerModel tower) { GetTileByCoords(tower.X, tower.Y).TowerId = null; UpdateMapData(); }
public bool TowerInDistance(ServerTowerModel tower, int distance) { return(GetDistance(tower) <= distance); }
public void PlaceTower(ServerTowerModel tower) { GetTileByCoords(tower.X, tower.Y).TowerId = tower.TowerId; UpdateMapData(); }