コード例 #1
0
ファイル: Crew.cs プロジェクト: sercril/SpaceIsFun
        public void Move(List <Vector2> path)
        {
            //I have a dream that one day this function will exist, that it will tell the sprite where to move, and the sprite will move there as decreed by the mighty A* algorithm given to us by Peter Hart, Nils Nilsson and Bertram Raphael of the hallowed Stanford Research Instituteendregion


            foreach (Vector2 point in path)
            {
                Vector2 p = new Vector2((point.X - 50) / 32, (point.Y - 50) / 32);
                System.Diagnostics.Debug.WriteLine("Crew Man {0} : {1}", this.UID, p.ToString());
            }

            sprite.setPath(path);
        }