Class DeathmatchState
java.lang.Object
games.stendhal.server.maps.deathmatch.DeathmatchState
Manages the deathmatch state (which is stored in a quest slot).
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoints(int points)Adds some DM points.static DeathmatchStatecreateFromQuestString(String questString)Parses the questString.static DeathmatchStatecreateStartState(int level)Creates a start state.longvoidUpdates the time stamp.Returns the state as string which can be stored in the quest slot.toString()
-
Constructor Details
-
DeathmatchState
protected DeathmatchState()
-
-
Method Details
-
createStartState
Creates a start state.- Parameters:
level-- Returns:
- start state
-
createFromQuestString
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
Returns the state as string which can be stored in the quest slot.- Returns:
- quest string
-
toString
-