Package pacManReloaded.common.messages
Class MapMessage
- java.lang.Object
-
- pacManReloaded.common.messages.MapMessage
-
-
Constructor Summary
Constructors Constructor Description MapMessage(Command commandType, java.lang.String size, java.lang.String walls, java.lang.String spawn, java.lang.String powerballs, java.lang.String balls, java.lang.String gate)Constructor of the class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetParamValueBalls()"getter" for the value of the parametersjava.lang.StringgetParamValueGate()"getter" for the value of the parametersjava.lang.StringgetParamValuePowerBalls()"getter" for the value of the parametersjava.lang.StringgetParamValueSize()size of the parameterjava.lang.StringgetParamValueSpawn()"getter" for the value of the parametersjava.lang.StringgetParamValueWalls()"getter" for the value of the parametersCommandgetType()"getter" for the type of the commandjava.lang.StringtoString()the to String method, forms the message into a string, seperated by "|"
-
-
-
Constructor Detail
-
MapMessage
public MapMessage(Command commandType, java.lang.String size, java.lang.String walls, java.lang.String spawn, java.lang.String powerballs, java.lang.String balls, java.lang.String gate)
Constructor of the class- Parameters:
commandType- type of the command
-
-
Method Detail
-
getParamValueWalls
public java.lang.String getParamValueWalls()
"getter" for the value of the parameters- Returns:
- walls
-
getParamValueGate
public java.lang.String getParamValueGate()
"getter" for the value of the parameters- Returns:
- gate
-
getParamValueSpawn
public java.lang.String getParamValueSpawn()
"getter" for the value of the parameters- Returns:
- spawn
-
getParamValuePowerBalls
public java.lang.String getParamValuePowerBalls()
"getter" for the value of the parameters- Returns:
- powerballs
-
getParamValueSize
public java.lang.String getParamValueSize()
size of the parameter- Returns:
- the size of the parameter
-
getParamValueBalls
public java.lang.String getParamValueBalls()
"getter" for the value of the parameters- Returns:
- balls
-
getType
public Command getType()
"getter" for the type of the command
-
toString
public java.lang.String toString()
the to String method, forms the message into a string, seperated by "|"- Overrides:
toStringin classjava.lang.Object- Returns:
- string which contains the command type and the parameter Value seperated by a "|"
-
-