added player class, PlayerControl.cs, Enemy.cs, IUnit interface

This commit is contained in:
dddushesss 2021-12-14 16:39:58 +03:00
parent fa9398993e
commit c7608864ea
9 changed files with 91 additions and 0 deletions

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 04b2df800b0845c4bcc95f0b85df5ac8
timeCreated: 1639488784

View File

@ -0,0 +1,22 @@
using HexFiled;
namespace Chars
{
public class Enemy : IUnit
{
public void Move(HexCoordinates coordinates)
{
throw new System.NotImplementedException();
}
public void Spawn()
{
throw new System.NotImplementedException();
}
public void Death()
{
throw new System.NotImplementedException();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0a9b8eff7bb74f8ca38e1d6d8e9a2757
timeCreated: 1639488978

View File

@ -0,0 +1,11 @@
using HexFiled;
namespace Chars
{
public interface IUnit
{
public void Move(HexCoordinates coordinates);
public void Spawn();
public void Death();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 478a54a7aa274988b997c4f96761e5e4
timeCreated: 1639488877

View File

@ -0,0 +1,24 @@
using HexFiled;
namespace Chars
{
public class Player : IUnit
{
private HexCoordinates _curentPosition;
public void Move(HexCoordinates coordinates)
{
throw new System.NotImplementedException();
}
public void Spawn()
{
throw new System.NotImplementedException();
}
public void Death()
{
throw new System.NotImplementedException();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 0757c78a3a7349caa9e9ba28aa2d7f57
timeCreated: 1639488785

View File

@ -0,0 +1,19 @@
using Runtime.Controller;
namespace Chars
{
public class PlayerControl : IExecute
{
private Player _player;
public PlayerControl(Player player)
{
_player = player;
}
public void Execute()
{
throw new System.NotImplementedException();
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2bd7dcb85acf4031bdf9c28ba7289e77
timeCreated: 1639489004