diff --git a/axios.suo b/axios.suo index 3ec3f27..3e6dab3 100644 Binary files a/axios.suo and b/axios.suo differ diff --git a/axios/AxiosEngine.cd b/axios/AxiosEngine.cd index 489e67e..5364a5b 100644 --- a/axios/AxiosEngine.cd +++ b/axios/AxiosEngine.cd @@ -1,7 +1,7 @@  - + @@ -20,99 +20,172 @@ - + AAQAMACAAAAAAAAEACIIBAQAIAAAAAAAAAAAAAAAACQ= Engine\AxiosGameObject.cs - - - - AAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAQ= - Engine\ComplexAxiosGameObject.cs - - - + - AEQAEAABAgAAAAAgAAAAAAAAAAAAAAAAAAAAAAgAAAA= + AEQAEAABAgAAAAAgAAQAAAAAAAAAAAAAIAAAAAgAAAA= Engine\SimpleAxiosGameObject.cs - + - AAAAAIAAAAAAAgAAAAAAAAAAAAIACAAgAAIAIAAAAAQ= + AAAAEIAAAAAAAgAAAAAAAAAAAAIACAAgAAIAIAAAAAQ= Engine\SimpleDrawableAxiosGameObject.cs - + - AARoEQCCAAACAggBACAAAgAICAAAAAAAIAAAAIIAAAQ= + AARoEQCHAAACAggBACAAAgAICAAAAAAAIAAAAIIQAAQ= Engine\AxiosGameScreen.cs - + AAQAEACAAAAAAIAAAKAAAACAAAAAAAAQAAAAACAAQAQ= Engine\AxiosTimer.cs - - + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAA= Engine\Extensions\String.cs - + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAA= Engine\Extensions\Texture2D.cs - + AAAAAAAABAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAA= Engine\UI\AxiosUIObject.cs - + - AAAAAIAAAAAAAgAgAAAABAAAAAAACAAgAAIAIAgAAAQ= + AABAAIAAAAAAAgAgAAAABAAAAAAACAAoAAIAIAgAAAQ= Engine\DrawableAxiosGameObject.cs - + AAAAgAAIQAAIAAAAACAAgAAAAAAASAAAIAAAAAgCAAQ= Engine\UI\AxiosButton.cs + + + + AAAAAAAAAgABAAQBAAAAAAAAAAAgAAAAAAAAAAAAAAA= + Engine\File\AxiosFile.cs + + + + + + + AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA= + Engine\File\AxiosIsolatedFile.cs + + + + + + + AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA= + Engine\File\AxiosRegularFile.cs + + + + + + + AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA= + Engine\File\AxiosTitleFile.cs + + + + + + + AAAAAAAIAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAA= + Engine\Structures\AxiosPoint.cs + + + + + + AAAAAAAABACAAAAEAAAUAEAAABAIAAAACACAAAAAAAQ= + Engine\Structures\AxiosRectangle.cs + + + + + + AAgAAAAAAAAAAEAAAAAAAIAAEAAAAAAAAAAAAAAAAAA= + Engine\Log\AxiosLog.cs + + + + + + IAAAAEAAAAAAAAAAgAAAAgAAAAAACAAAIIACCAACAAA= + Axios_settings.cs + + - + AAQAEACAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAQ= Engine\Interfaces\IAxiosGameObject.cs - + AAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAgAAAAAAAAAAA= Engine\Interfaces\IDrawableAxiosGameObject.cs + + + + AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA= + Engine\Interfaces\IAxiosFile.cs + + + + + + AAAAAACBgAAAAAAAAQAAAAAAAQAAAAAAAAQABAAAAAA= + Engine\Log\AxiosLog.cs + + + + + + AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAICAAAA= + Axios_settings.cs + + \ No newline at end of file diff --git a/axios/Axios_settings.cs b/axios/Axios_settings.cs index 3ccc6c6..c291a56 100644 --- a/axios/Axios_settings.cs +++ b/axios/Axios_settings.cs @@ -56,7 +56,8 @@ * - RelativeToCamera * - Cleaning and sorting using statements * - * + * 1.0.1.2 - 4/1/2012 + * - Making AxiosTimer inheirt from AxiosGameObject for it to be casted properly * */ diff --git a/axios/Engine/AxiosTimer.cs b/axios/Engine/AxiosTimer.cs index 0af822d..d5e4302 100644 --- a/axios/Engine/AxiosTimer.cs +++ b/axios/Engine/AxiosTimer.cs @@ -10,7 +10,7 @@ namespace Axios.Engine * Source: http://www.gamedev.net/topic/473544-how-to-make-a-timer-using-xna/page__view__findpost__p__4107032 * */ - public class AxiosTimer : IAxiosGameObject + public class AxiosTimer : AxiosGameObject { TimeSpan interval = new TimeSpan(0, 0, 1); TimeSpan lastTick = new TimeSpan(); @@ -35,7 +35,7 @@ namespace Axios.Engine } - public void Update(AxiosGameScreen gameScreen, GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen) + public override void Update(AxiosGameScreen gameScreen, GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen) { if (_enabled) @@ -43,7 +43,11 @@ namespace Axios.Engine if (gameTime.TotalGameTime - lastTick >= interval) { if (Tick != null) + { + //EventArgs e = new EventArgs(); + Tick(this, null); + } lastTick = gameTime.TotalGameTime; } @@ -54,22 +58,22 @@ namespace Axios.Engine } } - public virtual void LoadContent(AxiosGameScreen gameScreen) + public override void LoadContent(AxiosGameScreen gameScreen) { } - public void HandleInput(AxiosGameScreen gameScreen, FarseerPhysics.SamplesFramework.InputHelper input, Microsoft.Xna.Framework.GameTime gameTime) + public override void HandleInput(AxiosGameScreen gameScreen, FarseerPhysics.SamplesFramework.InputHelper input, Microsoft.Xna.Framework.GameTime gameTime) { } - public void HandleCursor(AxiosGameScreen gameScreen, FarseerPhysics.SamplesFramework.InputHelper input) + public override void HandleCursor(AxiosGameScreen gameScreen, FarseerPhysics.SamplesFramework.InputHelper input) { } - public void UnloadContent(AxiosGameScreen gameScreen) + public override void UnloadContent(AxiosGameScreen gameScreen) { }