示例#1
0
        public AgentBase(string agentType, IIndicatorProvider indicatorProvider)
        {
            AgentType = agentType;
            Position  = new Vector2(0.0f);

            Indicators = indicatorProvider.CreateIndicatorCollection();
            _modifiers = new VersionedCollection <IModifier>(new SimpleSortedList <IModifier>(StatModelComparer));
            _labels    = new VersionedCollection <ILabel>(new HashSet <ILabel>());
            _commands  = new VersionedCollection <IAgentCommand>(new HashSet <IAgentCommand>());

            _stats = new BaseStatsModel();
        }
示例#2
0
 public AttackEventArgs(IAgent source, IAgent target)
 {
     Source     = source;
     Target     = target;
     StatsDelta = new BaseStatsModel();
 }