OnCellClicked() public method

public OnCellClicked ( Cell, cell ) : void
cell Cell,
return void
Example #1
0
    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);
        }
    }
Example #2
0
 private void OnCellClicked(object sender, EventArgs e)
 {
     CellGridState.OnCellClicked(sender as Cell);
 }
Example #3
0
 private void OnCellClicked(Cell cell)
 {
     CellGridState.OnCellClicked(cell);
 }