Commit 39615ab4 authored by Killian LUCAS's avatar Killian LUCAS
Browse files

conception.adoc + modification HandTraque.java pour la CLARTÉ

parent 9e24d31f
...@@ -849,20 +849,34 @@ package player{ ...@@ -849,20 +849,34 @@ package player{
class PlaceCardDeck{ class PlaceCardDeck{
- placeCards : PlaceCard[*] - placeCards : PlaceCard[*]
- defausse : PlaceCard[*] - defausse : PlaceCard[*]
+ throwAway(placeCard : PlaceCard) : Boolean - playedCards : PlaceCard[*]
+ throwAway(placeCards : PlaceCard[*]) : Boolean + getPlayedCards() : PlaceCard[*]
+ takeBack(placeCard : PlaceCard) : Boolean + getPlaceCards() : PlaceCard[*]
+ takeBack(placeCards : PlaceCard[*]) : Boolean + getDefausse() : PlaceCard[*]
- setPlaceCards(placeCards : PlaceCard[*])
- setDefausse(defausse : PlaceCard[*])
- setPlayedCards(playedCards : PlaceCard[*])
+ throwAway() : Boolean
+ throwAway(card : PlaceCard) : Boolean
+ throwAway(cards : PlaceCard[*]) : Boolean
+ takeBack(card : PlaceCard) : Boolean
+ takeBack(cards : PlaceCard[*]) : Boolean
- takeBackAllFromDefausse()
- takeBackPlayedPlaceCards()
+ add(card : PlaceCard) : Boolean + add(card : PlaceCard) : Boolean
+ add(cards : PlaceCard[*]) : Boolean + add(cards : PlaceCard[*]) : Boolean
+ addInDefausse(card : PlaceCard) : Boolean + addInDefausse(card : PlaceCard) : Boolean
+ addInDefausse(cards : PlaceCard[*]) : Boolean + addInDefausse(cards : PlaceCard[*]) : Boolean
+ play(card : PlaceCard) : Boolean + play(card : PlaceCard) : Boolean
+ play(cards : PlaceCard) : Boolean + play(cards : PlaceCard) : Boolean
+ handSize() : Integer
+ handIsEmpty() : boolean
+ defausseSize() : Integer
+ defausseIsEmpty() : boolean
+ playedCardSize() : Integer
+ playedCardIsEmpty() : boolean
} }
abstract class Hand{}
class HandCreature{ class HandCreature{
- trackingCards : Deck<TrackingCard> - trackingCards : Deck<TrackingCard>
- jetons : JetonSymbol[*] - jetons : JetonSymbol[*]
...@@ -902,13 +916,58 @@ package player{ ...@@ -902,13 +916,58 @@ package player{
class HandTraque{ class HandTraque{
- survivalCards : Deck<SurvivalCard> - survivalCards : Deck<SurvivalCard>
- placeCards PlaceCardDeck - placeCards : PlaceCardDeck
+ getSurvivalCards() : Deck<SurvivalCard> - survivalCardsToApplied : SurvivalCard[*]
+ getPlaceCards() : PlaceCardDeck - addSurvivalCardToApplied(survivalCard : SurvivalCard)
- addSurvivalCardToApplied(survivalCards : SurvivalCard[*])
- removeSurvivalCardToApplied(survivalCard : SurvivalCard)
- removeSurvivalCardToApplied(survivalCards : SurvivalCard[*])
+ getSurvivalCardsToApplied() : SurvivalCard[*]
+ getPlaceCards() : PlaceCard[*]
+ getPlaceCardsPlayed() : PlaceCard[*]
+ getDefausse() : PlaceCard[*]
- setPlaceCards(placeCards : PlaceCard[*])
- setDefausse(placeCards : PlaceCard[*])
+ getPlaceCardsDeck() : PlaceCardDeck
+ placeCardHandSize() : Integer
+ placeCardIsEmpty() : boolean
+ defausseSize() : Integer
+ defausseIsEmpty() : boolean
+ placeCardPlayedSize() : Integer
+ placeCardPlayedIsEmpty() : boolean
+ throwAwayPlaceCard() : boolean
+ throwAwayPlaceCard(card : PlaceCard) : boolean
+ throwAwayPlaceCard(cards : PlaceCard[*]) : boolean
+ takeBackPlaceCard(card : PlaceCard) : boolean
+ takeBackPlaceCard(cards : PlaceCard[*]) : boolean
+ takeBackPlayedPlaceCards(card : PlaceCard) : boolean
+ takeBackPlaceCard(cards : PlaceCard[*]) : boolean
- takeBackPlayedPlaceCards()
- takeBackAllPlaceCardFromDefausse()
+ addPlaceCard(card : PlaceCard) : boolean
+ addPlaceCard(cards : PlaceCard[*]) : boolean
+ addPlaceCardInDefausse(card : PlaceCard) : boolean
+ addPlaceCardInDefausse(cards : PlaceCard[*]) : boolean
+ playPlaceCard(card : PlaceCard) : boolean
+ playPlaceCard(cards : PlaceCard[*]) : boolean
+ getSurvivalCardsDeck() : Deck<SurvivalCard>
+ getSurvivalCardsHand() : SurvivalCard[*]
+ getSurvivalCardsPlayed() : SurvivalCard[*]
+ survivalCardHandSize() : Integer
+ survivalCardPlayedSize() : Integer
+ survivalCardIsEmpty() : boolean
+ survivalCardPlayedIsEmpty() : boolean
- clearSurvivalCardPlayed()
+ addSurvivalCard(card : SurvivalCard) : boolean
+ addSurvivalCard(cards : SurvivalCard[*]) : boolean
+ removeSurvivalCard(card : SurvivalCard) : boolean
+ removeSurvivalCard(cards : SurvivalCard[*]) : boolean
+ playSurvivalCard(card : SurvivalCard) : boolean
+ playSurvivalCard(cards : SurvivalCard[*]) : boolean
} }
Hand <|-- HandCreature
Hand <|-- HandTraque
HandTraque "1" -- "1" PlaceCardDeck HandTraque "1" -- "1" PlaceCardDeck
HandCreature "1" -- "1" Deck HandCreature "1" -- "1" Deck
......
...@@ -65,12 +65,12 @@ public class HandTraque { ...@@ -65,12 +65,12 @@ public class HandTraque {
return placeCards.getDefausse(); return placeCards.getDefausse();
} }
public void setPlaceCards(List<PlaceCard> cards) { public void setPlaceCards(List<PlaceCard> placeCards) {
placeCards.setPlaceCards(cards); this.placeCards.setPlaceCards(placeCards);
} }
public void setDefausse(List<PlaceCard> cards) { public void setDefausse(List<PlaceCard> placeCards) {
placeCards.setDefausse(cards); this.placeCards.setDefausse(placeCards);
} }
public PlaceCardDeck getPlaceCardsDeck(){ public PlaceCardDeck getPlaceCardsDeck(){
......
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