コード例 #1
0
        //----------------------------------------------------------------------------
        //              DoMove
        //----------------------------------------------------------------------------

        /// <summary>
        /// Revert the hexagons to inert <para/>
        /// Then find a path for CurrentIHasTurn to endLocation, and pass that path to Movement
        /// </summary>
        public void DoMove(IHexagon endLocation)
        {
            foreach (IHexagon hex in HexesInRange)
            {
                hex.Interaction.MakeUnselectable();
            }


            MapPath myMapPath = MyMapPathfinding.GeneratePath(CurrentIHasTurn.MyHexContents.Location, endLocation);

            MyMovement.DoMove(CurrentIHasTurn, myMapPath);
        }