Class DeathmatchEngine

java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchEngine
All Implemented Interfaces:
TurnListener

public class DeathmatchEngine extends Object implements TurnListener
this is the internal class which handles an active deathmatch session.
  • Constructor Details

    • DeathmatchEngine

      public DeathmatchEngine(Player player, DeathmatchInfo deathmatchInfo, EventRaiser raiser)
      Creates a new ScriptAction to handle the deathmatch logic.
      Parameters:
      player - Player for whom this match is created
      deathmatchInfo - Information about the place of the deathmatch
      raiser -
  • Method Details

    • initialize

      protected void initialize()
    • onTurnReached

      public void onTurnReached(int currentTurn)
      Description copied from interface: TurnListener
      This method is called when the turn number is reached.
      Specified by:
      onTurnReached in interface TurnListener
      Parameters:
      currentTurn - current turn number