diff --git a/axios/Axios_WP7.csproj b/axios/Axios_WP7.csproj index 27fb8c7..52c449f 100644 --- a/axios/Axios_WP7.csproj +++ b/axios/Axios_WP7.csproj @@ -171,9 +171,9 @@ + - diff --git a/axios/Axios_Windows.csproj b/axios/Axios_Windows.csproj index b5972c2..538e531 100644 --- a/axios/Axios_Windows.csproj +++ b/axios/Axios_Windows.csproj @@ -214,9 +214,9 @@ + - diff --git a/axios/Axios_Xbox_360.csproj b/axios/Axios_Xbox_360.csproj index ad26ced..1af380f 100644 --- a/axios/Axios_Xbox_360.csproj +++ b/axios/Axios_Xbox_360.csproj @@ -164,9 +164,9 @@ + - diff --git a/axios/Axios_settings.cs b/axios/Axios_settings.cs index 2bf2dce..6a456ce 100644 --- a/axios/Axios_settings.cs +++ b/axios/Axios_settings.cs @@ -116,6 +116,7 @@ * - Adding Factory for Texture2D to create from a list (ie lay a list of texture2D row by row) * - Adding AddScreen method to ScreenManager to make the PlayerIndex optional (default of PlayerIndex.One) * - Adding visible flag to DrawableAxiosGameObject and SimpleDrawableAxiosGameObject + * - Adding extension to mousestate (Position) to get a Vector2 object of the position * */ #endregion diff --git a/axios/Engine/Extensions/Camera.cs b/axios/Engine/Extensions/Camera.cs new file mode 100644 index 0000000..1be06e0 --- /dev/null +++ b/axios/Engine/Extensions/Camera.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Axios.Engine.Extensions +{ + public static class Camera + { + } +} diff --git a/axios/Engine/Extensions/MouseState.cs b/axios/Engine/Extensions/MouseState.cs new file mode 100644 index 0000000..2536306 --- /dev/null +++ b/axios/Engine/Extensions/MouseState.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Input; +using GameStateManagement; + +namespace Axios.Engine.Extensions +{ + public static class MoustStateExtensions + { + public static Vector2 Position(this MouseState input) + { + return new Vector2(input.X, input.Y); + } + } +}