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 message
    `static IMessage` | `parseMessage​(java.lang.String msg)` | method which parses the message

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CommandFactory

          public CommandFactory()

  - ### 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

    - #### createMessage

          public static IMessage createMessage​(Command msgType,
                                               java.util.ArrayList<java.lang.String> params)

      method which creates the message
      Parameters:
        `msgType` - type of the message
        `params` - the split String in an ArrayList
      Returns:
        type of message