public KantoMap()
        {
            this.SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint | System.Windows.Forms.ControlStyles.UserPaint | System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer, true);
            this.UpdateStyles();
            this.Width = 1080;
            this.Height = 720;

            buttonStartSearch = new Button();
            this.Controls.Add(buttonStartSearch);
            buttonStartSearch.Location = new Point(1000, 30);
            buttonStartSearch.Text = "Start Search";
            buttonStartSearch.Size = new Size(200, 70);

            costTextLabel = new Label();
            this.Controls.Add(costTextLabel);
            costTextLabel.Location = new Point(1000, 120);
            costTextLabel.Text = "Cost";
            costTextLabel.Size = new Size(150, 50);
            costTextLabel.Font = new Font(costTextLabel.Font.FontFamily.Name, 20);

            numberCostTextLabel = new Label();
            this.Controls.Add(numberCostTextLabel);
            numberCostTextLabel .Location = new Point(1000, 170);
            numberCostTextLabel.Text = "0";
            numberCostTextLabel.Size = new Size(150, 50);
            numberCostTextLabel.Font = new Font(costTextLabel.Font.FontFamily.Name, 20);

               isHurt = new Label();
            this.Controls.Add(isHurt);
            isHurt.Location = new Point(1000, 200);
            isHurt.Text = "Not Hurt!";
            isHurt.Size = new Size(150, 50);
            isHurt.Font = new Font(isHurt.Font.FontFamily.Name, 10);

            pokeCount = new Label();
            this.Controls.Add(pokeCount);
            pokeCount.Location = new Point(1000, 260);
            pokeCount.Text = "0";
            pokeCount.Size = new Size(150, 50);
            pokeCount.Font = new Font(isHurt.Font.FontFamily.Name, 10);

            pokeballs = new Label();
            this.Controls.Add(pokeballs);
            pokeballs.Location = new Point(1000, 320);
            pokeballs.Text = "0";
            pokeballs.Size = new Size(150, 50);
            pokeballs.Font = new Font(isHurt.Font.FontFamily.Name, 10);

            txInterval = new TextBox();
            this.Controls.Add(txInterval);
            txInterval.Location = new Point(1000, 400);
            txInterval.Text = "10";
            txInterval.Size = new Size(150, 50);
            txInterval.Font = new Font(isHurt.Font.FontFamily.Name, 10);
            txInterval.KeyUp += txInterval_KeyUp;

            this.buttonStartSearch.Click += delegate(object sender, EventArgs e)
            {
                _agentController = new AgentController(MapController.Instance);
                buttonStartSearch.Enabled = false;

                Helper.PlayMusic(Resources.Pokemon_Gameboy_Music);

                _agentController.Walk();
            };

            picsMap = new PictureMap(MapController.Instance);

            this.Controls.Add(picsMap);

            InitializeComponent();
            MapController.Instance.Ash.listenerInfo += SetNewInfos;
            MapController.Instance.Ash.showPoke += ShowPokemon;
        }
 public void TesteSimpleWalk()
 {
     Map a = Map.Instance;
     var agen = new AgentController(MapController.Instance);
     agen.Walk();
 }