Ejemplo n.º 1
0
 public Autobalancer(CustomGame cg, SlotObservation observation, BotManager bots, SlotManipulation manipulation)
 {
     _cg           = cg;
     _observation  = observation;
     _bots         = bots;
     _manipulation = manipulation;
 }
Ejemplo n.º 2
0
 public TeamScrambler(CustomGame cg, Config cfg, BotManager bots, SlotObservation observation,
                      SlotManipulation manipulation)
 {
     _cg           = cg;
     _cfg          = cfg;
     _bots         = bots;
     _observation  = observation;
     _manipulation = manipulation;
 }
Ejemplo n.º 3
0
    public GameManager(CustomGame cg, Config cfg)
    {
        Cg  = cg;
        Cfg = cfg;

        DebugUtils.Debug = Cfg.Debug;
        DebugUtils.Cg    = Cg;

        Observation  = new SlotObservation(cg);
        Manipulation = new SlotManipulation(Observation, Cg.Interact);

        Resetter resetter = new Resetter(Cg);

        Bots         = new BotManager(cfg, cg.AI, Observation, resetter);
        Scrambler    = new TeamScrambler(Cg, Cfg, Bots, Observation, Manipulation);
        Autobalancer = new Autobalancer(Cg, Observation, Bots, Manipulation);

        Chatter = new Chatter(Cg.Chat, Cfg, Observation, Bots);
        Match   = new MatchTracker(Chatter, Cg);
    }