private void dealtDamage(int getX, int getY, int getWidth, int getLength, int getTime, int getDelay, double getDamage, int applyForce)
    {
        if (character.equals("P1"))
        {
            if (direction)
            {
                getWorld().addObject(new P1AttackArea(getX + x, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,direction),x + getX, y + getY);
            } 
            else
            {   
                getWorld().addObject(new P1AttackArea(getX - x, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,direction), this.getX() - x, y + getY);
            }
        }
        else  if (character.equals("P2"))
        {
            if (direction)
            {
                getWorld().addObject(new P2AttackArea(getX + x, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,direction), x + getX, y + getY);
            } 
            else
            {   
                getWorld().addObject(new P2AttackArea(getX - x, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,direction), this.getX() - x, y + getY);
            }
        }
    }