- Commands now have standard 0-parameter execute method - Commands are created by CommandFactory #story[1094]main
parent
40a3ed1bb0
commit
c83442761c
@ -0,0 +1,14 @@
|
||||
package mock.model.commandFactory;
|
||||
|
||||
import mock.model.MockBoat;
|
||||
import mock.model.MockRace;
|
||||
|
||||
/**
|
||||
* Allows RaceLogic to control MockRace state according to the Command pattern
|
||||
*/
|
||||
public interface Command {
|
||||
/**
|
||||
* Execute command - standard method name in pattern
|
||||
*/
|
||||
void execute();
|
||||
}
|
||||
Loading…
Reference in new issue