Original: Such a woman could move between the roles of a mistress and a courtesan depending on her situation and environment.
Simplified: Such a woman could move between the roles of a mistress and a courtesan.