11-10-2013, 08:43 PM
(11-10-2013, 08:24 PM)puggsoy Wrote: Not really understanding this. What would the class look like, and what would it be used for?
It'd have 3 values in it; baseValue, curValue and maxValue. It's used to consolidate data for stats like HP into single objects instead of 3 separate variables.
Like, say when creating it it's created with a value of 20 and it represents HP. I later increase the maximum by 5 and later still, the card of which this data object belongs to takes 10 damage.
baseValue is 20
curValue is 15
maxValue is 25
baseValue may be superfluous but I think knowing the base value might be useful.