Ejemplo n.º 1
0
 public void SetWorld(GameModel.World.World world)
 {
     mapRenderer   = new MapRenderer(this.ClientSize.Width, this.ClientSize.Height, world);
     this.world    = world;
     currentPlayer = world.currentPlayer;
     drawCell      = false;
     //fogOfWar = world.playerList[world.currentPlayer].fogOfWar;
     Invalidate();
 }
Ejemplo n.º 2
0
        public void UpdateWorld(GameModel.World.World world)
        {
            this.world = world;
            viewPort1.SetWorld(world);

            miniMap1.World = world;

            NextAvailableUnit();
        }
Ejemplo n.º 3
0
 public MapRenderer(int w, int h, GameModel.World.World world)
 {
     this.w     = w;
     this.h     = h;
     this.world = world;
     river      = new Bitmap(@"../../Map/RiverS.png");
     mount      = new Bitmap(@"../../Map/MountainsS.png");
     textures   = new Bitmap(@"../../Map/Textures1.png");
     desert     = new Bitmap(@"../../Map/DesertS.png");
     snow       = new Bitmap(@"../../Map/SnowS.png");
     roads      = new Bitmap(@"../../Map/Roads.png");
 }