Class DeathmatchState

java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchState

public class DeathmatchState extends Object
Manages the deathmatch state (which is stored in a quest slot).
Author:
hendrik
  • Constructor Details

    • DeathmatchState

      protected DeathmatchState()
  • Method Details

    • createStartState

      public static DeathmatchState createStartState(int level)
      Creates a start state.
      Parameters:
      level -
      Returns:
      start state
    • createFromQuestString

      public static DeathmatchState createFromQuestString(String questString)
      Parses the questString.
      Parameters:
      questString - quest string
      Returns:
      start state
    • addPoints

      public void addPoints(int points)
      Adds some DM points.
      Parameters:
      points - DM points
    • refreshTimestamp

      public void refreshTimestamp()
      Updates the time stamp.
    • getStateTime

      public long getStateTime()
    • toQuestString

      public String toQuestString()
      Returns the state as string which can be stored in the quest slot.
      Returns:
      quest string
    • toString

      public String toString()
      Overrides:
      toString in class Object