Class MapleSnowball
java.lang.Object
server.events.MapleEvent
server.events.MapleSnowball
滾雪球(Snowball Event)小遊戲事件,繼承自
MapleEvent。
本類別管理雙隊滾雪球對抗賽,維護兩個 MapleSnowball.MapleSnowballs 實例(下方隊 0 與上方隊 1):
startEvent()廣播開始封包並讓雪球進入可見、可擊狀態。- 靜態方法
MapleSnowballs.hitSnowball處理玩家點擊事件:依玩家座標 Y 判斷隊伍, 命中雪球使其前進;抵達 255/511/767 為分段推進,抵達 899 時觸發勝利廣播、 發放MapleEvent.givePrize(MapleCharacter)獎勵並傳回所有玩家。 - 擊倒雪人(
snowmanhp歸零)會對對方隊伍施加MapleDisease.SEDUCE異常並 使對方雪球 10 秒內不可擊中。
巢狀靜態類別 MapleSnowballs 持有單顆雪球的位置、可見性、可擊中旗標、雪人 HP
與 snowmanSchedule 排程,並提供 MapleSnowball.MapleSnowballs.broadcast(MapleMap, int) 向地圖內玩家發送封包。
對應 MapleEventType.滾雪球 的地圖(109060000)。
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class MapleEvent
channel, isRunning, playerCount, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinished(MapleCharacter chr) getSnowBall(int teamz) voidmakeSnowBall(int teamz) voidreset()voidresetSnowBall(int teamz) voidvoidunreset()Methods inherited from class MapleEvent
broadcast, getChannelServer, getMap, getType, givePrize, incrementPlayerCount, isRunning, mapLoad, onMapLoad, onStartEvent, scheduleEvent, setEvent, warpBack
-
Constructor Details
-
MapleSnowball
-
-
Method Details
-
finished
- Specified by:
finishedin classMapleEvent
-
unreset
public void unreset()- Overrides:
unresetin classMapleEvent
-
reset
public void reset()- Overrides:
resetin classMapleEvent
-
startEvent
public void startEvent()- Specified by:
startEventin classMapleEvent
-
resetSnowBall
public void resetSnowBall(int teamz) -
makeSnowBall
public void makeSnowBall(int teamz) -
getSnowBall
-