Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Guild Administration APP in Java with GUI 1 Create a Guild Administration App using Java with GUI! 2 Write a tester code to demonstrate the

Guild Administration APP in Java with GUI 1 Create a Guild Administration App using Java with GUI! 2 Write a tester code to demonstrate the apps by adding a Guild Master, a minimum of 10 Hunters with different ranks, a minimum of 2 Parties, and a minimum of 10 Quests with different types and ranks. 3 If a Hunter login to the app, show the recommendation Quest for him (individually) and as a Party (if that Hunter belongs to a party). UML Diagram : image text in transcribed

Details each class :

GameObject Class

Is an abstract class where a subclass from this class should implement a getRank() method. GetRank() method is a method to get the Rank of an object (herb/goods/monster) according to their rarity/price/power.

Herb Class

(Herb -> is a medicinal plant usually used as a potion/medicine ingredient)

Is a class for Gathering Quest type. Herb Rank is determined by its Rarity according to these rules:

1. Rank S if the rarity is mythical

2. Rank A if the rarity is legendary

3. Rank B if the rarity is epic

4. Rank C if the rarity is rare

Goods Class

(Goods -> an object sells by merchants as commodity)

Is a class for Escort Quest type. Goods Rank is determined by its price according to these rules.

1. Rank S if the price > 100 golds

2. Rank A if the price between 50 golds

3. Rank B if the price between 10 golds

4. Rank C if the price between 1 gold

Monster Class

(Monster -> a wild monster)

Is a class for Subjugation Quest type. Monster Rank is determined by its power according to these rules.

1. Rank S if the power > 300

2. Rank A if the power between 200

3. Rank B if the power between 80

4. Rank C if the power between 30

Guild Class

A Guild led by a Guild Master. The Guild has a number of Hunter/Party as the members and a list of available Quest. The Guild will provide some recommendation Quests from the available Quest for the Hunters/Parties after they login to the application if the quest requirements meet their criteria.

User Class

User class is a super class for some subclasses such as Guild Master and Hunter. User class provides information for the subclass in order to use the Guild Administration App.

Guild Master Class

Guild Master is the administrator of the Guild Administration App. Guild Master implements Management interface to be able to:

1. Create, Read, Update, and Delete Hunter from the database.

2. Create, Read, Update, and Delete Party from the database.

3. Create, Read, Update, and Delete Quest from the database.

Hunter Class

Hunter is a member of the Guild. Hunter Rank is divided into several levels namely:

1. Rank S if the power is between 81 - 100

2. Rank A if the power is between 61 - 80

3. Rank B if the power is between 41 - 60

4. Rank C if the power is between 21 - 40

Hunter with B Rank or above can join a Party. Hunter has some privileges in the Guild Administration App, such as:

  1. Able to see their own information/profile.

  2. Read the available Quest and take some Quests from the Recommendation Quests given by the app.

  3. Submit the result to mark the Quest completion.

Recommendation Quest is a Quest that can be taken by Hunter/Party because the requirements are met. Hunter as an individual can only take a quest until it is done but they can take more than one quest as a party.

Party Class

Party is a group formed by several Hunters with a minimum of 2 Hunters and a maximum of 5 Hunters. The Party power is computed by summing all of the power from its members. The advantage of joining a party is they can take more than one quest with higher rank requirements because they have higher total power as a party. However, the rewards must be distributed equally among the party members.

Quest Class

Quest is a job that can be taken by the Hunter/Party. There are three types of Quest, namely:

1. Gathering, gather or collect herbs

2. Escort, escort the merchants to deliver the goods to the destination

3. Subjugation, subjugate a monster

Quest Rank depends on the Rank of the Quest type. For example, a Gathering Quest type has a task for the Hunter to gather some S-Rank herbs, then the Quest will be Ranked S. These are the requirements for the Hunter to take a Quest:

  1. Quest Rank S needs a minimum of total power 300, max 5 hunters in the group, and the minimum reward is 10 golds

  2. Quest Rank A needs a minimum of total power 200, max 3 hunters in the group, and the minimum reward is 2 golds

  3. Quest Rank B needs a minimum of total power 80, max 2 hunters in the group, and the minimum reward is 50 silvers

  4. Quest Rank C needs a minimum of total power 30, max 1 hunter, and the minimum reward is 50 coppers

The currency is 1 gold = 100 silvers, 1 silver = 100 coppers

Quest that is already taken by the Hunter will be removed from the list of quests so the other hunters cannot take the same quest. If the quest is taken by the hunter as a party, then the quest information will be shown for all of the party members. Quest Status is changed according to the Hunter/Party name that took the quest and the default is Available if not yet taken by anyone.

Hunter User Party -name: string gender:string -age: Int -use mame: string -password: string -rank:string -power: Int -money: int -quests[]: array of quest -party: string +readQuest(): void +takeQuest():void +submitQuest(): vold -name: string -rank:string -members(): array of hunter -power: int -quests[]: array of quest Guild Master Guild -name:string -members[]: array of hunter -parties[l: array of party quests[]: array of quest > Management +Create(); void +read(): vold +update(): void +delete(); void Herb -value: Int Goods > Game Object -name: string -rank: string +>getRank(): string -price: int Quest -title: string -rank:string -type: string -max hunter: Int -min power: int -reward: int -status: string getStatus(): string Monster -power: Int Hunter User Party -name: string gender:string -age: Int -use mame: string -password: string -rank:string -power: Int -money: int -quests[]: array of quest -party: string +readQuest(): void +takeQuest():void +submitQuest(): vold -name: string -rank:string -members(): array of hunter -power: int -quests[]: array of quest Guild Master Guild -name:string -members[]: array of hunter -parties[l: array of party quests[]: array of quest > Management +Create(); void +read(): vold +update(): void +delete(); void Herb -value: Int Goods > Game Object -name: string -rank: string +>getRank(): string -price: int Quest -title: string -rank:string -type: string -max hunter: Int -min power: int -reward: int -status: string getStatus(): string Monster -power: Int

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

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago