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
82c3a2bd
Commit
82c3a2bd
authored
Oct 17, 2017
by
Remi Di Vita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Communication/Facade' into 'develop'
Communication/facade See merge request
!5
parents
cde86426
3501f831
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
Battleship/nbactions.xml
Battleship/nbactions.xml
+10
-0
Battleship/src/main/java/com/utclo23/com/ComFacade.java
Battleship/src/main/java/com/utclo23/com/ComFacade.java
+47
-0
No files found.
Battleship/nbactions.xml
View file @
82c3a2bd
...
@@ -23,4 +23,14 @@
...
@@ -23,4 +23,14 @@
<jpda.listen>
true
</jpda.listen>
<jpda.listen>
true
</jpda.listen>
</properties>
</properties>
</action>
</action>
<action>
<actionName>
CUSTOM-sonarbuild
</actionName>
<displayName>
sonarbuild
</displayName>
<goals>
<goal>
sonar:sonar
</goal>
</goals>
<activatedProfiles>
<activatedProfile>
sonar
</activatedProfile>
</activatedProfiles>
</action>
</actions>
</actions>
Battleship/src/main/java/com/utclo23/com/ComFacade.java
0 → 100644
View file @
82c3a2bd
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package
com.utclo23.com
;
import
com.utclo23.data.structure.PublicUser
;
import
com.utclo23.data.structure.Ship
;
import
com.utclo23.data.structure.Mine
;
import
com.utclo23.data.structure.StatGame
;
import
java.net.InetAddress
;
import
java.util.HashMap
;
/**
*
* @author thibault
*/
public
class
ComFacade
{
private
HashMap
<
UID
,
InetAddress
>
UID_IP
;
void
sendShipsToEnnemy
(
Ship
[]
listShips
,
PublicUser
dest
){
}
void
notifyUserSignedIn
(
PublicUser
user
){
}
void
notifyUserSignedOut
(
PublicUser
user
){
}
void
notifyNewMessage
(
Message
message
){
}
void
notifyNewCoordinates
(
Mine
mine
,
PublicUser
[]
recipient
){
}
void
notifyNewGame
(
StatGame
game
){
}
void
connectionToGame
(
StatGame
game
){
}
void
leaveGame
(
PublicUser
user
){
}
void
sendDiscovery
(){
}
}
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