|
From: Guyver <gu...@ho...> - 2004-06-03 11:20:40
|
Here's my reworked revision of classes for base scape. It's not lot but I ask you to revise this and comment. As for handling data in game I would suggest to go in approach similar to how relative data bases work, storing data in some kind of DataManagers similar to resource managers. In example soldiers have their own datamanager, which serializes itself in it's own special way, and each soldier to have relation where he or she belongs, like base (by base ID, while bases are managed by BaseManager which keeps relations between base id and actual object), aircraft they are assigned to. Another approach is to have bases/aircrafts to hold list of soldiers which belong to them, but it's rather not convinient, becouse soldier can belong to one base at the time and to one ship. Keeping that data in soldier's interface is better. Send sugestions how you see data storage. Guyver |