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