public PickingManager(Game game, EventDispatcher eventDispatcher, StatusType statusType, InputManagerParameters inputManagerParameters, CameraManager cameraManager, PickingBehaviourType pickingBehaviourType, float pickStartDistance, float pickEndDistance, Predicate <CollidableObject> collisionPredicate) : base(game, eventDispatcher, statusType) { this.inputManagerParameters = inputManagerParameters; this.cameraManager = cameraManager; this.pickingBehaviourType = pickingBehaviourType; this.pickStartDistance = pickStartDistance; this.pickEndDistance = pickEndDistance; this.collisionPredicate = collisionPredicate; }
public UserInputController(string id, ControllerType controllerType, Keys[] moveKeys, float moveSpeed, float strafeSpeed, float rotationSpeed, InputManagerParameters managerParameters) : base(id, controllerType) { this.moveKeys = moveKeys; this.moveSpeed = moveSpeed; this.strafeSpeed = strafeSpeed; this.rotationSpeed = rotationSpeed; this.managerParameters = managerParameters; }
public MenuManager(Game game, InputManagerParameters inputManagerParameters, CameraManager cameraManager, SpriteBatch spriteBatch, EventDispatcher eventDispatcher, StatusType statusType) : base(game, eventDispatcher, statusType) { this.menuDictionary = new Dictionary <string, List <DrawnActor2D> >(); //used to listen for input this.inputManagerParameters = inputManagerParameters; this.cameraManager = cameraManager; //used to render menu and UI elements this.spriteBatch = spriteBatch; }
public ThirdPersonController(string id, ControllerType controllerType, Actor targetActor, float distance, float scrollSpeedDistanceMultiplier, float elevationAngle, float scrollSpeedElevationMultiplier, float translationLerpSpeed, float lookLerpSpeed, InputManagerParameters inputManagerParameters) : base(id, controllerType, targetActor) { //call properties to set validation on distance and radian conversion this.Distance = distance; //allows us to control distance and elevation from the mouse scroll wheel this.ScrollSpeedDistanceMultiplier = scrollSpeedDistanceMultiplier; this.ScrollSpeedElevationMultiplier = scrollSpeedElevationMultiplier; //notice that we pass the incoming angle through the property to convert it to radians this.OriginalElevationAngle = this.ElevationAngle = elevationAngle; //dampen camera translation reaction this.translationLerpSpeed = translationLerpSpeed; //dampen camera rotation reaction this.lookLerpSpeed = lookLerpSpeed; //used to change elevation angle or distance from target - See UpdateFromScrollWheel() this.inputManagerParameters = inputManagerParameters; }
public FirstPersonCameraController(string id, ControllerType controllerType, Keys[] moveKeys, float moveSpeed, float strafeSpeed, float rotationSpeed, InputManagerParameters managerParameters, Integer2 screenCentre) : base(id, controllerType, moveKeys, moveSpeed, strafeSpeed, rotationSpeed, managerParameters) { this.screenCentre = screenCentre; }
public DriveController(string id, ControllerType controllerType, Keys[] moveKeys, float moveSpeed, float strafeSpeed, float rotationSpeed, InputManagerParameters inputManagerParameters) : base(id, controllerType, moveKeys, moveSpeed, strafeSpeed, rotationSpeed, inputManagerParameters) { }