Class RockPaperScissors
java.lang.Object
client.RockPaperScissors
猜拳小遊戲(Rock-Paper-Scissors)的伺服器端會話狀態機。
每場遊戲最多 10 回合:玩家出招後由 Randomizer 產生伺服器隨機結果,
勝者晉級下一回合,負者或逾時結束;reward 依勝出回合數從
4031332+round 發放對應獎品道具,未贏則退還部分費用(500 楓幣);
透過 CField.getRPSMode(byte, int, int, int) 發送對應封包;
由 MapleCharacter 的 rps 欄位持有。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleananswer(MapleClient c, int answer) final voidfinal booleanfinal voidfinal boolean
-
Constructor Details
-
RockPaperScissors
-
-
Method Details
-
answer
-
timeOut
-
nextRound
-
reward
-
dispose
-