public Player(IWorld world, Position position, ISensor sensor, IEnumerable <IActuator> actuators, IHighLevelDecisionMaker highLevelDecisionMaker) { World = world; Sensor = sensor; _actuators = actuators; Debug.Assert(_actuators.Any()); _highLevelDecisionMaker = highLevelDecisionMaker; EntityState = new EntityState { Position = position, Strength = 1.0 }; }
public Player(IWorld world, EntityState state, ISensor sensor, IEnumerable <IActuator> actuators, IHighLevelDecisionMaker highLevelDecisionMaker) : this(world, state.Position, sensor, actuators, highLevelDecisionMaker) { EntityState.Heading = state.Heading; EntityState.Strength = state.Strength; }