public override void Process(Entity entity) { // // This updates the Checker position (entity) that is being dragged by mouse // CurrentMouse = Mouse.GetState(); entity.Transform.Position = Scene.Camera.ScreenToWorldPoint(new Vector2(CurrentMouse.Position.X, CurrentMouse.Position.Y)); MainGameScene = entity.Scene as MainScene; //mouse entity belongs to MainScene gameBoad = MainGameScene.GameBoard; // // Get the from location of the white checker // DragComponent dc = entity.GetComponent <DragComponent>(); gameStack = dc.FromStack; boardLoc = gameStack.Tag; //white checker came from this location on the board MainGameScene.LegalMoves = gameBoad.GetWhiteLegalMoves(MainGameScene.DiceRoll, boardLoc); //StackComponent sc = gameStack.GetComponent<StackComponent>(); }
public GameState(BGBoard _board) { OrigBoard = _board; }