[FEAT] mise en place des action pour passer
All checks were successful
Main Build Process / Build & Test (pull_request) Successful in 1m20s
check main state / build (8.0.x) (push) Successful in 1m29s
Main Build Process / Build & Test (push) Successful in 1m21s

This commit was merged in pull request #26.
This commit is contained in:
2026-02-05 21:13:11 +01:00
committed by mcmuzzle
parent 55750bb5e5
commit c656206513
9 changed files with 32 additions and 0 deletions

View File

@@ -12,4 +12,10 @@ public class EmptyAction : IAction
match.NextPlayer();
}
/// <inheritdoc/>
public bool CanExecute(Match match)
{
return true;
}
}

View 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;
}
}

View File

@@ -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);
}