public void setAppliedEffects(Vec2 maximumMovement){
        removeEffects();
        addEffect(left ? Effect.LEFT_KEY_T : Effect.LEFT_KEY_F);
        addEffect(right ? Effect.RIGHT_KEY_T : Effect.RIGHT_KEY_F);
        if(maximumMovement.getY() > 0)
            addEffect(Effect.FALLING_DOWN_T);
        if(maximumMovement.getY() < 0)
            addEffect(Effect.JUMPING_UP);
        if(maximumMovement.getY() == 0)
            addEffect(Effect.ZERO_VERTICAL_SPEED);
        if(isAttacking)
            addEffect(Effect.IS_ATTACKING);
        if(attackingRightAnimator.hasPlayedAnimationOnce() || attackingLeftAnimator.hasPlayedAnimationOnce())
            addEffect(Effect.ATTACKING_ANIMATION_PLAYED);
    }