The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Need help with this Java Assignment, please help!
Â
Programming Assignment #4
Â
Â
Role Playing Game
Â
You are part of a team working on a new role playing game. Your part is to design and create the classes for the hierarchy of game objects (such as trees, walls, zombies, aliens, and good guys. You are to draw a complete class diagram that shows the entire hierarchy of your classes. For each class, come up with suitable methods based on the type of object. You also are to create a program called Assignment4 that tests the objects in a new role playing game.
Â
You are to design a class to represent each type of game object. All objects should have fields for the following data: namelocation The stationary objects (rooms, trees and walls) are game objects and should have additional fields for the following data: damagePoints The collectable objects (coins, weapons, and health potions) are game objects and should have additional fields for the following data: valuetype (an enum with choices such COINS, HEALTH_POTION, AXE, SWORD, MACE, MAGIC_WAND, BOMB) The moveable objects are game objects and should have additional fields for the following data: health  directionspeed The bad guy objects (zombies and aliens) are moveable objects and should have additional fields for the following data: meanFactordefeatPoints The good guy objects (warriers, wizards, and hobbits) are moveable objects and should have additional fields for the following data: strengthintelligencebackPack (ArrayList of collectable objects) The main program (aka test program) should build an ArrayList of stationary objects and an ArrayList of moveable objects. It should build an ArrayList of collectable objects for each good guy’s backpack. The main program should go through all objects in each ArrayList and call their common methods (e.g., display(), move(), fight(), etc.).
Â
Â
Â
Â
What to turn in
UML Class Diagram
Source code of all classes created.
Screen shot of program running.
Â
Programming Assignment #4Role Playing GameYou are part of a team working on a new role playing game. Your part is to design and create theclasses for the hierarchy of game objects (such as trees, walls, zombies, aliens, and goodguys.You are to draw a complete class diagram that shows the entire hierarchy of yourclasses. For each class, come up with suitable methods based on the type of object. Youalso are to create a program called Assignment4 that tests the objects in a new role playinggame.You are to design a class to represent each type of game object. All objects should have fields forthe following data:ï‚·nameï‚·locationThe stationary objects (rooms, trees and walls) are game objects and should have additional fieldsfor the following data:ï‚·damagePointsThe collectable objects (coins, weapons, and health potions) are game objects and should haveadditional fields for the following data:ï‚·valueï‚·type (an enum with choices such COINS, HEALTH_POTION, AXE, SWORD, MACE,MAGIC_WAND, BOMB)The moveable objects are game objects and should have additional fields for the following data:ï‚·healthï‚·directionï‚·speedThe bad guy objects (zombies and aliens) are moveable objects and should have additional fieldsfor the following data:ï‚·meanFactor
Attachments:
-----------