Ejemplo n.º 1
0
 public SpearManNextAttackBuff(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname       = "mortal blow";
     _turnsleft      = 1;
     _recievedDamage = 0;
     ApplyFor(who, bywho);
 }
Ejemplo n.º 2
0
 public BarbarianPassive(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname           = "blood rage";
     _turnsleft          = 1;
     _currentDamageGiven = 0;
     ApplyFor(who, bywho);
     _bufftarget._att_dmg_mod += 0;
 }
Ejemplo n.º 3
0
 public KnightPassive(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname           = "sturdy armor";
     _turnsleft          = 1;
     _nothit             = 0;
     _currentDefenseBuff = BuffsConsts.KnightArmor[0];
     ApplyFor(who, bywho);
     _bufftarget._def_mod += _currentDefenseBuff;
 }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight);
            Console.SetWindowPosition(0, 0);

            //LibRPHG.PlayerClasses.CharacterSelect.generateTeam(0);

            //int charCount = 40;
            //while (charCount-- > 0)
            //{
            //    Abstractplayer nu =
            //        LibRPHG.PlayerClasses.CharacterSelect.getPlayerByIndex(rnd.Next(25),
            //        new Point(rnd.Next(Calculator.FieldSize), rnd.Next(Calculator.FieldSize)));
            //    nu.TeamNumber = 1;
            //    bf.addUnit(nu);
            //}
            int raidCount = 1;

            while (true)
            {
                BFConst.currentUnitID = 0;
                for (int i = 0; i < raidCount; i++)
                {
                    Abstraceunit dm = CharacterSelect.getPlayerByIndex(1 /*rnd.Next(25)*/, new Point(Calculator.FieldSize / 2, Calculator.FieldSize / 2));
                    dm.TeamNumber = 1;
                    bf.addUnit(dm);
                }
                //LOGS.Trace();
                Console.ReadLine();
                do
                {
                    while (bf.getUnits.Count < raidCount + (BFConst.currentUnitID / 40 + 1) * raidCount)
                    {
                        bf.addUnit(new PBarbarian(
                                       (rnd.Next(2) == 0) ?
                                       new Point(rnd.Next(Calculator.FieldSize), rnd.Next(2) * (Calculator.FieldSize - 2) + 1)
                                    : new Point(rnd.Next(2) * (Calculator.FieldSize - 2) + 1, rnd.Next(Calculator.FieldSize))));
                    }

                    bf.CalculateMovementForEachCharacter();
                    bf.TraceHealth();
                    //for (int i = 0; i < bf.getUnits.Count; i++, Console.WriteLine(bf.getUnits[i-1].TraceBars())) ;
                    LOGS.Trace();
                    //LOGS.Trace("died|joined");
                    //string S = Console.ReadLine();
                    Console.ReadKey();
                } while (bf.SummHPteam(1) > 0);
                LOGS.Trace();
                Console.ReadLine();
            }
        }
Ejemplo n.º 5
0
 public virtual void Dissaply()
 {
     LOGS.Add(String.Format("{0} loosed \"{1}\" buff from {2}", _bufftarget.NameFull, _buffname, _buffhost.NameFull));
     _bufftarget = _buffhost = null;
 }
Ejemplo n.º 6
0
 public virtual void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     _bufftarget = who;
     _buffhost   = bywho;
     LOGS.Add(String.Format("{0} recieved \"{1}\" buff from {2}", _bufftarget.NameFull, _buffname, _buffhost.NameFull));
 }
Ejemplo n.º 7
0
 public override void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     base.ApplyFor(who, bywho);
     _bufftarget._att_dmg_mod += BuffsConsts.DruidAttackBuff;
 }
Ejemplo n.º 8
0
 public override void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     base.ApplyFor(who, bywho);
     _recievedDamage           = (int)(_bufftarget.CurrentDamage * BuffsConsts.SpearmanNextAttackMoreDamagePercent / 100.0);
     _bufftarget._att_dmg_mod += _recievedDamage;
 }
Ejemplo n.º 9
0
 public override void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     base.ApplyFor(who, bywho);
 }
Ejemplo n.º 10
0
 public override void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     base.ApplyFor(who, bywho);
     _bufftarget._atp_mod += BuffsConsts.BarbarianRageATPplus;
 }
Ejemplo n.º 11
0
 public BarbarianSplash(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname  = "fighting rage";
     _turnsleft = 3;
     ApplyFor(who, bywho);
 }
Ejemplo n.º 12
0
 public PaladinsAura(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname  = "holy might";
     _turnsleft = 1;
     ApplyFor(who, bywho);
 }
Ejemplo n.º 13
0
 public override void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     base.ApplyFor(who, bywho);
     _bufftarget._def_mod += BuffsConsts.PaladinAuraDef;
     _bufftarget._mvp_mod += BuffsConsts.PaladinAuraMVPplus;
 }
Ejemplo n.º 14
0
 public DruidSplash(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname  = "natures restoration";
     _turnsleft = 5;
     ApplyFor(who, bywho);
 }
Ejemplo n.º 15
0
 public override void ApplyFor(Abstraceunit who, Abstraceunit bywho)
 {
     base.ApplyFor(who, bywho);
     _bufftarget._hp_regen_mod += BuffsConsts.DruidHealthRegenplus;
     _bufftarget._mp_regen_mod += BuffsConsts.DruidManaRegenplus;
 }
Ejemplo n.º 16
0
 public DruidDamageBuff(Abstraceunit who, Abstraceunit bywho)
 {
     _buffname  = "brute pose";
     _turnsleft = 2;
     ApplyFor(who, bywho);
 }