예제 #1
0
 @Override
 public Movement execute(Character user) {
   if (user.human()) {
     if (user.location().name == "Showers") {
       Global.gui()
           .message("It's a bit dangerous, but a shower sounds especially inviting right now.");
     } else if (user.location().name == "Pool") {
       Global.gui()
           .message("There's a jacuzzi in the pool area and you decide to risk a quick soak.");
     }
   }
   user.state = State.shower;
   user.delay(1);
   return Movement.bathe;
 }
예제 #2
0
 @Override
 public boolean usable(Character user) {
   return user.location().bath();
 }