Difference between revisions of "Map class assignment"
From WLCS
(New page: == Objective == * You will learn to create a class that makes use of Vectors and two-dimensional (2D) arrays == Purpose == * The purpose of this class is to encapsulate all the attributes...) |
(No difference)
|
Revision as of 10:35, 7 May 2010
Objective
- You will learn to create a class that makes use of Vectors and two-dimensional (2D) arrays
Purpose
- The purpose of this class is to encapsulate all the attributes and methods of the entire maze. The Map class represents a grid of rooms, each connected to one or more of its neighbors. The grid will be represented as a two-dimensional array of Room objects; you will use loops to initialize each of the rooms in the array to contain a random description and, with some probability, a random monster and a random weapon.