internal void delete_effect(object selected) { no_of_effects = 0; Effect[] newe = new Effect[sys.MaxEffectStackSize]; for (int i = 0; i < no_of_effects; i++) { if( ! effects[i].Equals(selected)) { newe[no_of_effects] = effects[i]; no_of_effects++; } } }
public void add_effect(Effect e) { effects[no_of_effects] = e; no_of_effects++; }