Recode
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user