Commit 78e0a106 authored by Killian LUCAS's avatar Killian LUCAS
Browse files

update of conception.adoc

parent 6ac80c3e
......@@ -56,11 +56,11 @@ class Room{
- sendStartPhase(idPlayer : Integer, tPhase : TPhase, description : TDescription )
- sendDescription(idPlayer : Integer, description : TDescription )
- sendGameIsFinished(winner : TPlayerTeam )
- inGameIdToUser(id : Integer ) : User
- inGameIdToUser(user : User ) : Integer
- playersToIdNamePairList(user : User ) : Pair<Integer, String>[*]
- playerToIdNamePair(inGameId : Integer ) <Pair<Integer, String>
- userIsInRoom(user : User ) boolean
+ inGameIdToUser(id : Integer ) : User
+ inGameIdToUser(user : User ) : Integer
+ playersToIdNamePairList(user : User ) : (Pair<Integer, String>)[*]
+ playerToIdNamePair(inGameId : Integer ) <Pair<Integer, String>
+ userIsInRoom(user : User ) boolean
}
......@@ -103,7 +103,7 @@ class Room{
- gameRoundVariables : GameRoundVariables
- initializePlayer(playersId : Integer[*], creatureId : Integer)
- initializePlayer(players : Pair<Integer, String>[*], creatureId : Integer)
- initializePlayer(players : (Pair<Integer, String>)[*], creatureId : Integer)
- initializeReserve(playerNumber : Integer)
- initializeSurvivalCardPioche()
- initializeTrackingCardPioche()
......@@ -535,42 +535,32 @@ package action{
class ActionAssociateCardNamesToPlaces{
- cardNamePlaceMap : Map<CardName, Place>
+ getActionType() : ActionType
+ getCardNamePlaceMap : Map<CardName, Place>
+ getCardNamePlaceMap() : Map<CardName, Place>
+ equals(obj : Object) : boolean
}
class ActionChooseCard{
- cards : Card[*]
+ getCards : Card[*]
+ getActionType() : ActionType
+ equals(obj : Object) : boolean
}
class ActionChoosePlace{
- places : Place[*]
+ getPlaces() : Place[*]
+ getActionType() : ActionType
+ equals(obj : Object) : boolean
}
class ActionChoosePower{
- idPowerChosen : Integer
+ getIdPowerChosen() : Integer
+ getActionType() : ActionType
}
+ equals(obj : Object) : boolean
class ActionContainer{
- actions : Action[*]
+ add(action : Action) : Boolean
+ add(actions : Action[*]) : Boolean
+ doAction(action : Action) : Boolean
+ doAction(actions : Action[*]) : Boolean
+ isEmpty() : Boolean
}
class ActionMoveJeton{
- jeton : JetonSymbol
- place : Place
+ getJeton() : JetonSymbol
+ getPlace : Place
+ getActionType() : ActionType
}
class ActionMovePlayer{
......@@ -579,6 +569,8 @@ package action{
+ getIdPlayer() : Integer
+ getPlace() : Place
+ getActionType() : ActionType
+ equals(obj : Object) : boolean
}
class ActionSwapJeton{
......@@ -587,12 +579,16 @@ package action{
+ getJeton1() : JetonSymbol
+ getJeton2() : JetonSymbol
+ getActionType() : ActionType
+ equals(obj : Object) : boolean
}
class ActionTargetPlayer{
- idPlayer : Integer
+ getIdPlayer() : Integer
+ getActionType() : ActionType
+ equals(obj : Object) : boolean
}
enum ActionType{
......@@ -619,11 +615,9 @@ package action{
Action <|-- ActionChooseCard
Action <|-- ActionChoosePlace
Action <|-- ActionChoosePower
Action <|-- ActionMoveJeton
Action <|-- ActionMovePlayer
Action <|-- ActionSwapJeton
Action <|-- ActionTargetPlayer
ActionContainer "1" -- "*" Action
}
....
......@@ -674,6 +668,8 @@ package board{
- scoreTraque : Integer
- scoreCreature : Integer
- winner : PlayerTeam
- static(BASE_TRAQUE : Integer)
- static(BASE_CREATURE : Integer)
+ getScoreTraque() : Integer
+ getScoreCreature() : Integer
+ isFinish() : Boolean
......@@ -685,7 +681,7 @@ package board{
+ moveBackTraque(delta : Integer)
+ moveForwardCreature(delta : Integer)
+ moveBackCreature(delta : Integer)
+ equals(o : Object) : Boolean
+ equals(obj : Object) : Boolean
+ toString() : String
}
......@@ -706,6 +702,7 @@ package card{
}
abstract class Card{
# name : String
# CardName : String
# description : String
......@@ -713,12 +710,11 @@ package card{
+ getCardName() : String
+ getDescription() : String
+ getType() : String
+ equals(o : Object) : Boolean
+ {abstract} getType() : CardType
+ equals(obj : Object) : Boolean
+ toString() : String
+ hashCode() : Integer
}
enum BoardDistribution{
enum CardName{
ANTRE, JUNGLE, RIVIERE, PLAGE, ROVER, MARAIS, ABRI, EPAVE, SOURCE, ARTEFACT,
NEXUS, OASIS, FJORD, DOME, LABYRINTHE, MANGROVE, ARCHIPEL, POLE, FUNGI, PORTAIL,
......@@ -778,24 +774,6 @@ package card{
package jeton{
abstract class Jeton{
# powers : PowerType
+ getPowers() : PowerType
+ {abstract} getType() : JetonSymbol
}
class JetonArtemia{
+ getType() : JetonSymbol
}
class JetonCreature{
+ getType() : JetonSymbol
}
class JetonCible{
+ getType() : JetonSymbol
}
enum JetonSymbol{
CIBLE
ARTEMIA
......@@ -803,10 +781,11 @@ package jeton{
}
class PlacedJeton{
- jeton : Jeton
- jetonSymbol : JetonSymbol
- places : Place[*]
+ getJeton() : Jeton
+ getJetonSymbol() : Jeton
+ getPlaces() : Place[*]
+ equals(obj : object) : boolean
}
Jeton <|-- JetonArtemia
......@@ -831,7 +810,7 @@ package pioche{
+ draw(number : Integer) : T[*]
- throwAway(cards : T[*])
- throwAway(card : T)
+ getLastTrashCards(number : Integer) : T[*]
+ drawLastTrashCards(number : Integer) : T[*]
+ getTrash() : T[*]
+ getCards() : T[*]
}
......@@ -849,6 +828,7 @@ package planet{
+ isActive() : Boolean
+ getType() : PawnType
+ maxMovesInOneRound() : Integer
+ stateToInt() : Integer
}
enum PawnType{
SHIELD
......@@ -875,13 +855,9 @@ package planet{
- initializePlaces()
+ createPawn() : PlanetPawn
+ isValidPlacesForJeton(adjacentPlaces Place[*]) : boolean
+ placeToNumber(place : Place) : Integer
+ numberToPlace(number : Integer) : Place
+ isAdjacentPlaces(place1 : Integer, place2 : Integer) : Boolean
+ isAdjacentPlaces(place1 : Place, place2 : Place) : Boolean
+ isValidPlacesForJeton(adjacentPlacesCard : PlaceCard[*]) : Boolean
+ placeCardToPlace(card : PlaceCard) : Place
+ placeToPlaceCard(card : PlaceCard) : PlaceCard
+ placeToPlaceCard(place : Place) : PlaceCard
+ useCardLabyrinthe() : Boolean
+ useCardDome() : Boolean
+ useCardPole() : Boolean
......@@ -896,6 +872,10 @@ package planet{
+ isRevealedPlace(placeCard : PlaceCard)
}
class Planet{
- static(LABYRINTHE_NUMBER : Integer)
- static(DOME_NUMBER : Integer)
- static(POLE_NUMBER : Integer)
- mapPlaceToJetons : Map<Place, JetonSymbol[*]>
- blockedPlaces : Map<Place, Boolean>
- placeSurvivalCardMap : Map<Place, SurvivalCard[*]>
......@@ -904,6 +884,8 @@ package planet{
- planetPawn : PlanetPawn
- epaveUsedInTheRound : Boolean
+ getPlaceDistribution() : PlaceDistribution
+ getMapPlaceToJetons() : JetonSymbol[*]
+ getPlacedJetons() : PlacedJeton[*]
+ reset()
+ placeJeton(placedJeton : PlacedJeton)
+ findPlacesWhereJetonIs(symbol : JetonSymbol) : Place[*]
......@@ -911,7 +893,7 @@ package planet{
- removeJeton(symbol : JetonSymbol)
- blockPlaces(places : Place[*])
- blockPlaces(place : Place)
- blockPlaces(placeCard : PlaceCard)
- blockPlaces(placeCard : PlaceCard[*])
+ isBlockedPlace(card : PlaceCard) : Boolean
+ isJetonOnPlace(place : Place) : Boolean
+ isJetonOnPlace(placeCard : PlaceCard) : Boolean
......@@ -959,6 +941,8 @@ package planet{
+ {abstract} isActive() : Boolean
+ {abstract} maxMovesInOneRound() : Integer
- reset()
+ {abstract} stateToInt() : Integer
}
......@@ -973,6 +957,8 @@ package planet{
+ getType() : PawnType
+ maxMovesInOneRound() : Integer
- reset()
+ stateToInt() : Integer
}
......@@ -1006,6 +992,7 @@ package player{
}
class Traque{
- static(MAX_WILLINGNESS : Integer)
- numberWillingness : Integer
- hand : HandTraque
- rights : TraqueRight
......@@ -1080,8 +1067,6 @@ package player{
- setCanGiveUp(canGiveUp : boolean)
+ getPlaceCardsVisible() : Integer
- setPlaceCardsVisible(placeCardsVisible : Integer)
+ canResist() : Integer
- setCanResist(number : Integer)
}
......@@ -1174,8 +1159,8 @@ package player{
+ add(cardList : T[*]) : Boolean
+ remove(card : T) : Boolean
+ remove(cardList : T[*]) : Boolean
+ playCard(card : T) : T
+ playCard(cardList : T[*]): T[*]
+ play(card : T) : Boolean
+ play(cardList : T[*]): Boolean
+ handSize(): Integer
+ playedCardSize(): Integer
+ handIsEmpty(): boolean
......@@ -1399,8 +1384,11 @@ class Reserve{
+ copiesNumber(numberPlayer : Integer) : Integer
+ isNotEmpty() : Boolean
+ notEmpty(cardNumber : Integer) : Boolean
+ pick(cardNumber : Integer) : PlaceCard
- add(placeCard : PlaceCard)
+ equals(obj : Object) : Boolean
+ toString() : String
}
......
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