Jesus4Lyf
Good Idea™
- Reaction score
- 397
If efficiency matters, these functions shouldn't be there. If efficiency does not matter, they should calculate the value when called, if possible. For a system without any efficiency focus to be more than just a personal system, it must have an intuitive and helpful interface (ie. not [LJASS]boolean set2D, boolean set3D[/LJASS] in my opinion).JASS:// The first boolean argument is // used to decide if you want to set the 2D distance and angle between the // caster unit's x and y and the target x and y.
I'd calculate this when you return the value, not when the event occurs... should clean up your interface a bit.