In one of my projects, I had to name some variables and functions that belong to the person using my app. I named them
getUserInventory() and so on. I named them like that cause there were variables and functions that belonged to other persons, like
Now, I have a model class named
User, which contains account information for a specific user. Like other variables and functions, this model can belong to the person using my app, as well as his/her opponent and ally. If I follow previous conventions, I have to name them
getAllyUser() etc, which I don't like, specially the
What strategy should I follow, assuming I can't change the names of the models, but only the prefixes (user-, opponent-, ally-)?