public void towerClicked(int id, PlayerType playerType, TowerTypes towerType, ArrayList<TowerManager.TowerTypes> evolutions){
		
		towerClickedType = towerType;
		
		//Displaying the evolution tree of the tower
		if((towerType == TowerTypes.SUPPORTTOWER)||(towerType == TowerTypes.SHIELDTOWER)||(towerType == TowerTypes.MEDICALTOWER)){
			for(Sprite evolve:supportTree){
				if((evolutions.indexOf(((EvolveTowerSprite) evolve).getTowerType())!= -1)||(((EvolveTowerSprite) evolve).getTowerType() == towerType)){
					((EvolveTowerSprite) evolve).setId(id);
					((EvolveTowerSprite) evolve).setClickable(true);
				}
				addSprite(evolve);
			}
			
			//Resetting the attackTree
			setSupportTree();
			
			showSupportTree = true;
		}
		else{
			for(Sprite evolve:attackTree){
				if((evolutions.indexOf(((EvolveTowerSprite) evolve).getTowerType())!= -1)||(((EvolveTowerSprite) evolve).getTowerType() == towerType)){
					((EvolveTowerSprite) evolve).setId(id);
					((EvolveTowerSprite) evolve).setClickable(true);
				}
				addSprite(evolve);
			}
			
			//Resetting the attackTree
			setAttackTree();
			
			showAttackTree = true;
		}
		
		//Displaying the tower informations 
		jTowerName.setText(towerType+"");
		jTowerCost.setText("Purchase price : "+towerType.cost()+" P$");
		add(jTowerName);
		add(jTowerCost);
		
		//Adding the selling button
		jButton.setText("Sell");
		sell = true;
		add(jButton);
		
        //Repaint the panel
    	revalidate();
    	repaint();
	}