Created 2 new projects that are basically rewrites of the other two, many many many things are missing. but I want to effectively be able to switch states and commands without having to create dependencies.

Currently you can connect and Reach the "ConnectState" from there anything you state will just be an "InvalidCommand"
This commit is contained in:
darxval_cp 2012-06-04 18:40:46 -07:00
parent bec840f5e4
commit a0c406d482
37 changed files with 960 additions and 3 deletions

View file

@ -0,0 +1,9 @@
using System.Net.Sockets;
namespace WinPC.Engine.Abstract.Core
{
public interface ICommand
{
void Execute();
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IEngine
{
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IGame
{
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IGameObject
{
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IInventory
{
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface ILogger
{
}
}

View file

@ -0,0 +1,9 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IPlayer
{
IState CurrentState { get; }
void Disconnect();
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IRealm
{
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IRoom
{
}
}

View file

@ -0,0 +1,7 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IRule
{
}
}

View file

@ -0,0 +1,9 @@
namespace WinPC.Engine.Abstract.Core
{
public interface IState
{
void Render(int index);
ICommand GetCommand();
}
}