public class MovesCommandFactory extends Factory
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,ICommandDirector> |
directors |
Constructor and Description |
---|
MovesCommandFactory()
Creates a GamesCommandFactory.
|
Modifier and Type | Method and Description |
---|---|
ICommand |
GetCommand(java.lang.StringBuilder param,
NetworkCookie cookie,
java.lang.String object)
Gets the necessary command from the provided data.
|
private java.util.Map<java.lang.String,ICommandDirector> directors
public ICommand GetCommand(java.lang.StringBuilder param, NetworkCookie cookie, java.lang.String object) throws InvalidFactoryParameterException
Factory
GetCommand
in class Factory
param
- The file path from the URL provided to the server.object
- The serialized object.InvalidFactoryParameterException
- Thrown if there isn't a command associated with param.