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
Merge requests
!8
Feature/com/server classes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/com/server classes
feature/com/serverClasses
into
int/v1
Overview
2
Commits
1
Pipelines
0
Changes
24
Merged
Alexandre Ducarne
requested to merge
feature/com/serverClasses
into
int/v1
5 years ago
Overview
2
Commits
1
Pipelines
0
Changes
24
Expand
0
0
Merge request reports
Compare
int/v1
version 13
cf263f14
5 years ago
version 12
1b8d95f5
5 years ago
version 11
4e138795
5 years ago
version 10
f6685b85
5 years ago
version 9
f8fe7441
5 years ago
version 8
44cc26ec
5 years ago
version 7
03277ef4
5 years ago
version 6
e3faedab
5 years ago
version 5
4e5bcd6e
5 years ago
version 4
e80bfe5b
5 years ago
version 3
ae89aceb
5 years ago
version 2
d1369a8f
5 years ago
version 1
6f67b1fe
5 years ago
int/v1 (base)
and
latest version
latest version
7dad83a6
1 commit,
5 years ago
version 13
cf263f14
1 commit,
5 years ago
version 12
1b8d95f5
1 commit,
5 years ago
version 11
4e138795
1 commit,
5 years ago
version 10
f6685b85
6 commits,
5 years ago
version 9
f8fe7441
1 commit,
5 years ago
version 8
44cc26ec
3 commits,
5 years ago
version 7
03277ef4
3 commits,
5 years ago
version 6
e3faedab
2 commits,
5 years ago
version 5
4e5bcd6e
1 commit,
5 years ago
version 4
e80bfe5b
17 commits,
5 years ago
version 3
ae89aceb
1 commit,
5 years ago
version 2
d1369a8f
10 commits,
5 years ago
version 1
6f67b1fe
10 commits,
5 years ago
24 files
+
488
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
24
Search (e.g. *.vue) (Ctrl+P)
src/baleine/common/interfaces/client/IComToData.java
0 → 100644
+
117
−
0
Options
package
baleine.common.interfaces.client
;
import
java.util.ArrayList
;
import
java.util.UUID
;
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
;
/**
* This class is an interface which provides client methods to communicate from
* Com to Data modules.
*/
public
interface
IComToData
{
/**
* Send a user profile to the data module.
*
* @param user : the user to forward
*/
public
void
forwardPlayerProfile
(
UserLight
user
);
/**
* Add an authenticated player to local data.
*
* @param user : the user to add
*/
public
void
addAuthenticatedPlayer
(
UserLight
user
);
/**
* Receive the data from a game.
*
* @param user : the list of users of the game
*/
public
void
receiveGameData
(
ArrayList
<
UserLight
>
user
);
/**
* Add a new user to the list.
*
* @param user : the user to add to the list
*/
public
void
addNewUser
(
UserLight
user
);
/**
* Notify the data module that a new game has been created.
*
* @param newGameCreated : the game created
*/
public
void
notifyNewGame
(
GameLight
newGameCreated
);
/**
* Send a saved game to the data module.
*
* @param game : the game saved
* @param userId : the UUID of the user who saves the game
*/
public
void
sendGameSave
(
GameHeavy
game
,
UUID
userId
);
/**
* Receive a chat message.
*
* @param message : the message to receive
*/
public
void
receiveChatMessage
(
Message
message
);
/**
* Notify the data module that a user has been disconnected.
*
* @param user : the UUID of the disconnected user
*/
public
void
removeDisconnectedUser
(
UUID
user
);
/**
* Notify the data module that a new spectator has been added.
*
* @param spectator : the new spectator
*/
public
void
addSpectatorToGame
(
UserLight
spectator
);
/**
* Receive the answer to a game join request.
*
* @param isAccepted : the answer to the join request
* @param gameUUID : the UUID of the game to join
*/
public
void
receiveJoinRequestAnswer
(
boolean
isAccepted
,
UUID
gameUUID
);
/**
* Receive a join request.
*
* @param userProposingUUID : the UUID of the user wanting to join the game
* @param gameUUID : the UUID of the game to join
*/
public
void
receiveJoinRequest
(
UUID
userProposingUUID
,
UUID
gameUUID
);
/**
* Notify that the game is ended.
*
* @param game : the game ended
*/
public
void
notifyEndGame
(
GameLight
game
);
/**
* Notify the data module that the board has been updated.
*
* @param board : the board updated
*/
public
void
updateBoard
(
Board
board
);
/**
* End a game in the data modue.
*
* @param endGameInfo : the game ended
*/
public
void
endGame
(
GameLight
endGameInfo
);
}
Loading