Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anthony ROZEN
Not Alone
Commits
8e705dbe
Commit
8e705dbe
authored
Dec 04, 2020
by
Antoine Guérin
Browse files
correction des erreurs
parent
bda658c3
Changes
2
Show whitespace changes
Inline
Side-by-side
not-alone-doc/pom.xml
View file @
8e705dbe
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<configuration>
<configuration>
<backend>
pdf
</backend>
<backend>
pdf
</backend>
<!--
<!--
<sourceHighlighter>
coderay
</sourceHighlighter>
<sourceHighlighter>
rouge
</sourceHighlighter>
-->
-->
<attributes>
<attributes>
<sourceHighlighter>
coderay
</sourceHighlighter>
<sourceHighlighter>
coderay
</sourceHighlighter>
...
...
not-alone-doc/src/doc/asciidoc/_sections/conception.adoc
View file @
8e705dbe
:
source
-
highlighter
:
rouge
=
Conception
d
é
taill
é
e
=
Conception
d
é
taill
é
e
//:
source
-
highlighter
:
rouge
==
Game
Server
[
source
,
java
]
----
class
Klass
{
String
field
;
}
----
[
source
,
ocl
]
----
context
Klass
inv
:
field
->
select
()
----
.
GameSever
[
plantuml
]
....
interface
GameServer
{
createGame
(
numberOfPlayers
:
Integer
):
Integer
join
(
gameId
:
Integer
):
Integer
}
package
game
{
class
"GameServerController"
as
controller
{
createGame
(
numberOfPlayers
:
Integer
):
Integer
join
(
gameId
:
Integer
):
Integer
}
class
"Game
\n
[Thread]"
as
game
{
id
:
Integer
{
id
}
numberOfPlayers
:
Integer
}
class
"Player"
as
player
{
id
:
Integer
{
id
}
}
GameServer
<|--
controller
controller
*-
"[*] games"
game
:
\
t
\
t
\
t
game
*--
"[0..7] players"
player
}
note
right
of
game
:
Uncompleted
!
....
[
plantuml
]
....
state
Game
{
[*]
-->
Created
Created
->
Started
:
start
()
Started
->
Phase1
:
\
t
Phase1
-->
[*]
}
note
right
of
Game
:
Uncompleted
!
....
===
Op
é
rations
du
GameServerController
.
Create
Game
[
source
,
OCL
]
----
GameServerController
::
createGame
(
numberOfPlayers
:
Integer
):
Integer
pre
:
numberOfPlayers
>
1
and
numberOfPlayers
<=
7
post
:
self
.
games
->
exists
(
each
|
each
.
isOclNew
())
and
game
.
oclinState
(
Created
)
----
.
Join
Game
:
source
-
highlighter
:
rouge
[
source
,
OCL
]
----
GameServerController
::
join
(
gameId
:
Integer
):
Integer
pre
:
self
.
games
->
exists
(
each
|
each
.
id
=
gameId
)
post
:
let
game
=
self
.
games
->
select
(
id
=
gameId
)->
first
()
in
game
.
players
->
exists
(
each
|
each
.
isOclNew
())
----
.
Start
Game
[
plantuml
]
----
partition
Game
::
run
()
{
start
while
(
enough
players
?)
:
JoinRequest
<
:
handleRequest
();
endwhile
:
Game
Start
>
stop
}
----
==
ServeurNotAlone
==
ServeurNotAlone
...
@@ -150,6 +55,8 @@ note right of Game : Uncompleted!
...
@@ -150,6 +55,8 @@ note right of Game : Uncompleted!
===
Op
é
rations
du
ServeurNotAloneController
===
Op
é
rations
du
ServeurNotAloneController
.
Create
Game
.
Create
Game
[
source
,
OCL
]
[
source
,
OCL
]
----
----
...
@@ -175,7 +82,6 @@ post:
...
@@ -175,7 +82,6 @@ post:
.
Retirer
Pion
.
Retirer
Pion
[
source
,
OCL
]
[
source
,
OCL
]
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
----
----
context
:
ServeurNotAloneController
::
retirerPion
(
nbPion
:
Integer
)
context
:
ServeurNotAloneController
::
retirerPion
(
nbPion
:
Integer
)
pre
:
pre
:
...
@@ -184,7 +90,6 @@ post:
...
@@ -184,7 +90,6 @@ post:
self
.
pionVolonte
=
self
.
pionVolonte
@
pre
-
nbPion
self
.
pionVolonte
=
self
.
pionVolonte
@
pre
-
nbPion
----
----
.
Reprendre
Carte
.
Reprendre
Carte
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
[
source
,
OCL
]
[
source
,
OCL
]
----
----
context
:
ServeurNotAloneController
::
reprendreCarte
(
nbCarte
:
Integer
)
context
:
ServeurNotAloneController
::
reprendreCarte
(
nbCarte
:
Integer
)
...
@@ -195,7 +100,6 @@ post:
...
@@ -195,7 +100,6 @@ post:
----
----
.
Defausse
Carte
.
Defausse
Carte
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
[
source
,
OCL
]
[
source
,
OCL
]
----
----
context
:
ServeurNotAloneController
::
defausseCarte
(
card
:
CarteLieu
)
context
:
ServeurNotAloneController
::
defausseCarte
(
card
:
CarteLieu
)
...
@@ -207,7 +111,6 @@ post:
...
@@ -207,7 +111,6 @@ post:
.
Avancer
Pion
Assimilation
.
Avancer
Pion
Assimilation
[
source
,
OCL
]
[
source
,
OCL
]
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
----
----
context
:
ServeurNotAloneController
::
avancerPionAssimilation
()
context
:
ServeurNotAloneController
::
avancerPionAssimilation
()
pre
:
pre
:
...
@@ -217,7 +120,6 @@ post:
...
@@ -217,7 +120,6 @@ post:
----
----
.
Poser
Jeton
Creature
.
Poser
Jeton
Creature
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
[
source
,
OCL
]
[
source
,
OCL
]
----
----
context
:
ServeurNotAloneController
::
poserJetonCreature
(
card
:
CarteLieu
)
context
:
ServeurNotAloneController
::
poserJetonCreature
(
card
:
CarteLieu
)
...
@@ -228,7 +130,6 @@ post:
...
@@ -228,7 +130,6 @@ post:
----
----
. Poser Jeton Cible
. Poser Jeton Cible
//TODO est ce que le contexte est bien ServeurNotAloneController
[source,OCL]
[source,OCL]
----
----
ServeurNotAloneController::poserJetonCible(card1 : CarteLieu, card2 : CarteLieu)
ServeurNotAloneController::poserJetonCible(card1 : CarteLieu, card2 : CarteLieu)
...
@@ -239,7 +140,6 @@ post:
...
@@ -239,7 +140,6 @@ post:
----
----
.
Poser
Jeton
Artemia
.
Poser
Jeton
Artemia
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
[
source
,
OCL
]
[
source
,
OCL
]
----
----
ServeurNotAloneController
::
poserJetonArtemia
(
card
:
CarteLieu
)
ServeurNotAloneController
::
poserJetonArtemia
(
card
:
CarteLieu
)
...
@@ -250,7 +150,6 @@ post:
...
@@ -250,7 +150,6 @@ post:
----
----
. Recuperer Jeton
. Recuperer Jeton
//TODO est ce que le contexte est bien ServeurNotAloneController
[source,OCL]
[source,OCL]
----
----
ServeurNotAloneController::recupererJeton()
ServeurNotAloneController::recupererJeton()
...
@@ -261,7 +160,6 @@ post:
...
@@ -261,7 +160,6 @@ post:
----
----
.
Piocher
Carte
Traque
.
Piocher
Carte
Traque
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
[
source
,
OCL
]
[
source
,
OCL
]
----
----
ServeurNotAloneController
::
piocherCarteTraque
()
ServeurNotAloneController
::
piocherCarteTraque
()
...
@@ -270,7 +168,7 @@ post:
...
@@ -270,7 +168,7 @@ post:
----
----
.
Effet
.
Effet
//
TODO
est
ce
que
le
contexte
est
bien
ServeurNotAloneController
//
TODO
[
source
,
OCL
]
[
source
,
OCL
]
----
----
ServeurNotAloneController
::
effet
(
Carte
)
:
String
ServeurNotAloneController
::
effet
(
Carte
)
:
String
...
...
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