public Weapon(int x, int y, int[] dir, Dimension space) 
    {
    	
    	if(Weapon.weaponCounter == 0)
    	{
    		Image ii;
			try 
			{
				ii = ImageIO.read(this.getClass().getResource("/resource/cat.png"));
				Weapon.weaponImage = ii.getScaledInstance(120, 120, 0);
			} 
			catch (IOException e) 
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
    		
    	}
    	
    	Weapon.weaponCounter++;
    	System.out.println("weapons:" + Weapon.weaponCounter);
    	
        isVisible = true;
        width = 25;
        height = 25;
        
        this.direction = new double[2];
        this.startPosition = new int[2];
        
        // Richtungsvektor
        this.direction[0] = dir[0] -x ;
        this.direction[1] = dir[1] -y ;
        
        /*
        //Normieren
        this.dir[0] = (this.dir[0] / Math.sqrt( (this.dir[0]*this.dir[0]) + (this.dir[1]*this.dir[1])-2 )) ;
        this.dir[1] = (this.dir[1] / Math.sqrt( (this.dir[1]*this.dir[1]) + (this.dir[0]*this.dir[0])-2 )) ;
        */
        //System.out.println("x: " + this.dir[0] + "Y: " + this.dir[1]);
        
        this.startPosition[0] = x;
        this.startPosition[1] = y;
        
        this.xPosition = x;
        this.yPosition = y;
        
        this.space = space;
    }