Beispiel #1
0
 public UpdateTimer(GeoController controller, TimeSpan delay, TimeSpan interval)
     : base(delay, interval)
 {
     Priority  = TimerPriority.TwentyFiveMS;
     m_control = controller;
     Start();
 }
Beispiel #2
0
        public GeoController() : base(7187)
        {
            Weight = 0.0;
            Name   = "Geopolitique";
            //Movable = false;
            m_Liege   = null;
            m_Terrain = GeoTerrains.Plaine;

            m_Constructions = new List <GeoBuild>();
            m_Conseillers   = new List <GeoConseiller>();
            m_Citoyens      = new List <GeoMembre>();

            m_Projet  = new GeoBuild();
            m_Armee   = new GeoMilitaire();
            m_Revolte = new GeoRev();

            m_LastUpdate  = DateTime.Now;
            m_updateTimer = new UpdateTimer(this, TimeSpan.FromDays(1.0), TimeSpan.FromDays(1.0));
        }