Commit 9e24d31f authored by Killian LUCAS's avatar Killian LUCAS
Browse files

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

parent 17e2635b
...@@ -790,90 +790,139 @@ package player{ ...@@ -790,90 +790,139 @@ package player{
} }
package rights{ package rights{
class TraqueStatus{ class TraqueRight{
- survivalCardsPlayed : SurvivalCard[*] - maxPlacesCardChoosable : Integer
- placeCardsPlayed : PlaceCard[*] - placeCardsVisible : Integer
+ getSurvivalCardsPlayed() : SurvivalCard[*] - maxPlacesCardPlayable : Integer
+ getPlaceCardsPlayed() : PlaceCard[*] - maxSurvivalCardPlayable : Integer
+ playSurvivalCard(survivalCard : SurvivalCard) - canResist : boolean
+ playSurvivalCard(survivalCards : SurvivalCard[*]) - canGiveUp : boolean
+ playPlaceCard(placeCard : PlaceCard) - numberOfAdditionalCardsTakeBackPerPawnWillingnessLostWithResist : Integer
+ playPlaceCard(placeCards : PlaceCard[*]) - reset()
+ clear() + getMaxPlacesCardChoosable() : Integer
- setMaxPlacesCardChoosable(maxPlacesCardChoosable : Integer)
+ getMaxPlacesCardPlayable() : Integer
- setMaxPlacesCardPlayable(maxPlacesCardPlayable : Integer)
+ getMaxSurvivalCardPlayable() : Integer
- setMaxSurvivalCardPlayable(maxSurvivalCardPlayable : Integer)
+ getPlaceCardsVisible() : Integer
- setPlaceCardsVisible(placeCardsVisible : Integer)
+ getNumberOfAdditionalCardsTakeBackPerPawnWillingnessLostWithResist() : Integer
- setNumberOfAdditionalCardsTakeBackPerPawnWillingnessLostWithResist(number : Integer)
+ canResist() : boolean
- setCanResist(canResist : boolean)
+ canGiveUp() : boolean
- setCanGiveUp(canGiveUp : boolean)
} }
class CreatureStatus{ class CreatureRight{
- trackingCardsPlayed : TrackingCard[*] - maxTrackingCardPlayable : Integer
- jetonsPlayed : Jeton[*] + getMaxTrackingCardPlayable() : Integer
+ getTrackingCardsPlayed() : TrackingCard[*] - setMaxTrackingCardPlayable(maxTrackingCardPlayable : Integer)
+ getJetonsPlayed() : Jeton[*] - reset()
+ playTrackingCard(trackingCard : TrackingCard)
+ playTrackingCard(trackingCards : TrackingCard[*])
+ playJeton(placeCard : Jeton)
+ playJeton(placeCards : Jeton[*])
+ clear()
} }
} }
package hand{ package hand{
class Deck <T extends PlayerCard>{ class Deck <T extends PlayerCard>{
- cards : T[*] - cards : T[*]
- maxCards : Integer - playedCards : T[*]
+ add(card : T) : Boolean - maxCards : Integer
+ add(cards : T[*]) : Boolean + getMaxCards(): Integer
+ playCard(card : T) : T + getCards(): T[*]
+ playCard(cards : T[*]): T[*] + getPlayedCards(): T[*]
} - clear()
+ add(card : T) : Boolean
+ add(cardList : T[*]) : Boolean
+ remove(card : T) : Boolean
+ remove(cardList : T[*]) : Boolean
+ playCard(card : T) : T
+ playCard(cardList : T[*]): T[*]
+ handSize(): Integer
+ playedCardSize(): Integer
+ handIsEmpty(): boolean
+ playedCardIsEmpty(): boolean
class PlaceCardDeck{ }
- placeCards : PlaceCard[*]
- defausse : PlaceCard[*]
+ throwAway(placeCard : PlaceCard) : Boolean
+ throwAway(placeCards : PlaceCard[*]) : Boolean
+ takeBack(placeCard : PlaceCard) : Boolean
+ takeBack(placeCards : PlaceCard[*]) : Boolean
+ add(card : PlaceCard) : Boolean
+ add(cards : PlaceCard[*]) : Boolean
+ addInDefausse(card : PlaceCard) : Boolean
+ addInDefausse(cards : PlaceCard[*]) : Boolean
+ play(card : PlaceCard) : Boolean
+ play(cards : PlaceCard) : Boolean
}
abstract class Hand{} class PlaceCardDeck{
- placeCards : PlaceCard[*]
- defausse : PlaceCard[*]
+ throwAway(placeCard : PlaceCard) : Boolean
+ throwAway(placeCards : PlaceCard[*]) : Boolean
+ takeBack(placeCard : PlaceCard) : Boolean
+ takeBack(placeCards : PlaceCard[*]) : Boolean
+ add(card : PlaceCard) : Boolean
+ add(cards : PlaceCard[*]) : Boolean
+ addInDefausse(card : PlaceCard) : Boolean
+ addInDefausse(cards : PlaceCard[*]) : Boolean
+ play(card : PlaceCard) : Boolean
+ play(cards : PlaceCard) : Boolean
}
class HandCreature{ abstract class Hand{}
- trackingCards : Deck<TrackingCard>
- jetons : Set<Jeton> class HandCreature{
+ initializationJeton() - trackingCards : Deck<TrackingCard>
+ getTrackingCards() : Deck<TrackingCard> - jetons : JetonSymbol[*]
+ playJeton(jeton : Jeton) : Jeton - jetonSymbolsPlayed : JetonSymbol[*]
+ playJeton(jetons : Set<Jeton>) : Set<Jeton> - trackingCardsToApplied : TrackingCard[*]
} - initializationJeton()
- addTrackingCardToApplied(trackingCard : TrackingCard)
- addTrackingCardToApplied(trackingCards : TrackingCard[*])
- removeTrackingCardToApplied(trackingCard : TrackingCard)
- removeTrackingCardToApplied(trackingCards : TrackingCard[*])
+ getTrackingCardToApplied() : TrackingCard[*]
+ getJetonSymbolsPlayed() : JetonSymbol[*]
+ getJetonSymbols() : JetonSymbol[*]
+ playJeton(jeton : Jeton) : Boolean
+ playJeton(jetons : Jeton[*]) : Boolean
+ jetonsSize() : Integer
+ jetonsPlayedSize() : Integer
+ jetonsIsEmpty() : boolean
+ jetonsPlayedIsEmpty() : boolean
+ getMaxTrackingCards() : Integer
+ getTrackingCardsDeck() : Deck<TrackingCard>
+ getTrackingCardHand() : TrackingCard[*]
+ getTrackingCardsPlayed() : TrackingCard[*]
+ trackingCardHandSize() : Integer
+ trackingCardPlayedSize() : Integer
+ trackingCardIsEmpty() : boolean
+ trackingCardPlayedIsEmpty() : boolean
- clearTrackingCardPlayed()
+ addTrackingCard(trackingCard : TrackingCard) : boolean
+ addTrackingCard(cardList : TrackingCard[*]) : boolean
+ removeTrackingCard(trackingCard : TrackingCard) : boolean
+ removeTrackingCard(cardList : TrackingCard[*]) : boolean
+ playTrackingCard(trackingCard : TrackingCard) : boolean
+ playTrackingCard(cardList : TrackingCard[*]) : boolean
class HandTraque{ }
- survivalCards : Deck<SurvivalCard>
- placeCards PlaceCardDeck
+ getSurvivalCards() : Deck<SurvivalCard>
+ getPlaceCards() : PlaceCardDeck
}
Hand <|-- HandCreature class HandTraque{
Hand <|-- HandTraque - survivalCards : Deck<SurvivalCard>
- placeCards PlaceCardDeck
+ getSurvivalCards() : Deck<SurvivalCard>
+ getPlaceCards() : PlaceCardDeck
}
HandTraque "1" -- "1" PlaceCardDeck Hand <|-- HandCreature
HandCreature "1" -- "1" Deck Hand <|-- HandTraque
HandTraque "1" -- "1" Deck
} HandTraque "1" -- "1" PlaceCardDeck
HandCreature "1" -- "1" Deck
HandTraque "1" -- "1" Deck
}
Player <|-- Creature Player <|-- Creature
Player <|-- Traque Player <|-- Traque
PlayerStatus <|-- CreatureStatus PlayerStatus <|-- CreatureRight
PlayerStatus <|-- TraqueStatus PlayerStatus <|-- TraqueRight
Creature "1" - "1" CreatureStatus Creature "1" - "1" CreatureRight
Traque "1" - "1" TraqueStatus Traque "1" - "1" TraqueRight
} }
.... ....
......
...@@ -143,16 +143,16 @@ public class HandCreature { ...@@ -143,16 +143,16 @@ public class HandCreature {
trackingCards.clear(); trackingCards.clear();
} }
public boolean addTrackingCard(TrackingCard card){ public boolean addTrackingCard(TrackingCard trackingCard){
return trackingCards.add(card); return trackingCards.add(trackingCard);
} }
public boolean addTrackingCard(List<TrackingCard> cardList){ public boolean addTrackingCard(List<TrackingCard> cardList){
return trackingCards.add(cardList); return trackingCards.add(cardList);
} }
public boolean removeTrackingCard(TrackingCard card){ public boolean removeTrackingCard(TrackingCard trackingCard){
return trackingCards.remove(card); return trackingCards.remove(trackingCard);
} }
public boolean removeTrackingCard(List<TrackingCard> cardList){ public boolean removeTrackingCard(List<TrackingCard> cardList){
...@@ -160,8 +160,8 @@ public class HandCreature { ...@@ -160,8 +160,8 @@ public class HandCreature {
} }
public boolean playTrackingCard(TrackingCard card){ public boolean playTrackingCard(TrackingCard trackingCard){
return trackingCards.play(card); return trackingCards.play(trackingCard);
} }
public boolean playTrackingCard(List<TrackingCard> cardList){ public boolean playTrackingCard(List<TrackingCard> cardList){
......
Supports Markdown
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