I am writing a message system for my game engine.
I am writing a message director so object types can register messages as to ease the time the handlers are in actions.
I do not want to run a for loop on a dword array to check if a certain unit type is to recieve this message for every message for every unit type.
Is there a quicker way?
Perhaps OR messages and some bit comparisons...
This I do not know how to do.




Reply With Quote