Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lo23-project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quentin DRUAULT-AUBIN
lo23-project
Commits
230ba27c
Commit
230ba27c
authored
Oct 18, 2017
by
Quentin DRUAULT-AUBIN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IHM Table] Refacto + comments
parent
5970843b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
10 deletions
+51
-10
Battleship/src/main/java/com/utclo23/ihmtable/IHMTableFacade.java
...ip/src/main/java/com/utclo23/ihmtable/IHMTableFacade.java
+51
-10
No files found.
Battleship/src/main/java/com/utclo23/ihmtable/IHMTableFacade.java
View file @
230ba27c
...
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment