Ejemplo n.º 1
0
    private static void SetExternalMovement()
    {
        // movement allowed intercontinenally
        // some pairs have been put twice
        // others have been ommited if previously done

        // North America
        NorthAmerica.PairMove(1, Asia, 6);         // sea
        NorthAmerica.PairMove(5, Europe, 2);       // sea
        NorthAmerica.PairMove(3, SouthAmerica, 4); // land

        // South America
        SouthAmerica.PairMove(2, Africa, 5);       // sea
        SouthAmerica.PairMove(4, NorthAmerica, 3); // land

        // Europe
        Europe.PairMove(2, NorthAmerica, 5); // sea
        Europe.PairMove(7, Africa, 5);       // s
        Europe.PairMove(5, Africa, 3);       // s
        Europe.PairMove(5, Asia, 7);         // l
        Europe.PairMove(6, Asia, 7, 1, 11);  // l

        // Africa
        Africa.PairMove(5, SouthAmerica, 2); // l
        Africa.PairMove(3, Europe, 5);       // l
        Africa.PairMove(3, Asia, 7);         // l
        Africa.PairMove(2, Asia, 7);         // s

        // Asia
        Asia.PairMove(9, Australia, 2);
    }
Ejemplo n.º 2
0
        public static Europe Create(EuropeView v)
        {
            var o = new Europe();

            Copy.Members(v, o.Data);

            return(o);
        }
Ejemplo n.º 3
0
        public static EuropeView Create(Europe o)
        {
            var v = new EuropeView();

            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();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a new instance of Projected
 /// </summary>
 public ProjectedSystems()
 {
     Africa = new Africa();
     Asia   = new Asia();
     Europe = new Europe();
     GausKrugerBeijing1954   = new GaussKrugerBeijing1954();
     GausKrugerOther         = new GaussKrugerOther();
     GaussKrugerPulkovo1942  = new GaussKrugerPulkovo1942();
     KrugerZian1980          = new KrugerZian1980();
     MinnesotaCounties       = new Minnesota();
     Nad1983IntlFeet         = new Nad1983IntlFeet();
     NationalGrids           = new NationalGrids();
     NationalGridsAustralia  = new NationalGridsAustralia();
     NationalGridsCanada     = new NationalGridsCanada();
     NationalGridsIndia      = new NationalGridsIndia();
     NationalGridsJapan      = new NationalGridsJapan();
     NationalGridsNewZealand = new NationalGridsNewZealand();
     NationalGridsNorway     = new NationalGridsNorway();
     NationalGridsSweden     = new NationalGridsSweden();
     NorthAmerica            = new NorthAmerica();
     Polar                     = new Polar();
     SouthAmerica              = new SouthAmerica();
     SpheroidBased             = new SpheroidBased();
     StatePlaneNad1927         = new StatePlaneNad1927();
     StatePlaneNad1983         = new StatePlaneNad1983();
     StatePlaneNad1983Feet     = new StatePlaneNad1983Feet();
     StatePlaneNad1983Harn     = new StatePlaneNad1983Harn();
     StatePlaneNad1983HarnFeet = new StatePlaneNad1983HarnFeet();
     StatePlaneOther           = new StatePlaneOther();
     StateSystems              = new StateSystems();
     TransverseMercator        = new TransverseMercatorSystems();
     UtmNad1927                = new UtmNad1927();
     UtmNad1983                = new UtmNad1983();
     UtmOther                  = new UtmOther();
     UtmWgs1972                = new UtmWgs1972();
     UtmWgs1984                = new UtmWgs1984();
     Wisconsin                 = new Wisconsin();
     World                     = new World();
     WorldSpheroid             = new WorldSpheroid();
 }
Ejemplo n.º 6
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);
    }
Ejemplo n.º 7
0
 public static int GetMarketId(this Europe value)
 {
     return((int)value);
 }