Ejemplo n.º 1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     gameObject.SetActive(false);
     base.Start();
     GameManager.instance.RegisterPoseidon(this);
 }
Ejemplo n.º 2
0
        public Form1()
        {
            /*List<Character> h = new List<Character>();
             * for (int i = 0; i < 3; i++)
             *  h.Add(new Poseidon());
             * List<Character> a = new List<Character>();
             * for (int i = 0; i < 2; i++)
             *  a.Add(new Beast());
             *
             * Party home = new Party(h);
             * Party away = new Party(a);
             *
             * Battle battlefield = new Battle(home, away);
             * battlefield.battle();*/


            bob         = new Poseidon();
            joe         = new Beast();
            enemy_party = new Party();
            hero_party  = new Party();
            hero_party.addCharacter(bob);
            enemy_party.addCharacter(joe);
            battle_event = new Battle(hero_party, enemy_party);

            InitializeComponent();

            this.label1.Text = bob.getName();
            this.label2.Text = "HP: " + bob.getHp().ToString();
            this.label3.Text = "SP: " + bob.getSpeed().ToString();
            this.label4.Text = "MP: " + bob.getMagic().ToString();

            this.label5.Text = joe.getName();
            this.label6.Text = "HP: " + joe.getHp().ToString();
            this.label7.Text = "SP: " + joe.getSpeed().ToString();
            this.label8.Text = "MP: " + joe.getMagic().ToString();
        }
Ejemplo n.º 3
0
 public void RegisterPoseidon(Poseidon poseidon)
 {
     this.poseidon = poseidon;
 }