private void dealtDamage(int getX, int getY, int getWidth, int getLength, int getTime, int getDelay, double getDamage,int applyForce)
    {
        if (character.equals("P1")) // player 1
        {
            if (moveDirection) 
            {
                // add new object (player 1) into the world at the correction orientation
                getWorld().addObject(new P1AttackArea(x + getX, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,moveDirection),x + getX, y + getY); 
            } 
            else
            {   // add new object (player 2) into the world at the opposite orientation
                getWorld().addObject(new P1AttackArea(x - getX, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,moveDirection),x - getX, y + getY);
            }
        }
        else  if (character.equals("P2")) // player 2
        {
            if (moveDirection) 
            {
                 // add new object (player 1) into the world at the correction orientation
                getWorld().addObject(new P2AttackArea(x + getX, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,moveDirection),x + getX, y + getY);
            } 
            else
            {   
                // // add new object (player 2) into the world at the opposite orientation
                getWorld().addObject(new P2AttackArea(x - getX, y + getY,getWidth,getLength,getTime,getDelay,getDamage,applyForce,moveDirection),x - getX, y + getY);
            }
        }
    }