quote:
Originally posted by Zanthis:
How does this "damaged" list indicate that Quantum Engine-III #6 is damaged? The components look identical, but you have six of them.
Well, I don't know the data structure for how the game was programmed, or any of those details. However, when I design something, usually each object has a unique identifier so other objects can refer to it. Simply keep a separate current damaged list, and on it you have the component ID, and the points of damage taken. Only necessary for combat, and anything on the list isn't damaged.
I only proposed that method though because you brought up the point that modifying the data structure of components to add partial damage might be a problem in terms of extra memory needed to process. Since you don't need the info outside of combat, restrict it to the combat engine only. If adding partial data info isn't a big deal, then add it. Either way, problem fixed.
-Drake