Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are working on part of an application for managing role playing games ( RPG ) . The part of the application you are working
You are working on part of an application for managing role playing games RPG The part of the application you are working on manages the characters and the campaigns. Your responsibility is to write two classes, called Campaign and FantasyCampaign, that keep track of the characters in a campaign. Characters are represented by objects of the Character class, given on the next page.The maximum number of characters a campaign can take is passed into the constructor via a parameter The Campaign class needs methods to accomplish the following:
Add a character given a Character object returning true or false to indicate if the addition succeeded you do not need to check if the character is already in the campaign, duplicate characters are allowed;
Drop a character given a Character object returning true or false to indicate if the deletion succeeded;
Retrieve the number of characters currently in the campaign;
Java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started