title: Easy way to Increment private variables?
body: <p>I was wondering if there was an easier way to increment another class's private variables. Here is how I generally would go about it:</p>
  
  <p>If I only need to do this rarely in my code:</p>
  
  <pre><code>pc.setActionsCurrent(pc.getActionsCurrent()-1);
  </code></pre>
  
  <p>If I need to do lots of incrementing, I would just make a special setter:</p>
  
  <pre><code>//In the PC class
  public void spendAction(){
      this.actionsCurrent--;
  }
  
  //In the incrementing Class
  pc.spendAction();
  </code></pre>
  
  <p>Is there a better way to go about this? If the variable were public</p>
  
  <pre><code>pc.actionsCurrent--;
  </code></pre>
  
  <p>would be enough, and I can't help but feel I'm over-complicating things.</p>