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 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 command object corresponding to action
*/ */
public static Command createCommand(MockRace race, MockBoat boat, BoatActionEnum action) { public static Command createCommand(MockRace race, MockBoat boat, BoatActionEnum action) {
switch(action) { switch(action) {

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

Loading…
Cancel
Save