public BaseEventArgs() { this.map = new MyDictionary <string, IParable>(); this.directMap = new MyDictionary <string, IParable>(); this.units = new GameUnitSet(); this.temp = new MyDictionary <string, Stack <IParable> >(); this._functions = new CommonActions(); this._triggers = new GameTriggers(); this._componentMap = new GameComponentMap(); this._components = new GameComponents(); this._bufs = new FreeBufManager(); this._freeContext = new FreeContext(_gameContext); }
public virtual GameUnitSet Select(IEventArgs args, IGameUnit unit) { GameUnitSet resutl = new GameUnitSet(); foreach (IGameUnit gu in args.GetGameUnits()) { if (((XYZPara.XYZ)gu.GetXYZ().GetValue()).Distance(((XYZPara.XYZ)trigger.GetXYZ().GetValue())) <= range) { resutl.AddGameUnit(gu); } } return(resutl); }
public virtual void SetGameUnits(GameUnitSet units) { this.units = units; }