public   void fire(Player player){
		if(log == 0){
			posx = player.getPlayerX();
			posy = player.getPlayerY();
		}
		if(log < 150){
			isVisible = true;
			if(dir == 3){
				posx = posx +5; 
				log = log + 5;
				
			}
			if(dir == 1){
				posx = posx - 5;
				log = log + 5;
			}
			if(dir == 0){
				posy = posy - 5;
				log = log + 5;
			}
			if(dir == 2){
				posy = posy + 5;
				log = log + 5;
			}
			if(dir == 4){
				posx =  posx + 5;
				posy = posy - 5;
				log = log + 5;
			}
		}
		else{
			log = 0;
			isVisible = false;
		}
		drawShot();
		
	}