Ejemplo n.º 1
0
        public void Initialize()
        {
            Diplomacy.FastClear ();
            for (int i = 0; i < TeamManager.Teams.Count; i++) {
                Team team = TeamManager.Teams[i];
                if (team != this)
                    Diplomacy.AddAt (AllegianceType.Neutral, team.ID);
            }
            TeamManager.UpdateDiplomacy (this);
            this.SetAllegiance (this, AllegianceType.Friendly);

            MainController = new AgentController();
            MainController.JoinTeam (this);
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            Diplomacy.FastClear();
            for (int i = 0; i < TeamManager.Teams.Count; i++)
            {
                Team team = TeamManager.Teams[i];
                if (team != this)
                {
                    Diplomacy.AddAt(AllegianceType.Neutral, team.ID);
                }
            }
            TeamManager.UpdateDiplomacy(this);
            this.SetAllegiance(this, AllegianceType.Friendly);

            MainController = new AgentController();
            MainController.JoinTeam(this);
        }
Ejemplo n.º 3
0
 public void AddController(AgentController controller)
 {
     controller.JoinTeam(this);
 }
Ejemplo n.º 4
0
 public void AddController(AgentController controller)
 {
     controller.JoinTeam (this);
 }