Class DeathmatchEngine
java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchEngine
- All Implemented Interfaces:
TurnListener
this is the internal class which handles an active deathmatch session.
-
Constructor Summary
ConstructorsConstructorDescriptionDeathmatchEngine(Player player, DeathmatchInfo deathmatchInfo, EventRaiser raiser) Creates a new ScriptAction to handle the deathmatch logic. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidonTurnReached(int currentTurn) This method is called when the turn number is reached.
-
Constructor Details
-
DeathmatchEngine
Creates a new ScriptAction to handle the deathmatch logic.- Parameters:
player- Player for whom this match is createddeathmatchInfo- Information about the place of the deathmatchraiser-
-
-
Method Details
-
initialize
protected void initialize() -
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-