예제 #1
0
 /** returns a copy of the <i>double</i> value stored in <i>strength</i> */
 public double getStrength() {
   return strength.get();
 }
예제 #2
0
 /** returns a copy of the <i>double</i> value stored in <i>health</i> */
 public double getHealth() {
   return health.get();
 }
예제 #3
0
 /** returns a copy of the <i>double</i> value stored in <i>speed</i> */
 public double getSpeed() {
   return speed.get();
 }
예제 #4
0
 /** applies <i>changeToValue</i> to the <i>health</i> attribute. */
 public void adjustHealth(double changeToValue) {
   health.set(health.get() + changeToValue);
 }