diff options
Major Business Logic Implementation
* Added GameHub
* Added Back-End Game Loop and Game Mechanics
* Added End Game and Result message
1 files changed, 38 insertions, 0 deletions
| -rw-r--r-- | src/Web/PUSG.Web/Services/IGameService.cs | 38 |
diff --git a/src/Web/PUSG.Web/Services/IGameService.cs b/src/Web/PUSG.Web/Services/IGameService.cs new file mode 100644 index 0000000..52a4389 --- /dev/null +++ b/src/Web/PUSG.Web/Services/IGameService.cs @@ -0,0 +1,38 @@ +using PUSG.Web.Models; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace PUSG.Web.Static +{ + public interface IGameService + { + Task CreateGameSession(string blueClientId, string redClientId); + + Task DestroyGameSession(string clientId); + + GameSession this[string clientId] { get; set; } + + List<string> Waiting { get; } + + ConcurrentDictionary<string, string> PlayerUsernames { get; } + + ConcurrentDictionary<string, string> OtherPlayer { get; } + + ConcurrentDictionary<string, string> PlayerColor { get; } + + void Shoot(string clientId); + + void MoveUp(string clientId); + + void MoveRight(string clientId); + + void MoveDown(string clientId); + + void MoveLeft(string clientId); + + void RotateLeft(string clientId); + + void RotateRight(string clientId); + } +} |