From 1b5f1bfaf95a36642c249daeac79d7446cbb63d8 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Wed, 2 Jan 2013 17:08:15 -0600 Subject: [PATCH] Adding new extensions --- axios/Axios_WP7.csproj | 2 +- axios/Axios_Windows.csproj | 2 +- axios/Axios_Xbox_360.csproj | 2 +- axios/Axios_settings.cs | 1 + axios/Engine/Extensions/Camera.cs | 11 +++++++++++ axios/Engine/Extensions/MouseState.cs | 18 ++++++++++++++++++ 6 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 axios/Engine/Extensions/Camera.cs create mode 100644 axios/Engine/Extensions/MouseState.cs 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); + } + } +}