Пример #1
0
        private void CalculateParticlePoints(CChar agent)
        {
            var tiles = agent.Tile.Model.GetEmptyAoETiles(4);

            foreach (var tile in tiles)
            {
                this.GenerateParticlePoints(agent.Proxy.GetAIRole(), tile, agent.Proxy.LParty);
            }
            var agentRole = new AgentRoleFactory().GetAgentRole(agent.Proxy.GetAIRole());

            agentRole.ModifyParticleTilePoints(this._tiles, agent);
            this._tiles.Sort((x, y) => y.Weight.CompareTo(x.Weight));
        }
Пример #2
0
        private Dictionary <EAbility, double> GetInitialAbilityWeights()
        {
            var role = new AgentRoleFactory().GetAgentRole(this._agent.Proxy.GetAIRole());

            return(role.GetAbilityWeights(this._agent));
        }