Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » FreeStars » Design Delimma
Re: Design Delimma Sun, 11 April 2004 14:57 Go to previous messageGo to previous message
LEit is currently offline LEit

 
Lt. Commander

Messages: 879
Registered: April 2003
Location: CT
LEit wrote on Fri, 13 June 2003 15:26

Make Component class generic enough to handle every combination (put shield and armor and all other variables into it) and have it return some default value if a particular component isn't defined.


This is what the code has now. They are in an xml file, that is read into an array (deque really).

Kotk described what we have very closly. I'm pretty sure some of the names are different. And slot[0] isn't the hull, a Ship has a Hull and a array (deque) of Slots.

And then the properties know how to aggrigate themselves over a collection (for example: mass is sum over all, scanners are max of some complex forumla, etc).



- LEit

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Just how flexible?
Next Topic: Planet Transfer
Goto Forum:
  


Current Time: Thu Jul 04 00:26:41 EDT 2024