IL | Zoning system, targetClass implementation
Posted: Tue Aug 09, 2011 1:08 pm
/!\ If you have no idea of what I talk just don't post... Spare me "Update to Freya/HI5" answers aswell.
Well I post to Legacy, but I currently implemented Freya zoning implementation using IL zones.
As you perhpas know, some areas affect only a certain instance type (such as stakato zones, bighead zones, etc). Before that was hardcoded, but since Freya it's DP side (as it should).
I would like to implement "targetClass". I got a problem on isAffected( method, as you currently use isInstanceType. I don't want implement that crap, which is heavy only for that (you use it for handlers too, but I don't need).
My question is simple : can I do it from a string using Class.forName( ? More generally, can I find back a Class from a String, and doing a check (using instanceof) from it ?
If no, what would you suggest ?
Well I post to Legacy, but I currently implemented Freya zoning implementation using IL zones.
As you perhpas know, some areas affect only a certain instance type (such as stakato zones, bighead zones, etc). Before that was hardcoded, but since Freya it's DP side (as it should).
I would like to implement "targetClass". I got a problem on isAffected( method, as you currently use isInstanceType. I don't want implement that crap, which is heavy only for that (you use it for handlers too, but I don't need).
My question is simple : can I do it from a string using Class.forName( ? More generally, can I find back a Class from a String, and doing a check (using instanceof) from it ?
If no, what would you suggest ?