Game Development Reference
The user interface for the CruiseDirector project.
3. In the Solution Explorer window, rename Form1.vb to Cruise.vb.
4. Click the form in the editing pane and change the Text property to Cruise
5. Add a button to the form. Change the Text property to People and the Name
property to PeopleButton.
6. Add another button to the form. Change the Text property to Dump and the
Name property to DumpButton.
7. Add a third button to the form. Change the Text property to 1 Time and the
Name property to Button1Time.
8. Add a fourth button to the form. Change the Text property to 100 Times
and the Name property to Button100Times. You may need to make the
button wider to fit the text.
9. Save the project.
We will begin our design from the core data and work our way outward. To do
that, we start our thinking from the outside and work inward. We will need a
class for people. We know that each person has needs, preferences, and rela-
tionships to store. The values for all three kinds of data are integers, but we would
like to tag them with names and pass them around. Our lowest-level chunk of
data will be a simple name-value pair object. Our people class will use it, and our
mini-database will need it, too. The data is so simple that we will let other code
manipulate it directly.