Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help building the structure of a C# game I'm making for class. I think I can get going on it if I had

I need help building the structure of a C# game I'm making for class. I think I can get going on it if I had the Architecture set up for me. Here is the UML diagram that I just can't get my head around. Thank you so much.

image text in transcribed

Monn + areadonlys ld: Guid +ereadonys Weight:double +CompareTo(obj: Object): nt +GetHashCode): int creadonlys Nane: Sring Slot eFactorys RandomlitenGenerator Equals(obj: Object): bool random Rndom Tostring: String operator-(a:item, b: tem):bool operator-(a:Item, b:item):bool GenerateRandomitem): tem Factorys RandomEnemyGenerator random Random + GeneratoRandomEnemy): Character 0.20 Storedltems Equippeditems Enum tems : Item count: int slots:em UNEQUIPPABLE HELMET CHESTPIECE GRIEVES VAMBRACES WEAPON POTIONT POTION2 + econstructore Equippedltems creadorl constructors Storedltems(size :int) sconstructors Storeditemsisize : int, tems: Item Getitemlindex: int: tem y Count: int Getitem(slot: InventorySlotld):1em Equiplitam:tm): Item + Equip(slot : InventorySotld) : lem Setitemindex: int, item: item):em Additem tem: Item): tem Unequiplitem: item):em Unequip siot:InventorySlotld):Item CalcTotalWeight):double CalcTotalAtackValue): int Removeltem(tem: Item): Item CacTotaWeightO: double CalcTotaDefensevalue):int + item(index : int! m Itemid: InventorySlotd]: tem operator linventory:Storeditems, item:Rem):Storedilems operator-(inventory: Storeditems, item: tem): Storeditems bag :Shoredihems currentHealth: int dead: bool ereadoniys Bag: Storeditems +ereadoniys Equipped: Equippeditems sreadoniys CurrentHealth: int player:Character enemy:Character _depth:int bool niy IsDead: bool 0.11. JameOver ereadonlys Player: Character ereadonlys Enemy:Charactor CalcTotalAtackValue0: int CalcTolaDelenseValue(): int TakeDamage(damage: int) ereadonlyo Depth: int eroadonlys IsGameOver: bool ShowGameOver) Amack( attacker . Character, defender : Character) DrinkPotion drinker: Character, potion: Potion) Managelnventory NextBatte LeaveDungeon) +extension methods GetSiotName(slot: InventoryStotld): String cextension methoda Display slot:InventorySlotid) +extension methods Displayitem: Item) extension method. Drsplay(terms : nemo extension methode Displayitems: Storeditems) + extension methods Displayitems:Equippeditems) cextension methods Displayfperson: Character) Monn + areadonlys ld: Guid +ereadonys Weight:double +CompareTo(obj: Object): nt +GetHashCode): int creadonlys Nane: Sring Slot eFactorys RandomlitenGenerator Equals(obj: Object): bool random Rndom Tostring: String operator-(a:item, b: tem):bool operator-(a:Item, b:item):bool GenerateRandomitem): tem Factorys RandomEnemyGenerator random Random + GeneratoRandomEnemy): Character 0.20 Storedltems Equippeditems Enum tems : Item count: int slots:em UNEQUIPPABLE HELMET CHESTPIECE GRIEVES VAMBRACES WEAPON POTIONT POTION2 + econstructore Equippedltems creadorl constructors Storedltems(size :int) sconstructors Storeditemsisize : int, tems: Item Getitemlindex: int: tem y Count: int Getitem(slot: InventorySlotld):1em Equiplitam:tm): Item + Equip(slot : InventorySotld) : lem Setitemindex: int, item: item):em Additem tem: Item): tem Unequiplitem: item):em Unequip siot:InventorySlotld):Item CalcTotalWeight):double CalcTotalAtackValue): int Removeltem(tem: Item): Item CacTotaWeightO: double CalcTotaDefensevalue):int + item(index : int! m Itemid: InventorySlotd]: tem operator linventory:Storeditems, item:Rem):Storedilems operator-(inventory: Storeditems, item: tem): Storeditems bag :Shoredihems currentHealth: int dead: bool ereadoniys Bag: Storeditems +ereadoniys Equipped: Equippeditems sreadoniys CurrentHealth: int player:Character enemy:Character _depth:int bool niy IsDead: bool 0.11. JameOver ereadonlys Player: Character ereadonlys Enemy:Charactor CalcTotalAtackValue0: int CalcTolaDelenseValue(): int TakeDamage(damage: int) ereadonlyo Depth: int eroadonlys IsGameOver: bool ShowGameOver) Amack( attacker . Character, defender : Character) DrinkPotion drinker: Character, potion: Potion) Managelnventory NextBatte LeaveDungeon) +extension methods GetSiotName(slot: InventoryStotld): String cextension methoda Display slot:InventorySlotid) +extension methods Displayitem: Item) extension method. Drsplay(terms : nemo extension methode Displayitems: Storeditems) + extension methods Displayitems:Equippeditems) cextension methods Displayfperson: Character)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions