Commit 17e2635b authored by Killian LUCAS's avatar Killian LUCAS
Browse files

conception.adoc + modification Creature.java pour la claireté

parent b6f4eacd
...@@ -652,7 +652,10 @@ package planet{ ...@@ -652,7 +652,10 @@ package planet{
[plantuml] [plantuml]
.... ....
package player{ package player{
enum PlayerTeam{
CREATURE
TRAQUE
}
abstract class Player{ abstract class Player{
# name : String # name : String
# inGameId : Integer # inGameId : Integer
...@@ -746,18 +749,47 @@ package player{ ...@@ -746,18 +749,47 @@ package player{
} }
class Creature{ class Creature{
- hand : HandCreature
- rights : CreatureRight
+ getHand() : HandCreature
+ getRights() : CreatureRight
+ getTeam() : PlayerTeam
- reset()
- initializationJeton()
+ jetonsSize() : Integer
+ jetonsPlayedSize() : Integer
+ jetonsIsEmpty() : boolean
+ getJetons() : JetonSymbol[*]
+ playJeton(jeton : JetonSymbol) : boolean
+ playJeton(jetons : JetonSymbol[*]) : boolean
+ jetonsPlayedIsEmpty() : boolean
+ getMaxTrackingCards() : Integer
+ getTrackingCardHand() : TrackingCard[*]
+ getTrackingCardsPlayed() : TrackingCard[*]
+ trackingCardHandSize() : Integer
+ trackingCardPlayedSize() : Integer
+ trackingCardIsEmpty() : Boolean
+ trackingCardPlayedIsEmpty() : Boolean
- clearTrackingCardPlayed()
+ addTrackingCard(trackingCard : TrackingCard) : Boolean
+ addTrackingCard(trackingCards : TrackingCard[*]) : Boolean
+ removeTrackingCard(trackingCard : TrackingCard) : Boolean
+ removeTrackingCard(trackingCards : TrackingCard[*]) : Boolean
+ playTrackingCard(trackingCard : TrackingCard) : Boolean
+ playTrackingCard(trackingCards : TrackingCard[*]) : Boolean
- addTrackingCardToApplied(trackingCard : TrackingCard)
- addTrackingCardToApplied(trackingCards : TrackingCard[*])
- removeTrackingCardToApplied(trackingCard : TrackingCard)
- removeTrackingCardToApplied(trackingCards : TrackingCard[*])
- setMaxTrackingCardPlayable(maxTrackingCardPlayable : Integer)
+ getTrackingCardToApplied() : TrackingCard[*]
+ getMaxTrackingCardPlayable() : Integer
}
package playerstatus{
abstract class PlayerStatus{
# currentPhase : Phase
# expectedAction : ActionContainer
+ getCurrentPhase() : Phase
+ setCurrentPhase(phase : Phase)
+ getExpectedAction() : ActionContainer
}
}
package rights{
class TraqueStatus{ class TraqueStatus{
- survivalCardsPlayed : SurvivalCard[*] - survivalCardsPlayed : SurvivalCard[*]
- placeCardsPlayed : PlaceCard[*] - placeCardsPlayed : PlaceCard[*]
...@@ -783,22 +815,6 @@ package player{ ...@@ -783,22 +815,6 @@ package player{
} }
} }
Player <|-- Creature
Player <|-- Traque
PlayerStatus <|-- CreatureStatus
PlayerStatus <|-- TraqueStatus
Creature "1" - "1" CreatureStatus
Traque "1" - "1" TraqueStatus
}
....
=== Hand TODO
.Package hand
[plantuml]
....
package hand{ package hand{
class Deck <T extends PlayerCard>{ class Deck <T extends PlayerCard>{
- cards : T[*] - cards : T[*]
...@@ -849,9 +865,22 @@ package hand{ ...@@ -849,9 +865,22 @@ package hand{
HandCreature "1" -- "1" Deck HandCreature "1" -- "1" Deck
HandTraque "1" -- "1" Deck HandTraque "1" -- "1" Deck
} }
Player <|-- Creature
Player <|-- Traque
PlayerStatus <|-- CreatureStatus
PlayerStatus <|-- TraqueStatus
Creature "1" - "1" CreatureStatus
Traque "1" - "1" TraqueStatus
}
.... ....
=== Power === Power
.Package power .Package power
[plantuml] [plantuml]
......
...@@ -118,28 +118,28 @@ public class Creature extends Player { ...@@ -118,28 +118,28 @@ public class Creature extends Player {
hand.clearTrackingCardPlayed(); hand.clearTrackingCardPlayed();
} }
public boolean addTrackingCard(TrackingCard card){ public boolean addTrackingCard(TrackingCard trackingCard){
return hand.addTrackingCard(card); return hand.addTrackingCard(trackingCard);
} }
public boolean addTrackingCard(List<TrackingCard> cardList){ public boolean addTrackingCard(List<TrackingCard> trackingCards){
return hand.addTrackingCard(cardList); return hand.addTrackingCard(trackingCards);
} }
public boolean removeTrackingCard(TrackingCard card){ public boolean removeTrackingCard(TrackingCard trackingCard){
return hand.removeTrackingCard(card); return hand.removeTrackingCard(trackingCard);
} }
public boolean removeTrackingCard(List<TrackingCard> cardList){ public boolean removeTrackingCard(List<TrackingCard> trackingCards){
return hand.removeTrackingCard(cardList); return hand.removeTrackingCard(trackingCards);
} }
public boolean playTrackingCard(TrackingCard card){ public boolean playTrackingCard(TrackingCard trackingCard){
return hand.playTrackingCard(card); return hand.playTrackingCard(trackingCard);
} }
public boolean playTrackingCard(List<TrackingCard> cardList){ public boolean playTrackingCard(List<TrackingCard> trackingCards){
return hand.playTrackingCard(cardList); return hand.playTrackingCard(trackingCards);
} }
public void addTrackingCardToApplied(TrackingCard trackingCard) { public void addTrackingCardToApplied(TrackingCard trackingCard) {
......
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