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