AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-05-26 18:50:00 (13 years 4 months ago)
Author:Natalie Adams
Branch:xnacc-integration
Commit:552db509979e
Parents: dbf354faa71f
Message:Adding AxiosCommandConsole for easy intergration with AxiosGameScreens

Adding the ability to get the InputState object from the ScreenManager
Changes:
Aaxios/Engine/AxiosCommandConsole.cs (full)
Maxios/Axios_WP7.csproj (1 diff)
Maxios/Axios_Windows.csproj (1 diff)
Maxios/Axios_Xbox_360.csproj (1 diff)
Maxios/ScreenSystem/ScreenManager.cs (1 diff)

File differences

axios/Axios_WP7.csproj
155155
156156
157157
158
158159
159160
160161
<Compile Include="Dynamics\TimeStep.cs" />
<Compile Include="Dynamics\World.cs" />
<Compile Include="Dynamics\WorldCallbacks.cs" />
<Compile Include="Engine\AxiosCommandConsole.cs" />
<Compile Include="Engine\AxiosEvents.cs" />
<Compile Include="Engine\AxiosGameObject.cs" />
<Compile Include="Engine\AxiosGameScreen.cs" />
axios/Axios_Windows.csproj
9898
9999
100100
101
101102
102103
103104
</ItemGroup>
<ItemGroup>
<Compile Include="Engine\AxiosBreakableGameObject.cs" />
<Compile Include="Engine\AxiosCommandConsole.cs" />
<Compile Include="Engine\AxiosEvents.cs" />
<Compile Include="Axios_settings.cs" />
<Compile Include="Collision\Collision.cs" />
axios/Axios_Xbox_360.csproj
149149
150150
151151
152
152153
153154
154155
<Compile Include="Dynamics\World.cs" />
<Compile Include="Dynamics\WorldCallbacks.cs" />
<Compile Include="Engine\AxiosBreakableGameObject.cs" />
<Compile Include="Engine\AxiosCommandConsole.cs" />
<Compile Include="Engine\AxiosEvents.cs" />
<Compile Include="Engine\AxiosGameObject.cs" />
<Compile Include="Engine\AxiosGameScreen.cs" />
axios/Engine/AxiosCommandConsole.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#if WINDOWS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XNACC.Console;
using Microsoft.Xna.Framework.Graphics;
namespace Axios.Engine
{
class AxiosCommandConsole : CommandConsoleBase
{
public AxiosCommandConsole(AxiosGameScreen gameScreen)
: base(gameScreen.ScreenManager.Game)
{
Keyboard = gameScreen.ScreenManager.InputState;
}
public AxiosCommandConsole(AxiosGameScreen gameScreen, SpriteFont font)
: base(gameScreen.ScreenManager.Game, font)
{
Keyboard = gameScreen.ScreenManager.InputState;
}
}
}
#endif
axios/ScreenSystem/ScreenManager.cs
5757
5858
5959
60
61
62
63
64
6065
6166
6267
#region Properties
public InputState InputState
{
get { return input; }
private set { input = value; }
}
public SpriteFonts Fonts
{

Archive Download the corresponding diff file

Page rendered in 1.18407s using 14 queries.