Tagged GameComponents as completed, but untested.

This commit is contained in:
Glatzemann 2012-08-29 12:46:08 +00:00
parent 9d26578a36
commit 00dabcf111
5 changed files with 31 additions and 13 deletions

View File

@ -1,6 +1,7 @@
#region Using Statements #region Using Statements
using System; using System;
using ANX.Framework.Graphics; using ANX.Framework.Graphics;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -10,10 +11,28 @@ using ANX.Framework.Graphics;
namespace ANX.Framework namespace ANX.Framework
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public class DrawableGameComponent : GameComponent, IDrawable public class DrawableGameComponent : GameComponent, IDrawable
{ {
#region Private Members
private bool isInitialized; private bool isInitialized;
private IGraphicsDeviceService device; private IGraphicsDeviceService device;
private int drawOrder;
private bool visible = true;
#endregion
#region Events
public event EventHandler<EventArgs> DrawOrderChanged;
public event EventHandler<EventArgs> VisibleChanged;
#endregion
public DrawableGameComponent(Game game)
: base(game)
{
}
public GraphicsDevice GraphicsDevice public GraphicsDevice GraphicsDevice
{ {
@ -27,8 +46,6 @@ namespace ANX.Framework
} }
} }
private int drawOrder;
public int DrawOrder public int DrawOrder
{ {
get { return drawOrder; } get { return drawOrder; }
@ -42,8 +59,6 @@ namespace ANX.Framework
} }
} }
private bool visible = true;
public bool Visible public bool Visible
{ {
get { return visible; } get { return visible; }
@ -57,15 +72,6 @@ namespace ANX.Framework
} }
} }
public event EventHandler<EventArgs> DrawOrderChanged;
public event EventHandler<EventArgs> VisibleChanged;
public DrawableGameComponent(Game game)
: base(game)
{
}
protected virtual void OnDrawOrderChanged(object sender, EventArgs arg) protected virtual void OnDrawOrderChanged(object sender, EventArgs arg)
{ {
if (DrawOrderChanged != null) if (DrawOrderChanged != null)

View File

@ -6,6 +6,7 @@ using ANX.Framework.Graphics;
using ANX.Framework.NonXNA; using ANX.Framework.NonXNA;
using ANX.Framework.NonXNA.PlatformSystem; using ANX.Framework.NonXNA.PlatformSystem;
using System.Collections.Generic; using System.Collections.Generic;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -15,6 +16,8 @@ using System.Collections.Generic;
namespace ANX.Framework namespace ANX.Framework
{ {
[PercentageComplete(30)]
[TestState(TestStateAttribute.TestState.Untested)]
public class Game : IDisposable public class Game : IDisposable
{ {
private IGraphicsDeviceManager graphicsDeviceManager; private IGraphicsDeviceManager graphicsDeviceManager;

View File

@ -1,5 +1,6 @@
#region Using Statements #region Using Statements
using System; using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -10,6 +11,8 @@ using System;
namespace ANX.Framework namespace ANX.Framework
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public class GameComponent : IGameComponent, IUpdateable, IDisposable public class GameComponent : IGameComponent, IUpdateable, IDisposable
{ {
private bool enabled = true; private bool enabled = true;

View File

@ -1,6 +1,7 @@
#region Using Statements #region Using Statements
using System; using System;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -10,6 +11,8 @@ using System.Collections.ObjectModel;
namespace ANX.Framework namespace ANX.Framework
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public sealed class GameComponentCollection : Collection<IGameComponent> public sealed class GameComponentCollection : Collection<IGameComponent>
{ {
#region Events #region Events

View File

@ -1,5 +1,6 @@
#region Using Statements #region Using Statements
using System; using System;
using ANX.Framework.NonXNA.Development;
#endregion // Using Statements #endregion // Using Statements
@ -10,6 +11,8 @@ using System;
namespace ANX.Framework namespace ANX.Framework
{ {
[PercentageComplete(100)]
[TestState(TestStateAttribute.TestState.Untested)]
public class GameComponentCollectionEventArgs : EventArgs public class GameComponentCollectionEventArgs : EventArgs
{ {
public GameComponentCollectionEventArgs(IGameComponent gameComponent) public GameComponentCollectionEventArgs(IGameComponent gameComponent)