private void OnCellClicked(object sender, EventArgs e) { //Can only move when is units turn and player selected move /*if (canMove) CellGridState.OnCellClicked(sender as Cell); * else * {*/ if (CellGridState is CellGridStateUnitSelected) { //TODO: Käy läpi kaikki naapurit... /*(sender as Cell).GetNeighbours(Cells).ForEach(each => { * //Värjätään kaikki cellit, joihin isketään AOE:lla * });*/ CellGridState.OnCellClicked(sender as Cell); } }
private void OnCellClicked(object sender, EventArgs e) { CellGridState.OnCellClicked(sender as Cell); }
private void OnCellClicked(Cell cell) { CellGridState.OnCellClicked(cell); }