Without adding an extra identifier field to my super type ... is there a way for me to iterate through all of my lowest level type and determine what more specific type each of them are?
Exampe:
I have
Type entity2D
Type player Extends entity2D
Type bullet Extends entity2D
Is there a built in way to iterate through all entity2D type objects and find out which ones are of type player or bullet without adding an identifier field in the entity2D super type?
Exampe:
I have
Type entity2D
Type player Extends entity2D
Type bullet Extends entity2D
Is there a built in way to iterate through all entity2D type objects and find out which ones are of type player or bullet without adding an identifier field in the entity2D super type?