Commit 6b7ace3d authored by Killian LUCAS's avatar Killian LUCAS
Browse files

update of conception.adoc

parent 78e0a106
...@@ -1402,19 +1402,62 @@ package utilitary{ ...@@ -1402,19 +1402,62 @@ package utilitary{
package request{ package request{
enum GameRequestType{ enum GameRequestType{
JOIN JOIN
FINISH_PHASE
PLAY_CARDS
PLACE_JETONS
RESIST
GIVE_UP
} }
abstract class GameRequest{ class GameFinishPhaseRequest{
+ {abstract} getType() : GameRequestType - phase : Phase
+ getPhase() : Phase
+ getType() : GameRequestType
+ equals(obj : Object) : boolean
}
class GameGiveUpRequest{
+ getType() : GameRequestType
} }
class GameJoinRequest{ class GameJoinRequest{
- playerId : String - inGameId : Integer
- id : Integer + getInGameId() : Integer
+ getPlayerID() : String
+ getId() : Integer
+ getType() : GameRequestType + getType() : GameRequestType
+ equals(obj : Object) : boolean
} }
class GamePlaceJetonsRequest{
- jetonList : PlacedJeton[*]
+ getJetonList() : PlacedJeton[*]
+ getType() : GameRequestType
+ equals(obj : Object) : boolean
}
class GamePlayCardsRequest{
- cards : Card[*]
+ getCards() : Card[*]
+ getType() : GameRequestType
+ equals(obj : Object) : boolean
}
abstract class GameRequest{
# user : User
+ {abstract} getType() : GameRequestType
+ getUser() : User
+ equals(obj : Object) : boolean
}
class GameResistRequest{
- number : Integer
+ getNumber() : Integer
+ getType() : GameRequestType
+ equals(obj : Object) : boolean
}
GameRequest <|-- GameJoinRequest
GameRequest <|-- GameResistRequest
GameRequest <|-- GamePlayCardsRequest
GameRequest <|-- GamePlaceJetonsRequest
GameRequest <|-- GameGiveUpRequest
GameRequest <|-- GameFinishPhaseRequest
} }
class Conversion{ class Conversion{
- {static} DATABASE : NotAloneDatabase - {static} DATABASE : NotAloneDatabase
...@@ -1429,6 +1472,10 @@ package utilitary{ ...@@ -1429,6 +1472,10 @@ package utilitary{
+ {static} toCardList(tCards : TCard[*]) : Card[*] + {static} toCardList(tCards : TCard[*]) : Card[*]
+ {static} toPlaceCardList(tPlaceCards : TCards[*]) : PlaceCard[*] + {static} toPlaceCardList(tPlaceCards : TCards[*]) : PlaceCard[*]
+ {static} toCardName(name : String) : CardName[*] + {static} toCardName(name : String) : CardName[*]
+ {static} toTCard(card : PlaceCard) : TCard
+ {static} toTCard(card : SurvivalCard) : TCard
+ {static} toTCard(card : TrackingCard) : TCard
+ {static} toTCard(card : Card) : TCard
+ {static} toJetonSymbol(s : String) : JetonSymbol + {static} toJetonSymbol(s : String) : JetonSymbol
+ {static} toPlacedJeton(tPlacedJeton : TPlacedJeton) : PlacedJeton + {static} toPlacedJeton(tPlacedJeton : TPlacedJeton) : PlacedJeton
+ {static} toPlacedJetonList(tPlacedJetons : TPlacedJeton[*]) : PlacedJeton[*] + {static} toPlacedJetonList(tPlacedJetons : TPlacedJeton[*]) : PlacedJeton[*]
...@@ -1437,6 +1484,22 @@ package utilitary{ ...@@ -1437,6 +1484,22 @@ package utilitary{
+ {static} toPlaceList(strings : String[*]) : Place[*] + {static} toPlaceList(strings : String[*]) : Place[*]
+ {static} toTPairType(name : String) : TPairType + {static} toTPairType(name : String) : TPairType
+ {static} toAction(tAction : TAction) : Action + {static} toAction(tAction : TAction) : Action
+ {static} toUser(tPlayer : TPlayer) : User
+ {static} toTScore(board : Board) : TScore
+ {static} toTPlacedCard(placeCard : PlaceCard, place : Place) : TPlacedCard
+ {static} toTPlacedJetonList(placedJetons : PlacedJeton[*]) : TPlacedJeton[*]
+ {static} toTJeton(symbol : JetonSymbol) : TJeton
+ {static} toTBalise(planetPawn : PlanetPawn) : PlanetPawn
+ {static} toTPlanet(planet : Planet) : TPlanet
+ {static} toTCardReserve(pair : Pair<PlaceCard, Integer>) : TCardReserve
+ {static} toTCardReserveList(reserve : Reserve) : TCardReserve[*]
+ {static} toTGameVariable(variables : GameRoundVariables) : TGameVariable[*]
+ {static} toTCreature(creature : Creature) : TCreature
+ {static} toTTraque(traque : Traque) : TTraque
+ {static} toTTraquePlaceCardPlayedVisible(traque : Traque) : TTraque
+ {static} toTHand(traque : Traque) : THand
+ {static} toTHand(creature : Creature) : THand
+ {static} toTHand(player : Player) : THand
} }
class Pair{ class Pair{
- key : T - key : T
...@@ -1447,7 +1510,8 @@ package utilitary{ ...@@ -1447,7 +1510,8 @@ package utilitary{
+ toString() : String + toString() : String
} }
} }
GameRequest <|-- GameJoinRequest
.... ....
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment