Exemple #1
0
    public override MapProfile UpdateProfile(BotProfile botProfile_1)
    {
        MapProfile collectProfile;

        if (botProfile_1 == null)
        {
            collectProfile = null;
        }
        else
        {
            List <MapProfile> maps = botProfile_1.Maps;
            if (maps == null)
            {
                collectProfile = null;
            }
            else
            {
                collectProfile = maps.FirstOrDefault(new Func <MapProfile, bool>(GClass843.< > c.< > c_0.method_0));
            }
        }
        this.CollectProfile = collectProfile;
        if (this.CollectProfile != null)
        {
            this.SellProfile           = DataUtils.DeepClone <MapProfile>(this.CollectProfile);
            this.SellProfile.TargetMap = TargetMap.P52;
            MapProfile sellProfile = this.SellProfile;
            this.SellProfile.Collector           = false;
            sellProfile.Hunter                   = false;
            this.CollectProfile.CollectPalladium = true;
        }
        return(this.CollectProfile);
    }
        public Bot2()
        {
            BotProfile = new BotProfile();
            parser = new BotMessageParser();
            messenger = new MessangerService();
            handlers = new Dictionary<string, IHandler>();

            InitializeHandlers();
        }
Exemple #3
0
        public Bot2()
        {
            BotProfile = new BotProfile();
            parser     = new BotMessageParser();
            messenger  = new MessangerService();
            handlers   = new Dictionary <string, IHandler>();

            InitializeHandlers();
        }
Exemple #4
0
    public override MapProfile UpdateProfile(BotProfile botProfile_1)
    {
        if (botProfile_1 == null)
        {
            return(null);
        }
        List <MapProfile> maps = botProfile_1.Maps;

        if (maps == null)
        {
            return(null);
        }
        return(maps.FirstOrDefault(new Func <MapProfile, bool>(GClass898.< > c.< > c_0.method_0)));
    }
Exemple #5
0
    public override MapProfile UpdateProfile(BotProfile botProfile_1)
    {
        GClass844.< > c__DisplayClass5_0 CS$ < > 8__locals1 = new GClass844.< > c__DisplayClass5_0();
        CS$ < > 8__locals1.targetMap_0 = this.Map;
        if (botProfile_1 == null)
        {
            return(null);
        }
        List <MapProfile> maps = botProfile_1.Maps;

        if (maps == null)
        {
            return(null);
        }
        return(maps.FirstOrDefault(new Func <MapProfile, bool>(CS$ < > 8__locals1.method_0)));
    }
Exemple #6
0
    public void SetProfile(int id)
    {
        // Sets the profile of this AI player
        switch (id)
        {
        case 0:
            return;

        case 1:
            profile = GlobalManager.Instance.tacticalProfile;
            break;

        case 2:
            profile = GlobalManager.Instance.aggresiveProfile;
            break;

        case 3:
            profile = GlobalManager.Instance.passiveProfile;
            break;
        }
    }
Exemple #7
0
 public override MapProfile UpdateProfile(BotProfile botProfile_1)
 {
     return(null);
 }
Exemple #8
0
 public abstract MapProfile UpdateProfile(BotProfile botProfile_1);
Exemple #9
0
 public virtual void Update(BotProfile botProfile_1)
 {
     this.Profile    = botProfile_1;
     this.MapProfile = this.UpdateProfile(botProfile_1);
 }