Fixed documentation bugs not relevant to story.

main
Connor Taylor-Brown 9 years ago
parent 848edfc6a4
commit b97bfe62a6

@ -13,7 +13,7 @@ public class CommandFactory {
* @param race to receive command
* @param boat to receive command in race
* @param action number to select command
* @return
* @return command object corresponding to action
*/
public static Command createCommand(MockRace race, MockBoat boat, BoatActionEnum action) {
switch(action) {

@ -30,19 +30,15 @@ public class ControllerServer extends Observable implements Runnable {
* Last received boat action
*/
private BoatActionEnum action;
/**
*
*/
private RaceLogic rc;
/**
* Initialise server-side controller with live client socket
* @param socket to client
* @param race logic loop observing controls
*/
public ControllerServer(Socket socket, RaceLogic rc) {
public ControllerServer(Socket socket, RaceLogic race) {
this.socket = socket;
this.rc = rc;
this.addObserver(rc);
this.addObserver(race);
try {
this.inputStream = new DataInputStream(this.socket.getInputStream());
} catch (IOException e) {

Loading…
Cancel
Save