|
|
|
@ -13,7 +13,7 @@ public class CommandFactory {
|
|
|
|
* @param race to receive command
|
|
|
|
* @param race to receive command
|
|
|
|
* @param boat to receive command in race
|
|
|
|
* @param boat to receive command in race
|
|
|
|
* @param action number to select command
|
|
|
|
* @param action number to select command
|
|
|
|
* @return
|
|
|
|
* @return returns a new command based on a Command ENUM
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static Command createCommand(MockRace race, MockBoat boat, BoatActionEnum action) {
|
|
|
|
public static Command createCommand(MockRace race, MockBoat boat, BoatActionEnum action) {
|
|
|
|
switch(action) {
|
|
|
|
switch(action) {
|
|
|
|
|