Skip to content
Snippets Groups Projects
Commit 2b51110b authored by Thomas's avatar Thomas
Browse files

Added IDataToGame interface

parent 9a7f115a
No related branches found
No related tags found
9 merge requests!87V3 (somehow),!58Release v2,!57Release v2,!45Revert "Merge branch 'fix/feature/multicastToOtherUsers' into 'develop'",!44Fix/feature/multicast to other users,!18WIP: Release 1,!17Feature/com/websockets,!10Added IDataToGame interface,!9Feature/game/init
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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment