Class RockPaperScissors

java.lang.Object
client.RockPaperScissors

public class RockPaperScissors extends Object
猜拳小遊戲(Rock-Paper-Scissors)的伺服器端會話狀態機。

每場遊戲最多 10 回合:玩家出招後由 Randomizer 產生伺服器隨機結果, 勝者晉級下一回合,負者或逾時結束;reward 依勝出回合數從 4031332+round 發放對應獎品道具,未贏則退還部分費用(500 楓幣); 透過 CField.getRPSMode(byte, int, int, int) 發送對應封包; 由 MapleCharacterrps 欄位持有。

  • Constructor Details

    • RockPaperScissors

      public RockPaperScissors(MapleClient c, byte mode)
  • Method Details

    • answer

      public final boolean answer(MapleClient c, int answer)
    • timeOut

      public final boolean timeOut(MapleClient c)
    • nextRound

      public final boolean nextRound(MapleClient c)
    • reward

      public final void reward(MapleClient c)
    • dispose

      public final void dispose(MapleClient c)