Example #1
0
		//private bool m_AdminInUse;
		
		public TownStone(POMI Pomi) : base( 0xED4 )
		{
			m_Pomi = Pomi;
			m_Citoyens = new ArrayList();
			m_Candidats = new ArrayList();
			m_HLL = new ArrayList();
			m_Allies = new ArrayList();
			m_Paix = new ArrayList();
			m_Guerre = new ArrayList();
			m_Neutre = new ArrayList();
			m_Maire = null;
			m_Conseiller = null;
			m_Ambassadeur = null;
			m_Capitaine = null;
			m_Gardes = new ArrayList();
			m_gardes_pnj = new ArrayList();
			m_MaireCloak = null;
			m_ConseillerCloak = null;
			m_AmbassadeurCloak = null;
			m_CapitaineCloak = null;
			m_CapitaineBook = null;
			m_GardeCloak = new ArrayList();
			Name = "Pierre de ville";
			m_Nom = "Sans nom";
			m_Votants = new ArrayList();
			m_Elections = new ArrayList();
			m_Resultats = new ArrayList();
			m_ElecDelay = TimeSpan.FromDays( 14.0 );
			m_EndDate = DateTime.Now + m_ElecDelay;
			m_ElecTimer = new ElectionTimer(this, m_ElecDelay);
			m_ElecTimer.Start();
			m_MaxDistance = 100;
			//m_AdminInUse = false;			
		}
Example #2
0
        //private bool m_AdminInUse;

        public TownStone(POMI Pomi) : base(0xED4)
        {
            m_Pomi             = Pomi;
            m_Citoyens         = new ArrayList();
            m_Candidats        = new ArrayList();
            m_HLL              = new ArrayList();
            m_Allies           = new ArrayList();
            m_Paix             = new ArrayList();
            m_Guerre           = new ArrayList();
            m_Neutre           = new ArrayList();
            m_Maire            = null;
            m_Conseiller       = null;
            m_Ambassadeur      = null;
            m_Capitaine        = null;
            m_Gardes           = new ArrayList();
            m_gardes_pnj       = new ArrayList();
            m_MaireCloak       = null;
            m_ConseillerCloak  = null;
            m_AmbassadeurCloak = null;
            m_CapitaineCloak   = null;
            m_CapitaineBook    = null;
            m_GardeCloak       = new ArrayList();
            Name        = "Pierre de ville";
            m_Nom       = "Sans nom";
            m_Votants   = new ArrayList();
            m_Elections = new ArrayList();
            m_Resultats = new ArrayList();
            m_ElecDelay = TimeSpan.FromDays(14.0);
            m_EndDate   = DateTime.Now + m_ElecDelay;
            m_ElecTimer = new ElectionTimer(this, m_ElecDelay);
            m_ElecTimer.Start();
            m_MaxDistance = 100;
            //m_AdminInUse = false;
        }
Example #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
            {
                m_VilleRace = (VilleRaciale)reader.ReadByte();

                goto case 0;
            }

            case 0:
            {
                m_Citoyens         = reader.ReadMobileList();
                m_Candidats        = reader.ReadMobileList();
                m_HLL              = reader.ReadMobileList();
                m_Gardes           = reader.ReadMobileList();
                m_gardes_pnj       = reader.ReadItemList();
                m_Maire            = (PlayerMobile)reader.ReadMobile();
                m_Conseiller       = (PlayerMobile)reader.ReadMobile();
                m_Ambassadeur      = (PlayerMobile)reader.ReadMobile();
                m_Capitaine        = (PlayerMobile)reader.ReadMobile();
                m_Pomi             = (POMI)reader.ReadItem();
                m_MaireCloak       = (PomiCloak)reader.ReadItem();
                m_ConseillerCloak  = (PomiCloak)reader.ReadItem();
                m_AmbassadeurCloak = (PomiCloak)reader.ReadItem();
                m_CapitaineCloak   = (PomiCloak)reader.ReadItem();
                m_CapitaineBook    = (CapitaineBook)reader.ReadItem();
                m_GardeCloak       = reader.ReadItemList();
                m_Nom              = reader.ReadString();
                m_Charte0          = reader.ReadString();
                m_Charte1          = reader.ReadString();
                m_Charte2          = reader.ReadString();
                m_Charte3          = reader.ReadString();
                m_Charte4          = reader.ReadString();
                m_Charte5          = reader.ReadString();
                m_Charte6          = reader.ReadString();
                m_Charte7          = reader.ReadString();
                m_Votants          = reader.ReadMobileList();
                m_Elections        = reader.ReadMobileList();
                m_Resultats        = reader.ReadMobileList();
                m_EndDate          = reader.ReadDateTime();
                m_ElecTimer        = new ElectionTimer(this, m_EndDate - DateTime.Now);
                m_ElecTimer.Start();
                m_ElecDelay   = reader.ReadTimeSpan();
                m_MaxDistance = reader.ReadInt();
                m_Allies      = reader.ReadItemList();
                m_Paix        = reader.ReadItemList();
                m_Guerre      = reader.ReadItemList();
                m_Neutre      = reader.ReadItemList();
                m_Box         = (TownBox)reader.ReadItem();
                break;
            }
            }
        }
Example #4
0
 public void Initialisation()
 {
     m_Citoyens.Clear();
     m_Candidats.Clear();
     m_HLL.Clear();
     m_Allies.Clear();
     m_Paix.Clear();
     m_Guerre.Clear();
     m_Neutre.Clear();
     if (m_Maire != null)
     {
         m_Maire.Title = null;
     }
     m_Maire = null;
     m_Nom   = "Sans nom";
     Name    = "Pierre de ville";
     Hue     = 0;
     NouveauConseil();
     m_ElecTimer.Stop();
     m_ElecTimer = new ElectionTimer(this, m_ElecDelay);
     m_ElecTimer.Start();
     m_VilleRace = VilleRaciale.Aucune;
 }
Example #5
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version ) 
			{ 
				case 1:
				{
					m_VilleRace = (VilleRaciale)reader.ReadByte();
					
					goto case 0;
				}

				case 0:
				{

					m_Citoyens = reader.ReadMobileList();
					m_Candidats = reader.ReadMobileList();
					m_HLL = reader.ReadMobileList();
					m_Gardes = reader.ReadMobileList();
					m_gardes_pnj = reader.ReadItemList();
					m_Maire = (PlayerMobile)reader.ReadMobile();
					m_Conseiller = (PlayerMobile)reader.ReadMobile();
					m_Ambassadeur = (PlayerMobile)reader.ReadMobile();
					m_Capitaine = (PlayerMobile)reader.ReadMobile();
					m_Pomi = (POMI)reader.ReadItem();	
					m_MaireCloak = (PomiCloak)reader.ReadItem();
					m_ConseillerCloak = (PomiCloak)reader.ReadItem();
					m_AmbassadeurCloak = (PomiCloak)reader.ReadItem();
					m_CapitaineCloak = (PomiCloak)reader.ReadItem();
					m_CapitaineBook = (CapitaineBook)reader.ReadItem();
					m_GardeCloak = reader.ReadItemList();
					m_Nom = reader.ReadString();
					m_Charte0 = reader.ReadString();
					m_Charte1 = reader.ReadString();
					m_Charte2 = reader.ReadString();
					m_Charte3 = reader.ReadString();
					m_Charte4 = reader.ReadString();
					m_Charte5 = reader.ReadString();
					m_Charte6 = reader.ReadString();
					m_Charte7 = reader.ReadString();
					m_Votants = reader.ReadMobileList();
					m_Elections = reader.ReadMobileList();
					m_Resultats = reader.ReadMobileList();
					m_EndDate = reader.ReadDateTime();
					m_ElecTimer = new ElectionTimer(this, m_EndDate - DateTime.Now);
					m_ElecTimer.Start();
					m_ElecDelay = reader.ReadTimeSpan();
					m_MaxDistance = reader.ReadInt();
					m_Allies = reader.ReadItemList();
					m_Paix = reader.ReadItemList();
					m_Guerre = reader.ReadItemList();
					m_Neutre = reader.ReadItemList();
					m_Box = (TownBox)reader.ReadItem();
					break;
				}
			}

	}
Example #6
0
		public void Initialisation()
		{
			m_Citoyens.Clear();
			m_Candidats.Clear();
			m_HLL.Clear();
			m_Allies.Clear();
			m_Paix.Clear();
			m_Guerre.Clear();
			m_Neutre.Clear();
			if(m_Maire != null)
				m_Maire.Title = null;
			m_Maire = null;
			m_Nom = "Sans nom";
			Name = "Pierre de ville";
			Hue = 0;
			NouveauConseil();
			m_ElecTimer.Stop();
			m_ElecTimer = new ElectionTimer(this, m_ElecDelay);
			m_ElecTimer.Start();
			m_VilleRace = VilleRaciale.Aucune;
		}