Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider an adventure game in which players live in a two-dimensional grid. Each grid element can be considered to be a room in the world

Consider an adventure game in which players live in a two-dimensional grid. Each grid element

can be considered to be a room in the world and each room can have things in it (treasure, food,

tools, etc) as well as players. There can be different players in the world (user controlled, computer

controlled, etc).

Outline the various classes and interfaces (if any) that you would design for this game. Specify

which classes are abstract and which are concrete. Provide an API for each class. The API should

consist of a list of public methods that the class has. You do not have to mention attributes or

private/protected methods.

Draw simple UML class diagrams for the classes/interfaces in your game. That is, draw a box

for each class (identifying if it is absbtact or an interface) and show any inheritance (extending a

class or implementing an interface) with an arrow.

You must consider the world itself, players in the world, rooms in the world, and several things

that can also be in the world that include food, treasure, and tools. For something like food, there

should be food that is good for a player and food that is bad (poison)

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+C&B (especially taxation) laws, regulations, and practices?

Answered: 1 week ago

Question

=+designing international assignment C&B packages.

Answered: 1 week ago