public AgentManager(Game game) : base(game)
        {
            steeringBehaviors = new SteeringBehaviors();
            stateContainer = new StateContainer();

            agents = new List<Agent>();

            numberOfAgentsToSpawnOnStart = 100;

            SeekAndFleeProximity = 200f;

            rand = new Random();

            SetStatesWithSteeringBehavior();

            HasCreatedAgents = false;

            this.input = new InputController(game);

            this.stateContainer.hunt.input = this.input;
            this.stateContainer.flee.input = this.input;
        }
Exemplo n.º 2
0
        public AgentManager(Game game) : base(game)
        {
            steeringBehaviors = new SteeringBehaviors();
            stateContainer    = new StateContainer();

            agents = new List <Agent>();

            numberOfAgentsToSpawnOnStart = 100;

            SeekAndFleeProximity = 200f;

            rand = new Random();

            SetStatesWithSteeringBehavior();

            HasCreatedAgents = false;

            this.input = new InputController(game);

            this.stateContainer.hunt.input = this.input;
            this.stateContainer.flee.input = this.input;
        }