Question: Part 2: Programming (15 pts) The goal of this assignment is to develop a program that generates a dungeon, which is a two-dimensional grid space

 Part 2: Programming (15 pts) The goal of this assignment is
to develop a program that generates a dungeon, which is a two-dimensional
grid space (x, y). By reading monster's information from a file monsters
are allocated to the grid cells. The user can shift and shuffle
the monsters. Download the following files and use them for this assignment.
Do not change any content of the following files .Assignment8.java Monster java
dungeonData.txt dungeon Data2.txt The last two files are input files (text) that
will be read from Assignment8 class. Save all files in the same
folder. You will be creating a class called Dungeon. This class should
be defined in a file named "Dungeon-Java". The class will contain a

Part 2: Programming (15 pts) The goal of this assignment is to develop a program that generates a dungeon, which is a two-dimensional grid space (x, y). By reading monster's information from a file monsters are allocated to the grid cells. The user can shift and shuffle the monsters. Download the following files and use them for this assignment. Do not change any content of the following files .Assignment8.java Monster java dungeonData.txt dungeon Data2.txt The last two files are input files (text) that will be read from Assignment8 class. Save all files in the same folder. You will be creating a class called Dungeon. This class should be defined in a file named "Dungeon-Java". The class will contain a two-dimensional array called "monsters" of Monster objects. It also has two static variables, gridWidth and gridHeight. (3 pt) Dungeon -monsters: Monster [ + gridwidth: int + gridHeight: int + Dungeon (int width, int height) + updateMonster (int x, int y, Monster m) -swap (int xl, int yl, int x2, int y2) + shuffle () + shift (char command) void + printInfo () void void : void : Strin As shown in the image below, the x direction is from left to right, and the y direction is from top to down. The left top is represented as (x, y)-(0,0). The image shows a case in which the grid size is 5 by 5. All monster can move in four directions by reading a corresponding key; up ('w), left (a'), down ('s) and right ('d'). Before starting the Dungeon class, read the code of Assignment8.java and Monster.java carefully. Without the knowledge of methods of them or tasks in the Assignment8, it is impossible to complete this assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!