Map class assignment

From WLCS
Revision as of 10:35, 7 May 2010 by Admin (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.