DemoProductions / shmup

3 stars 2 forks source link

Tracking issue and flag class #74

Closed ghost closed 8 years ago

ghost commented 8 years ago

59

Flag class with members isTrackable and isInvincible(commented out for now).

Can we assume that all gameobjects with Team components also have Flag components? Then can just exclude gamebjects that are not trackable within the lambda statement that gets gameobjects within range (line 41). Otherwise I run into issues where I am getting the Flag component from gameobjects which do not have a Flag component.

Or can add logic in line 41 to exclude gameobjects that do not have Flag. And then check if the remaining gameobjects are trackable

flip40 commented 8 years ago

Other than those two changes looks good.