AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-04-07 13:15:00 (12 years 8 months ago)
Author:nathan@daedalus
Branch:default
Commit:25cf22fd732b
Parents: c6bbde29ce55
Message:Making AxiosTimer inheirt from AxiosGameObject for it to be casted properly

Changes:
Maxios.suo
Maxios/AxiosEngine.cd (2 diffs)
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/AxiosTimer.cs (4 diffs)

File differences

axios/AxiosEngine.cd
11
22
33
4
4
55
66
77
......
2020
2121
2222
23
23
2424
2525
2626
2727
2828
2929
30
31
30
31
3232
33
34
35
36
37
38
39
40
33
4134
4235
4336
4437
45
38
4639
47
40
4841
4942
5043
5144
5245
53
46
5447
55
48
5649
5750
5851
5952
60
53
6154
6255
6356
6457
65
6658
6759
68
60
6961
7062
7163
7264
7365
7466
75
67
7668
7769
7870
7971
8072
8173
82
74
8375
8476
8577
8678
8779
8880
89
81
9082
91
83
9284
9385
9486
9587
9688
97
89
9890
9991
10092
10193
10294
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
103155
104
156
105157
106158
107159
108160
109161
110162
111
163
112164
113165
114166
115167
116168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
117190
118191
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Class Name="Axios.Engine.AxiosEvents">
<Position X="11" Y="0.5" Width="1.5" />
<Position X="11" Y="1.25" Width="1.5" />
<NestedTypes>
<Delegate Name="Axios.Engine.AxiosEvents.AxiosHandler" Collapsed="true">
<TypeIdentifier>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.AxiosGameObject">
<Position X="5.75" Y="0.5" Width="1.5" />
<Position X="6.25" Y="0.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAQAMACAAAAAAAAEACIIBAQAIAAAAAAAAAAAAAAAACQ=</HashCode>
<FileName>Engine\AxiosGameObject.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.ComplexAxiosGameObject&lt;T&gt;">
<Position X="2.5" Y="0.5" Width="2.25" />
<Class Name="Axios.Engine.SimpleAxiosGameObject">
<Position X="8.75" Y="1.5" Width="2" />
<TypeIdentifier>
<HashCode>AAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAQ=</HashCode>
<FileName>Engine\ComplexAxiosGameObject.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.SimpleAxiosGameObject">
<Position X="8.5" Y="1.25" Width="2" />
<TypeIdentifier>
<HashCode>AEQAEAABAgAAAAAgAAAAAAAAAAAAAAAAAAAAAAgAAAA=</HashCode>
<HashCode>AEQAEAABAgAAAAAgAAQAAAAAAAAAAAAAIAAAAAgAAAA=</HashCode>
<FileName>Engine\SimpleAxiosGameObject.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.SimpleDrawableAxiosGameObject">
<Position X="5.25" Y="4.25" Width="2.75" />
<Position X="5.5" Y="4.75" Width="2.75" />
<TypeIdentifier>
<HashCode>AAAAAIAAAAAAAgAAAAAAAAAAAAIACAAgAAIAIAAAAAQ=</HashCode>
<HashCode>AAAAEIAAAAAAAgAAAAAAAAAAAAIACAAgAAIAIAAAAAQ=</HashCode>
<FileName>Engine\SimpleDrawableAxiosGameObject.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.AxiosGameScreen">
<Position X="0.5" Y="0.5" Width="1.5" />
<Position X="3.75" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AARoEQCCAAACAggBACAAAgAICAAAAAAAIAAAAIIAAAQ=</HashCode>
<HashCode>AARoEQCHAAACAggBACAAAgAICAAAAAAAIAAAAIIQAAQ=</HashCode>
<FileName>Engine\AxiosGameScreen.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.AxiosTimer">
<Position X="0.5" Y="5.75" Width="1.5" />
<Position X="3.75" Y="6" Width="1.5" />
<TypeIdentifier>
<HashCode>AAQAEACAAAAAAIAAAKAAAACAAAAAAAAQAAAAACAAQAQ=</HashCode>
<FileName>Engine\AxiosTimer.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.Extenions.AxiosExtensions_String">
<Position X="11" Y="5.75" Width="2" />
<Position X="14.5" Y="4.5" Width="2" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAA=</HashCode>
<FileName>Engine\Extensions\String.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.Extenions.AxiosExtensions_Texture2D">
<Position X="11" Y="7" Width="2.25" />
<Position X="14.5" Y="5.75" Width="2.25" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAA=</HashCode>
<FileName>Engine\Extensions\Texture2D.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.UI.AxiosUIObject">
<Position X="13" Y="2" Width="1.5" />
<Position X="12.75" Y="1.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAABAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\UI\AxiosUIObject.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.DrawableAxiosGameObject">
<Position X="15" Y="0.5" Width="2.25" />
<Position X="14.5" Y="0.5" Width="2.25" />
<TypeIdentifier>
<HashCode>AAAAAIAAAAAAAgAgAAAABAAAAAAACAAgAAIAIAgAAAQ=</HashCode>
<HashCode>AABAAIAAAAAAAgAgAAAABAAAAAAACAAoAAIAIAgAAAQ=</HashCode>
<FileName>Engine\DrawableAxiosGameObject.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.UI.AxiosButton">
<Position X="13.5" Y="3.75" Width="1.5" />
<Position X="12.75" Y="3.25" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAgAAIQAAIAAAAACAAgAAAAAAASAAAIAAAAAgCAAQ=</HashCode>
<FileName>Engine\UI\AxiosButton.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.File.AxiosFile">
<Position X="11" Y="7" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAgABAAQBAAAAAAAAAAAgAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\File\AxiosFile.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.File.AxiosIsolatedFile">
<Position X="12.75" Y="7" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\File\AxiosIsolatedFile.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.File.AxiosRegularFile">
<Position X="9" Y="8.25" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\File\AxiosRegularFile.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.File.AxiosTitleFile">
<Position X="11" Y="9.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\File\AxiosTitleFile.cs</FileName>
</TypeIdentifier>
<Lollipop Position="0.2" />
</Class>
<Class Name="Axios.Engine.Structures.AxiosPoint">
<Position X="17" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAIAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAA=</HashCode>
<FileName>Engine\Structures\AxiosPoint.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.Structures.AxiosRectangle">
<Position X="17" Y="2.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAAAABACAAAAEAAAUAEAAABAIAAAACACAAAAAAAQ=</HashCode>
<FileName>Engine\Structures\AxiosRectangle.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Engine.Log.AxiosLog">
<Position X="2" Y="0.5" Width="1.5" />
<TypeIdentifier>
<HashCode>AAgAAAAAAAAAAEAAAAAAAIAAEAAAAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\Log\AxiosLog.cs</FileName>
</TypeIdentifier>
</Class>
<Class Name="Axios.Settings">
<Position X="2" Y="4.75" Width="1.5" />
<TypeIdentifier>
<HashCode>IAAAAEAAAAAAAAAAgAAAAgAAAAAACAAAIIACCAACAAA=</HashCode>
<FileName>Axios_settings.cs</FileName>
</TypeIdentifier>
</Class>
<Interface Name="Axios.Engine.Interfaces.IAxiosGameObject">
<Position X="8.5" Y="4.25" Width="2.25" />
<Position X="8.5" Y="4.75" Width="2.25" />
<TypeIdentifier>
<HashCode>AAQAEACAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAQ=</HashCode>
<FileName>Engine\Interfaces\IAxiosGameObject.cs</FileName>
</TypeIdentifier>
</Interface>
<Interface Name="Axios.Engine.Interfaces.IDrawableAxiosGameObject">
<Position X="8.5" Y="6" Width="2.25" />
<Position X="8.5" Y="6.5" Width="2.25" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAgAAAAAAAAAAA=</HashCode>
<FileName>Engine\Interfaces\IDrawableAxiosGameObject.cs</FileName>
</TypeIdentifier>
</Interface>
<Interface Name="Axios.Engine.Interfaces.IAxiosFile">
<Position X="14.5" Y="7" Width="2.25" />
<TypeIdentifier>
<HashCode>AAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAA=</HashCode>
<FileName>Engine\Interfaces\IAxiosFile.cs</FileName>
</TypeIdentifier>
</Interface>
<Enum Name="Axios.Engine.Log.LoggingFlag">
<Position X="2" Y="2.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAAAAACBgAAAAAAAAQAAAAAAAQAAAAAAAAQABAAAAAA=</HashCode>
<FileName>Engine\Log\AxiosLog.cs</FileName>
</TypeIdentifier>
</Enum>
<Enum Name="Axios.ResolutionSetting">
<Position X="2" Y="7.75" Width="1.5" />
<TypeIdentifier>
<HashCode>AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAICAAAA=</HashCode>
<FileName>Axios_settings.cs</FileName>
</TypeIdentifier>
</Enum>
<Font Name="Tahoma" Size="8.25" />
</ClassDiagram>
axios/Axios_settings.cs
5656
5757
5858
59
59
60
6061
6162
6263
* - RelativeToCamera
* - Cleaning and sorting using statements
*
*
* 1.0.1.2 - 4/1/2012
* - Making AxiosTimer inheirt from AxiosGameObject for it to be casted properly
*
*/
axios/Engine/AxiosTimer.cs
1010
1111
1212
13
13
1414
1515
1616
......
3535
3636
3737
38
38
3939
4040
4141
......
4343
4444
4545
46
47
48
4649
50
4751
4852
4953
......
5458
5559
5660
57
61
5862
5963
6064
6165
62
66
6367
6468
6569
6670
67
71
6872
6973
7074
7175
72
76
7377
7478
7579
* 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();
}
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)
if (gameTime.TotalGameTime - lastTick >= interval)
{
if (Tick != null)
{
//EventArgs e = new EventArgs();
Tick(this, null);
}
lastTick = gameTime.TotalGameTime;
}
}
}
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)
{
}

Archive Download the corresponding diff file

Page rendered in 0.45377s using 13 queries.