next up previous
Next: Site Limits Up: Part 3: B+ tree Previous: PM1 Design Requirements

Expanding Beyond a Site Object

In order to increase functionality of SoftWar we want to move beyond just having a collection of Site objects. Instead, we will now say that a Site has a radius.

Thus, we can identify sources of food, shelter, munitions, medical assistance, and other attractions within the radius of a site.

These new objects, which we will generically call Loci, differ from sites in that they are modeled as isolated two-dimensional points (meaning they do not have a radius...or have a radius of zero, depending on how you look at it).

There will be several types of loci that can be placed inside a site. If you use JAVA correctly you will have to create very little new code in order to implement these new objects.

Please note that all Sites are Loci, but not all Loci are Sites. That is, Site is a type of Locus.



Subsections

MM Hugue 2004-04-19