Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandre Ducarne
ai12-othello
Commits
b8deb536
Commit
b8deb536
authored
Nov 07, 2019
by
Alexandre Ducarne
Browse files
Merge branch 'feature/game/init' into 'int/v1'
Feature/game/init See merge request
!9
parents
9a7f115a
2b51110b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/baleine/common/interfaces/client/IDataToGame.java
0 → 100644
View file @
b8deb536
package
baleine.common.interfaces.client
;
import
baleine.common.dataModel.Board
;
import
baleine.common.dataModel.GameHeavy
;
import
baleine.common.dataModel.GameLight
;
import
baleine.common.dataModel.Message
;
import
baleine.common.dataModel.UserLight
;
import
javafx.scene.Scene
;
public
interface
IDataToGame
{
/**
* Updates the game board using the given board information
*
* @param b : Board information to display
*/
public
void
updateInterface
(
Board
b
);
/**
* Displays a confirmation popup asking if the user wants to save the game
*/
public
void
displaySaveConfirmation
();
/**
* Shows a new message into the chat panel
*
* @param m : Message to display
*/
public
void
displayMessage
(
Message
m
);
/**
* Shows the specified player profile panel
*
* @param usr : User to display the profil from
*/
public
void
displayPlayerProfile
(
UserLight
usr
);
/**
* Init method of the game IHM, <b>for the players</b>. Displays the game main
* panel.
*
* @param gl : Game data
* @param sc : JavaFX Scene (shared with IHM-MAIN module)
*/
public
void
getGameScreen
(
GameLight
gl
,
Scene
sc
);
/**
* Init method of the game IHM, <b>for the spectators</b>. Displays the game
* main panel.
*
* @param gl : Game data
* @param sc : JavaFX Scene (shared with IHM-MAIN module)
*/
public
void
beginGameDisplay
(
GameLight
gl
,
Scene
sc
);
/**
* Displays a message into the chat panel that the specified user joined the
* game as a spectator.
*
* @param spectator : New spectator
*/
public
void
displayUserJoinedMessage
(
GameLight
spectator
);
/**
* Replays the specified game
*
* @param game : Game to replay
* @param sc : JavaFX Scene (shared with IHM-MAIN module)
*/
public
void
replayGame
(
GameHeavy
game
,
Scene
scene
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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