Skip to content
Snippets Groups Projects
Commit 560452cf authored by Charly's avatar Charly
Browse files

Derniere modif puml

parent e53e09d9
Branches
1 merge request!193Maj PUML ; Qlq usings suppr; classe MarketBase suppr ; pop-up 'vendu' que quand nbr > 0 ; modif namespace game + logique
......@@ -61,6 +61,8 @@ package game{
- stringInDicoKeys(toCheck : String, dicoSubstrac : Dictionary<EventInfo, Integer> ) : Boolean
}
AllEvents *--> EventInfo
class AllPlot{
+ createPlot(typePlot : EnumTypePlot, currentPlant : EnumTypePlant) : Plot
+ getAllPlot() : EnumTypePlot[*]
......@@ -77,6 +79,8 @@ package game{
+ ToString() : String
}
AllSeedPlant *--> "allPlantDico \n*" PlantInfo : <<own>> >
class AllTools{
- dicoTools : Dictionary<String, Tool>
......@@ -184,6 +188,12 @@ package game{
+ endGame()
}
Game *-d-> "market \n1" Market : <<own>> >
Game *-d-> "notifcations \n*" Notification : <<own>> >
Game *-d-> "inventory \n1" Inventory : <<own>> >
Game *-d-> "shop \n1" Shop : <<own>> >
Game *-d-> CameraMovement : <<own>> >
class Inventory{
+ panel : InventoryInterface
- weightMax : Integer
......@@ -260,6 +270,11 @@ package game{
+ afficheEtatDebug()
}
Market ..> Plant : <<uses>> >
Market ..> Seed : <<uses>> >
Market ..> "activeEvents\n*"AllEvents : <<affected by / create>> >
Market ..> AllSeedPlant : <<uses>> >
Market ..> AllPlot : <<uses>> >
Market *-> "1\n{static} instace" Market : singleton
class Notification{
......@@ -271,6 +286,9 @@ package game{
+ clearInventoryDisplay()
+ afficheInventory()
}
Notification..> AllEvents : <<defined by>> >
class NotifPanel{
+ PanelInventory : GameObject
......@@ -291,6 +309,8 @@ package game{
+ Plant()
+ getPrice(month : Integer) : Integer
}
Plant *--> "typePlante\n1" EnumTypePlant : <<type of>> >
class PlantedPlant extends BasicPlant{
- spriteLinks : Sprite[*]
......@@ -306,6 +326,8 @@ package game{
getNbCollect() : Integer
}
PlantedPlant *--> "typePlante\n1" EnumTypePlant : <<type of>> >
class PlantInfo{
- id : Integer
- namePlant : EnumTypePlant
......@@ -355,6 +377,8 @@ package game{
- changePlantSprite()
}
Plot *--> EnumTypePlot : <<of type>> >
class PopUp{
+ text : TextMeshProUGUI
+ coroutine : IEnumerator
......@@ -372,6 +396,8 @@ package game{
+ getTimeGrowth() : Integer
}
Seed *--> "typePlante\n1" EnumTypePlant : <<type of>> >
class Shop{
+ inventory : Inventory
+ slots : Dictionary<BasicItem,Integer>
......@@ -379,6 +405,10 @@ package game{
+ Shop()
}
Shop ..> BasicItem : <<uses>> >
Shop ..> AllSeedPlant : <<uses>> >
Shop ..> Market : <<interact>> >
class Stand{
- market : Market
- inventory : Inventory
......@@ -404,6 +434,8 @@ package game{
+ Tool(paraPrice : Integer, name : String, id : Integer, description : String, imageLink : Sprite)
+ Tool(paraPrice : Integer, name : String, id : Integer, description : String, spriteLink : String)
}
Tool *--> EnumTools : <<type of>> >
}
}
......@@ -512,6 +544,8 @@ package MainMenu{
+ PlayGame()
+ QuitGame()
}
MainMenu *-d-> Game
}
package Map{
......@@ -661,43 +695,4 @@ package Map{
}
}
MainMenu *-d-> Game
Game *-d-> "market \n1" Market : <<own>> >
Game *-d-> "notifcations \n*" Notification : <<own>> >
Game *-d-> "inventory \n1" Inventory : <<own>> >
Game *-d-> "shop \n1" Shop : <<own>> >
Game *-d-> CameraMovement : <<own>> >
Shop ..> BasicItem : <<uses>> >
Shop ..> AllSeedPlant : <<uses>> >
Shop ..> Market : <<interact>> >
Notification..> AllEvents : <<defined by>> >
Market ..> Plant : <<uses>> >
Market ..> Seed : <<uses>> >
Market ..> "activeEvents\n*"AllEvents : <<affected by / create>> >
Market ..> AllSeedPlant : <<uses>> >
Market ..> AllPlot : <<uses>> >
Seed *--> "typePlante\n1" EnumTypePlant : <<type of>> >
Plant *--> "typePlante\n1" EnumTypePlant : <<type of>> >
Plot *--> EnumTypePlot : <<of type>> >
Tool *--> EnumTools : <<type of>> >
AllEvents *--> EventInfo
AllSeedPlant *--> "allPlantDico \n*" PlantInfo : <<own>> >
PlantedPlant *--> "typePlante\n1" EnumTypePlant : <<type of>> >
@enduml
\ No newline at end of file
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