Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » FreeStars » Design Delimma
Re: Design Delimma Fri, 26 March 2004 07:07 Go to previous messageGo to previous message
Ptolemy is currently offline Ptolemy

 
Commander

Messages: 1008
Registered: September 2003
Location: Finland

If you use a generic component class that contains all potential variables, all that would be needed is to return null for any variable that the component doesn't have. There isn't any reason that you couldn't have an engine with a shield component for example.

A component type needs to be used to define what type of slot the component occupies and the class contains all variables that any component could have - only one class is then needed.

Ptolemy





Though we often ask how and why, we must also do to get the answers to the questions.

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:44:20 EDT 2024