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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoints(int points)
Adds some DM points.static DeathmatchState
createFromQuestString(String questString)
Parses the questString.static DeathmatchState
createStartState(int level)
Creates a start state.long
void
Updates 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
-