Re: [Spaceships] Getting started on a Java-based ship builder
Possible problem, if you hardcode in the locations adding smaller systems becomes very hard.
I've got a reasonably complete FileMaker implementation done, and what I did was split the spaceship over several tables.
Weapons, habitats, open spaces are all fairly obvious but more importantly I used a spaceship table (for SM and ship wide stuff) and a systems table, where basically an entry is <ship ID>, <location>, <system>; eg Viper, F1, Laminate Armour. So if C1 gets split I rename it C1.1 and then add C1.2 & C1.3 records, all with a -1 SM modifier.
Also means I only needed to do a lot of stuff once rather than 21 times.
Don't know if that helps, but I can hope :)
|