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

update of conception.adoc

parent 78e0a106
......@@ -1402,19 +1402,62 @@ package utilitary{
package request{
enum GameRequestType{
JOIN
FINISH_PHASE
PLAY_CARDS
PLACE_JETONS
RESIST
GIVE_UP
}
abstract class GameRequest{
+ {abstract} getType() : GameRequestType
class GameFinishPhaseRequest{
- phase : Phase
+ getPhase() : Phase
+ getType() : GameRequestType
+ equals(obj : Object) : boolean
}
class GameGiveUpRequest{
+ getType() : GameRequestType
}
class GameJoinRequest{
- playerId : String
- id : Integer
+ getPlayerID() : String
+ getId() : Integer
- inGameId : Integer
+ getInGameId() : Integer
+ 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{
- {static} DATABASE : NotAloneDatabase
......@@ -1429,6 +1472,10 @@ package utilitary{
+ {static} toCardList(tCards : TCard[*]) : Card[*]
+ {static} toPlaceCardList(tPlaceCards : TCards[*]) : PlaceCard[*]
+ {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} toPlacedJeton(tPlacedJeton : TPlacedJeton) : PlacedJeton
+ {static} toPlacedJetonList(tPlacedJetons : TPlacedJeton[*]) : PlacedJeton[*]
......@@ -1437,6 +1484,22 @@ package utilitary{
+ {static} toPlaceList(strings : String[*]) : Place[*]
+ {static} toTPairType(name : String) : TPairType
+ {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{
- key : T
......@@ -1447,7 +1510,8 @@ package utilitary{
+ 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