|[ LiB ]|
This chapter gave you a brief glimpse of the underlying concepts of entity storage and management concepts, which should be familiar to you from learning the SimpleMUD.
I've expanded on and improved those concepts in a number of areas, making the system more reusable and flexible, and because of this, I was able to reduce the code at higher levels. Whenever I want to make a database load a directory of entities, all I need to do is issue a command like this: DB.LoadDirectory( "data/blah/" ) .
In the next chapter, I'll show you the complete implementations of all of the entity classes, but I keep that simple as well. The actual entities are simple classes that don't have much to do with the actual game, except that they contain data. The main idea I'm trying to promote here is keeping the hard-coded stuff to a minimum, while making the actual game as flexible as possible, without making it too flexible.
|[ LiB ]|