@Override
	public void postUpdate() {
		if(!underTrap){
		xPos = 12*Math.cos((direction-90.0)/180*Math.PI);
		yPos = 12*Math.sin((direction-90.0)/180*Math.PI);
		if(onBattle && canon.getId()==2){

			listElements.addElement(new Bullet(x-xPos,y-yPos, direction));
		}
		if(onBattle && canon.getId()==6){
			
			listElements.addElement(new Bullet(x+xPos,y+yPos, direction));
		}
		// TODO Auto-generated method stub
		}
		else {
			onBattle=false;
			if(timerTrap>0)timerTrap--;
			else underTrap=false;
		}
	}