Package pacManReloaded.common
Class CommandFactory
- java.lang.Object
-
- pacManReloaded.common.CommandFactory
-
public class CommandFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommandFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IMessage
createMessage(Command msgType, java.util.ArrayList<java.lang.String> params)
method which creates the messagestatic IMessage
parseMessage(java.lang.String msg)
method which parses the message
-
-
-
Method Detail
-
parseMessage
public static IMessage parseMessage(java.lang.String msg)
method which parses the message- Parameters:
msg
- message which gets parsed- Returns:
- the type of the message
-
-