/// <summary> /// Takes a unit and moves it to a new tile /// </summary> /// <param name="selectedUnit">unit we want to move</param> /// <param name="t">tile we will move the unit to</param> public void moveUnit(Unit selectedUnit, Tile t, Unit.action action) { Unit u = selectedUnit; selectedUnit.moveToTile(t, action); gm.resetTiles(); // resets tile colors u.moved = true; }
/// <summary> /// sets the attacker to attack the defnder /// </summary> /// <param name="attaker">unit attacking</param> /// <param name="defender">unit defending</param> public void attackUnit(Unit attaker, Unit defender, Unit.action action) { attaker.attackUnit(defender, action); }