Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ai12-othello
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandre Ducarne
ai12-othello
Commits
2b51110b
Commit
2b51110b
authored
5 years ago
by
Thomas
Browse files
Options
Downloads
Patches
Plain Diff
Added IDataToGame interface
parent
9a7f115a
No related branches found
No related tags found
9 merge requests
!87
V3 (somehow)
,
!58
Release v2
,
!57
Release v2
,
!45
Revert "Merge branch 'fix/feature/multicastToOtherUsers' into 'develop'"
,
!44
Fix/feature/multicast to other users
,
!18
WIP: Release 1
,
!17
Feature/com/websockets
,
!10
Added IDataToGame interface
,
!9
Feature/game/init
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/baleine/common/interfaces/client/IDataToGame.java
+70
-0
70 additions, 0 deletions
src/baleine/common/interfaces/client/IDataToGame.java
with
70 additions
and
0 deletions
src/baleine/common/interfaces/client/IDataToGame.java
0 → 100644
+
70
−
0
View file @
2b51110b
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
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment