[FEAT] mise en place des action pour passer
This commit was merged in pull request #26.
This commit is contained in:
@@ -12,4 +12,10 @@ public class EmptyAction : IAction
|
||||
|
||||
match.NextPlayer();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public bool CanExecute(Match match)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
19
src/LittleTown.Core/UseCases/Actions/FieldAction.cs
Normal file
19
src/LittleTown.Core/UseCases/Actions/FieldAction.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace LittleTown.Core.Actions;
|
||||
|
||||
/// <summary>
|
||||
/// Action qui consiste a poser un pion sur le une case du plateau
|
||||
/// </summary>
|
||||
public class FieldAction : IAction
|
||||
{
|
||||
/// <inheritdoc/>>
|
||||
public void Execute(Match match)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>>
|
||||
public bool CanExecute(Match match)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,11 @@ public interface IAction
|
||||
/// </summary>
|
||||
/// <param name="match">le match a modifier avec cette action</param>
|
||||
public void Execute(Match match);
|
||||
|
||||
/// <summary>
|
||||
/// Verifier si cette action peut être effectuée, si elle est légale
|
||||
/// </summary>
|
||||
/// <param name="match"></param>
|
||||
/// <returns></returns>
|
||||
public bool CanExecute(Match match);
|
||||
}
|
||||
Reference in New Issue
Block a user