Beispiel #1
0
        public void init()
        {
            PrimaryViewForm mainView = new PrimaryViewForm(this);

            mainView.Show();
            this.currentState.StateView().Show();
        }
        public void newBattle(BattleEvent theEvent)
        {
            enemies = theEvent.getFoes();

            while (theEvent.theFight().stillFighting())
            {
                refreshEnemies();
                battleOutput.Text += theEvent.theFight().turn();
                this.Update();
                PrimaryViewForm.onUpdate();
            }
            Return.Visible = true;
            this.Update();
            this.Show();
        }
Beispiel #3
0
        public PrimaryViewForm(World world)
        {
            theWorld = world;
            InitializeComponent();
            int i = 0;

            foreach (Character c in theWorld.heroParty)
            {
                Label cname = new Label();
                cname.Text     = c.Name + "\t HP: " + c.HP;
                cname.Location = new System.Drawing.Point(0, 22 * i);
                this.partyBox.Controls.Add(cname);
                i++;
            }
            this.Update();
            this.Show();
            thisPtr = this;
        }