示例#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);
 }