示例#1
0
文件: Program.cs 项目: TiNyDGZz/TPC05
        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
        }
示例#2
0
文件: Pony.cs 项目: TiNyDGZz/TPC05
 public void SetAttack(Attack newAttack, int n)
 {
     attack_tab[n] = newAttack;
 }
示例#3
0
文件: Pony.cs 项目: TiNyDGZz/TPC05
 public void LoosePV(Attack AttackQuiTue)
 {
     pv -= AttackQuiTue.Damage();
 }