Commit 230ba27c authored by Quentin DRUAULT-AUBIN's avatar Quentin DRUAULT-AUBIN

[IHM Table] Refacto + comments

parent 5970843b
......@@ -15,54 +15,95 @@ import java.rmi.server.UID;
*/
public class IHMTableFacade implements IIHMTableToIHMMain, IIHMTableToData {
/**
* The message of the exception thrown by unimplemented methods.
*/
public static final String EXCEPTION_MESSAGE = "Not supported yet";
/**
* Replay a saved game.
* @param id : id of the game.
*/
@Override
public void showSavedGameWithId(int id) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Launch a new game.
*/
@Override
public void createInGameGUI() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Pause a playing saved game.
*/
@Override
public void stopTimer() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Join a current game.
* @param guid : id of the game.
*/
@Override
public void showGame(UID guid) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Notify that the two players are ready to play.
*/
@Override
public void notifyGameReady() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Display a message in the chat.
* @param message : the message to display.
*/
@Override
public void printMessage(String message) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Show on the board if the shot has hit or not a ship.
* @param coord : the coordinates of the hit.
* @param bool : true if a ship is hit.
*/
@Override
public void feedBack(Coordinate coord, boolean bool) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Display the new stats of the player.
* @param stGame : ths stats
*/
@Override
public void finishGame(StatGame stGame) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* The opponent has quit the game.
*/
@Override
public void opponentHasLeftGame() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
/**
* Connection has been lost with your opponent.
*/
@Override
public void connectionLostWithOpponent() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
throw new UnsupportedOperationException(EXCEPTION_MESSAGE);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment