Ok, can you give a bit more context? What to you do in the rock class?
And yes, if you need to have the new and current values and they are either held by the player class or are based on values in the player class, you probably need to pass it by reference.