public override void Move(Cell destinationCell, List <Cell> path) { // (Cell as MyOtherHexagon).IsSkyTaken = false; // (destinationCell as MyOtherHexagon).IsSkyTaken = true; base.Move(destinationCell, path); }
public override bool IsCellTraversable(Cell cell) { // return !(cell as MyOtherHexagon).IsSkyTaken;//Allows unit to move through any cell that is not occupied by a flying unit. return(false); }