Example #1
0
        /*
         *
         * Wie bei Mappoints der Standartkonstruktor wird von mir noch nicht genutzt könnte aber
         * evtl für den Mapeditor Brauchbar sein.
         */
        public Map()
        {
            Mapsize = 0;
            Board = new Mappoint[Mapsize, Mapsize];
            files = new FileManager();

            exchangeCard = new Mappoint(files.bottomlefttop, true, true, true);
            //MappositionX = 0;
            //MappositionY = 0;
        }
Example #2
0
 public Map(int Mapsize,int Anzahlitems,int playerid1, int playerid2 /*int MapPointSize*/)
 {
     this.Mapsize = Mapsize;
     Board = new Mappoint[Mapsize, Mapsize];
     files = new FileManager();
     this.screen =new Gamescreen();
     //this.MappositionX = MappositionX;
     //this.MappositionY = MappositionY;
     //this.MapPointSize = MapPointSize;
     exchangeCard = new Mappoint(files.randomBitmap());
     this.usedProps = new Dictionary<String,Bitmap>();
     //Ein Mappoint zum Verschieben wird beim ersten mal zufällig erstellt
     ran = new Random();
     player1 = new Player(playerid1, new Point(0,0));
     player2 = new Player(playerid2, new Point(Mapsize-1,Mapsize-1));
     this.Randomwert = Anzahlitems;
 }