Hi
not sure is this is more of a game development thing, but I would like to know if it's possible to return the class of an object instance and then see if it matches a list of possible types I am looking for.
eg.
Code:
classType = theClassOfObject(myInstance); //this is not right but its kinda what I am wanting to do?!
if (classType == "classType_1") {
//...stuff to do it its that class
} else... //etc
I would have thought this would be possible but I just don't know what to look for. I'm sure i saw something about this somewhere else when I was looking for something else but now I can't find it! Typical! Does anyone have any *pointers
Thanks!