Beispiel #1
0
 public HealBlock(int Turns, CombatWindow cw)
 {
     turns = Turns;
     window = cw;
     if (isPlayer)
         cw.combatText.AppendText(p.name + " cannot heal for " + turns + " turns!", "Red");
     else
         cw.combatText.AppendText(e.name + " cannot heal for " + turns + " turns!", "Aqua");
 }
Beispiel #2
0
 /// <summary>
 /// Enter combat with the specified Enemy.
 /// </summary>
 /// <param name="e">The Enemy to be fought.</param>
 public void EnterCombat(Enemy e)
 {
     player.baseattack = player.atk;
     player.basedef = player.def;
     player.basespeed = player.spd;
     player.baseintl = player.intl;
     CombatWindow cw = new CombatWindow(e);
     cw.Show();
 }
Beispiel #3
0
 public Cursed(int Turns, CombatWindow cw, CurseType Type, int degree)
 {
     turns = Turns;
     window = cw;
     type = Type;
     strength = degree;
     if (isPlayer)
         cw.combatText.AppendText(p.name + " has placed a(n) " + Type + " Curse on " + e.name + " for " + turns + " turns!", "Red");
     else
         cw.combatText.AppendText(e.name + " has placed a(n) " + Type + " Curse on " + p.name + " for " + turns + " turns!", "Aqua");
 }
Beispiel #4
0
        /// <summary>
        /// Enter combat with the specified Enemy.
        /// </summary>
        /// <param name="e">The Enemy to be fought.</param>
        public void EnterCombat(Enemy e)
        {
            player.baseattack = player.atk;
            player.basedef    = player.def;
            player.basespeed  = player.spd;
            player.baseintl   = player.intl;

            var cwin = new CombatWindow(e);

            player.effects = new EffectCollection(cwin);
            cwin.Show();
        }
Beispiel #5
0
 public EffectCollection(CombatWindow cw)
 {
     cwin = cw;
 }
Beispiel #6
0
 public void SetWindow(CombatWindow cwin)
 {
     window = cwin;
 }
Beispiel #7
0
 public Untargetable(CombatWindow cw)
 {
     isNegative = false;
     window = cw;
     turns = 1;
     if (isPlayer)
         cw.combatText.AppendText(p.name + " is now untargetable.", "Aqua");
     else
         cw.combatText.AppendText(e.name + " is now untargetable.", "Red");
 }
Beispiel #8
0
 public Stunned(int Turns, CombatWindow cw)
 {
     turns = Turns;
     window = cw;
     if (isPlayer)
         cw.combatText.AppendText(p.name + " was stunned for " + turns + " turns!", "Red");
     else
         cw.combatText.AppendText(e.name + " was stunned for " + turns + " turns!", "Aqua");
 }
Beispiel #9
0
 public OnFire(int Turns, int Power, CombatWindow cw)
 {
     turns = Turns;
     power = Power;
     window = cw;
     if (isPlayer)
         cw.combatText.AppendText(p.name + " has been set ablaze!", "Red");
     else
         cw.combatText.AppendText(e.name + " has been set ablaze!", "Aqua");
 }