Exemple #1
0
        public static Australia Create(AustraliaView v)
        {
            var o = new Australia();

            Copy.Members(v, o.Data);

            return(o);
        }
Exemple #2
0
        public static AustraliaView Create(Australia o)
        {
            var v = new AustraliaView();

            Copy.Members(o.Data, v);

            return(v);
        }
 /// <summary>
 /// Creates a new instance of GeographicSystems
 /// </summary>
 public GeographicSystems()
 {
     Africa        = new Africa();
     Antarctica    = new Antarctica();
     Asia          = new Asia();
     Australia     = new Australia();
     CountySystems = new CountySystems();
     Europe        = new Europe();
     NorthAmerica  = new NorthAmerica();
     Oceans        = new Oceans();
     SolarSystem   = new SolarSystem();
     SouthAmerica  = new SouthAmerica();
     SpheroidBased = new SpheroidBased();
     World         = new World();
 }
Exemple #4
0
    private static void SetInternalMovement()
    {
        // since each Territory can only move to a set list of other Territories
        // we need to define where you can move, from each
        // BUT: this function only deals with movement WITHIN their own continent

        // North America //
        NorthAmerica.AllMove(1, 6, 2);
        NorthAmerica.AllMove(2, 6, 7, 9); // doesnt matter if it repeats
        NorthAmerica.AllMove(3, 9, 4);
        NorthAmerica.AllMove(4, 3, 9, 7, 8);
        NorthAmerica.AllMove(5, 6, 7, 8);
        NorthAmerica.AllMove(6, 1, 2, 7, 5);
        NorthAmerica.AllMove(7, 6, 2, 9, 4, 5);
        NorthAmerica.AllMove(8, 6, 7, 5, 4);
        NorthAmerica.AllMove(9, 2, 7, 4, 3);

        // South Africa //
        SouthAmerica.AllMove(1, 2, 3);
        SouthAmerica.AllMove(2, 1, 3, 4);
        SouthAmerica.AllMove(3, 1, 2, 4);
        SouthAmerica.AllMove(4, 3, 2);

        // Europe //
        Europe.AllMove(1, 2, 4, 3, 7);
        Europe.AllMove(2, 1, 4);
        Europe.AllMove(3, 1, 4, 5, 6, 7);
        Europe.AllMove(4, 1, 2, 3, 6);
        Europe.AllMove(5, 7, 3, 6);
        Europe.AllMove(6, 4, 3, 5);
        Europe.AllMove(7, 1, 3, 5);

        // Africa // - idk why im doing t hese
        Africa.AllMove(1, 2, 5, 6);
        Africa.AllMove(2, 3, 5, 1, 6, 4);
        Africa.AllMove(3, 5, 2);
        Africa.AllMove(4, 6, 2);
        Africa.AllMove(5, 3, 1);
        Africa.AllMove(6, 1, 2, 4);

        // Asia //
        Asia.AllMove(1, 2, 3, 11, 7);
        Asia.AllMove(2, 10, 11, 1, 3, 9, 8);
        Asia.AllMove(3, 7, 1, 2, 9);
        Asia.AllMove(4, 10, 12, 6, 8);
        Asia.AllMove(5, 8, 6);
        Asia.AllMove(6, 12, 4, 8, 5);
        Asia.AllMove(7, 1, 3);
        Asia.AllMove(8, 10, 4, 5, 2);
        Asia.AllMove(9, 3, 2);
        Asia.AllMove(10, 11, 2, 8, 4, 12);
        Asia.AllMove(11, 1, 2, 10);
        Asia.AllMove(12, 10, 4, 6);

        // Australia
        Australia.AllMove(1, 3, 4);
        Australia.AllMove(2, 3, 4);
        Australia.AllMove(3, 1, 2, 4);
        Australia.AllMove(4, 2, 1, 3, 5);
        Australia.AllMove(5, 4);
    }
Exemple #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Australia obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Australia obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #7
0
        private void reset()// reseta todos os pontos para proxima fase
        {
            saoPaulo      = new SaoPaulo();
            bahia         = new Bahia();
            caribe        = new Caribe();
            usa_leste     = new USA_Leste();
            usa_oeste     = new USA_Oeste();
            japao         = new Japao();
            china         = new China();
            tailandia     = new Tailandia();
            australia     = new Australia();
            unitedKingdom = new UnitedKingdom();
            africaCentral = new AfricaCentral();
            africaSul     = new AfricaSul();
            india         = new India();

            saoPaulo.getCondicao(true);
            bahia.getCondicao(true);
            caribe.getCondicao(true);
            usa_leste.getCondicao(true);
            usa_oeste.getCondicao(true);
            japao.getCondicao(true);
            china.getCondicao(true);
            tailandia.getCondicao(true);
            australia.getCondicao(true);
            unitedKingdom.getCondicao(true);
            africaCentral.getCondicao(true);
            africaSul.getCondicao(true);
            india.getCondicao(true);
            europaLeste.getCondicao(true);
            europaOeste.getCondicao(true);

            saoPaulo.getBloquedo(false);
            bahia.getBloquedo(false);
            caribe.getBloquedo(false);
            usa_leste.getBloquedo(false);
            usa_oeste.getBloquedo(false);
            japao.getBloquedo(false);
            china.getBloquedo(false);
            tailandia.getBloquedo(false);
            australia.getBloquedo(false);
            unitedKingdom.getBloquedo(false);
            africaCentral.getBloquedo(false);
            africaSul.getBloquedo(false);
            india.getBloquedo(false);
            europaLeste.getBloquedo(false);
            europaOeste.getBloquedo(false);

            saoPaulo.get_pct(pctSaoPaulo);
            bahia.get_pct(pctBahia);
            caribe.get_pct(pctCaribe);
            usa_leste.get_pct(pct_USA_Leste);
            usa_oeste.get_pct(pct_USA_Oeste);
            japao.get_pct(pctJapao);
            china.get_pct(pctChina);
            tailandia.get_pct(pctTailandia);
            australia.get_pct(pctAustralia);
            unitedKingdom.get_pct(pct_UnitedKingdom);
            africaCentral.get_pct(pctAfricaCenter);
            africaSul.get_pct(pctAfricaSul);
            india.get_pct(pctIndia);
            europaLeste.get_pct(pctEuropaLeste);
            europaOeste.get_pct(pctEuropaOeste);

            saoPaulo.mudarPonto();
            bahia.mudarPonto();
            caribe.mudarPonto();
            usa_leste.mudarPonto();
            usa_oeste.mudarPonto();
            japao.mudarPonto();
            china.mudarPonto();
            tailandia.mudarPonto();
            australia.mudarPonto();
            unitedKingdom.mudarPonto();
            africaCentral.mudarPonto();
            africaSul.mudarPonto();
            india.mudarPonto();
            europaOeste.mudarPonto();
            europaLeste.mudarPonto();
        }