Quote:Original post by Jookia
But that'd require more memory wouldn't it? Why not an enum? Or some crap?
Those are speed vs flexibility tradeoffs that you have to decide for yourself. Both kinds of systems are being used out there.
Quote:Original post by Jookia
But that'd require more memory wouldn't it? Why not an enum? Or some crap?
Quote:Original post by Jookia
Yes, I don't get how to actually implement it though. Can you give me some psuedocode or something to push me in the direction?
Quote:Original post by Jookia
The problem is, isn't an entire derived class from the event class just to signal that a bool is changed a bit.. overkill?
Quote:Original post by Jookia
All I want is a unified way of sending messages and bits of data. I don't know what to do.
Should I just use functions like onX() and forget onEvent all together? Wouldn't that build up code? Ugh.
Quote:Original post by Jookia
Maybe I should design a system then try and implement it based on the design, not the other way around.