Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this problem let s try to design an action of The Magician in detail. Consider a scene where The Magician punches a bunch of
In this problem lets try to design an action of The Magician in detail. Consider a scene where The Magician punches a bunch of super villains. Write a code where The Magician punches villains: Warlord, Manic and Mayhem.
Build the action such that there is a Mediator class that helps in communicating the initiating and the receiving of the punch.
You can refer the following steps to build the solution:
Create the ActionMediator class which has functions: punchingUser which will punch a specific villain and a addUser function which will add a new user
Create the GameCharacter class which will declare the functions which will punch and receive the punch by The Magician
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