예제 #1
0
 /**
  * This method calls the changeWeapon method of the object touching this and gives it a new weapon
  */
 public void pickedUp(Moveable target) {
   super.pickedUp(target);
   ((Offensive) target).changeWeapon(new DefaultWeapon(target, false), true);
 }