示例#1
0
        /// <summary>
        /// Method to be called when mouse moves. Calls controller's aiming method with normalized vector2D of mouse location
        /// </summary>
        private void Aim(Object sender, MouseEventArgs e)
        {
            Vector2D aim = new Vector2D(e.X - 450, e.Y - 450);

            aim.Normalize();
            controller.Aiming(aim);
        }