This commit is contained in:
firefighter198
2021-10-04 23:10:35 +02:00
parent 4041338420
commit 12aeb116dd
103 changed files with 9067 additions and 1750 deletions
+25
View File
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Character : MonoBehaviour
{
public Teams team;
public abstract bool[,] GetValidMoves(Cell[,] cells, Game game);
protected bool IsPositionInGrid(int x, int y)
{
if (x < 0 || y < 0 || x > 7 || y > 7)
{
return false;
}
return true;
}
}
public enum Teams
{
White, Black
}