コード例 #1
0
ファイル: Follow.java プロジェクト: Cocanuta/Marble
 public boolean nofollow(MOB mob, boolean errorsOk, boolean quiet) {
   if (mob == null) return false;
   Room R = mob.location();
   if (R == null) return false;
   if (mob.amFollowing() != null) {
     CMMsg msg =
         CMClass.getMsg(
             mob,
             mob.amFollowing(),
             null,
             CMMsg.MSG_NOFOLLOW,
             quiet ? null : "<S-NAME> stop(s) following <T-NAMESELF>.");
     // no room OKaffects, since the damn leader may not be here.
     if (mob.okMessage(mob, msg)) R.send(mob, msg);
     else return false;
   } else if (errorsOk) mob.tell("You aren't following anyone!");
   return true;
 }