|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Packages |
---|
The course project is a modified version of the Oregon Trail computer game; if you are not familiar with the game, then you should read the article at that link.
There are a number of classes that will be required for this project, split among the next few homeworks and labs.
Control
(hw 8): This class provides a number of methods that allow
the game to progress (such as handing the turns, ending the game, etc.)Depot
(hw 9): This is a "market" (fort, etc.) that can occur at a
location. You can buy and sell goods at a Depot.Descriptions
(lab 10): This class allows you to customize the game
-- you choose the names for various things in the game, such as the
party members, the name of the vehicle, etc.Game
(all assignments): This class has the main() method that will
run the game.Inventory
(hw 8): This class represents the inventory that holds
items. Every depot, as well as the player's Vehicle, will have an
inventory. It holds such things as food, money, and oxen.Location
(hw 7): This class represents a location on the map.
A Location has a given type of terrain, and can have a Depot.Map
(hw 10): The 2-D grid that composes the board of the game.
It's a 2-D grid of Locations.MapPrinter
(lab 11): This class will print out the Map to the
screen.Parser
(lab 9): This class is in charge of obtaining all user input.
No user input is read in in any other class.Party
(hw 9): This class represents a party of people that are
traveling. There will be 5 or so people per party (i.e. you are
leading a group of 5 or so people).Person
(hw 7): This class represents a single person in the game.Vehicle
(???): This class represents the player's vehicle. The
vehicle contains the party (i.e. all the people that are traveling), as
well as an Inventory (how much food, etc. the player has).Don't worry if you don't understand all of what these classes do (or why they are all needed!) at this point -- it will become more clear over the next few assignments.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |