Ejemplo n.º 1
0
        private const int TASKS_REFRESH_TIME  = 80 * 1000; // 80 seconds
        #endregion

        #region Constructor
        public VillageTasks(Village village)
        {
            Village = village;
            GenerateTasks();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns distance between this village and target village in km.
 /// </summary>
 /// <param name="village">
 /// Target village.
 /// </param>
 /// <returns>
 /// Distance in km.
 /// </returns>
 public double GetDistanceTo(Village village)
 {
     return(Math.Abs(village.Position - Position));
 }