Exemplo n.º 1
0
		public TestViewViewModel()
		{
			Enemies = new List<Enemy>();
			Enemies.Add(new Enemy());
			Enemies.Add(new Enemy());
			Enemies.Add(new Enemy());

			Party = new List<PartyMember>();
			Party.Add(new PartyMember { Name = "Cloud", HP = "10" });
			Party.Add(new PartyMember { Name = "Sephiroth", HP = "999" });
			Party.Add(new PartyMember { Name = "Drizzt", HP = "∞" });
			Party.Add(new PartyMember { Name = "Aeris", HP = "1" });

            Abilities = new List<Ability>();
            Abilities.Add(new Ability { Name = "Fireball" });
            Abilities.Add(new Ability { Name = "Green Fireball" });
            Abilities.Add(new Ability { Name = "Kill" });

			messageTimer = new TextDisplayTimer(0.025f, "You have encountered a bunch of angels.");
			messageTimer.Start();

            ShowAbilities = true;

			InnerVM = new InnerVM();
		}
Exemplo n.º 2
0
        public TestViewViewModel()
        {
            Enemies = new List <Enemy>();
            Enemies.Add(new Enemy());
            Enemies.Add(new Enemy());
            Enemies.Add(new Enemy());

            Party = new List <PartyMember>();
            Party.Add(new PartyMember {
                Name = "Cloud", HP = "10"
            });
            Party.Add(new PartyMember {
                Name = "Sephiroth", HP = "999"
            });
            Party.Add(new PartyMember {
                Name = "Drizzt", HP = "∞"
            });
            Party.Add(new PartyMember {
                Name = "Aeris", HP = "1"
            });

            Abilities = new List <Ability>();
            Abilities.Add(new Ability {
                Name = "Fireball"
            });
            Abilities.Add(new Ability {
                Name = "Green Fireball"
            });
            Abilities.Add(new Ability {
                Name = "Kill"
            });

            messageTimer = new TextDisplayTimer(0.025f, "You have encountered a bunch of angels.");
            messageTimer.Start();

            ShowAbilities = true;

            InnerVM             = new InnerVM();
            InnerVM.TextBoxText = "Test2";

            TextBoxText = "Test";
        }