Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            #if PONY

             Pony Left = new Pony("Star Wars",42,100,100, Pony.PonyColor.Applejack);
             Pony Right = new Pony("Pitbull", 42, 100, 100,Pony.PonyColor.PinkiePie);

             Attack attack_1 = new Attack("Boulouloubi",10,50,10,100);
             Attack attack_2 = new Attack("Bouloulouba",20,60,10,100);

             Arena arena = new Arena(Left,Right);

            Application.Run(new Form1(arena));
            #else
            Application.Run(new Form1());
            #endif
        }
Ejemplo n.º 2
0
 public void SetAttack(Attack newAttack, int n)
 {
     attack_tab[n] = newAttack;
 }
Ejemplo n.º 3
0
 public void LoosePV(Attack AttackQuiTue)
 {
     pv -= AttackQuiTue.Damage();
 }