public Projectile(TowerDefenseGame masterGame, Tower parentTower, Monster target, int damage)
 {
     this.damage = damage;
     velocity = 1.5f;
     this.target = target;
     this.x = parentTower.GetParentTile().GetXCoord() + GameTile.TILE_DIMENSIONS / 3;
     this.y = parentTower.GetParentTile().GetYCoord() + GameTile.TILE_DIMENSIONS / 3;
     this.parentTower = parentTower;
     texture = masterGame.Content.Load<Texture2D>("Towers//Projectiles//Projectile");
 }
 public override void OnClick()
 {
     if (GetMasterGame().GetMapManager().GetGameGUI().GetGold() >= 25)
     {
         GetMasterGame().GetMapManager().GetGameGUI().SpendGold(25);
         Tower towerToBuild = new Tower(GetMasterGame(), GetMasterGame().Content, GetMasterGame().GetMapManager().GetCurrentMap().GetSelection(), Building.BuildingType.Tower, GetMasterGame().Content.Load<Texture2D>("Towers//TowerRed"));
         towerToBuild.SetDamage(7);
         towerToBuild.SetRateOfFire(60);
         towerToBuild.SetRange(4);
         GetMasterGame().GetMapManager().GetCurrentMap().GetSelection().SetOccupant(towerToBuild);
     }
 }