Exemplo n.º 1
0
 public void mob_step()
 {
     if (gg_dodge)
     {
         fight_info.Text += "Противник промахнулся.\n";
     }
     else
     {
         temp    = mob.get_actions()[rand.Next(0, mob.get_actions().Length - 1)];
         mob.hp += temp.hp;
         MainForm.selfref.gg.get_damage(mob.get_sum_inv_atk() + temp.atk - gg_shield, 0);
         fight_info.Text += "Противник испольовал " + temp.name + " и нанес: " + (mob.get_sum_inv_atk() + temp.atk - gg_shield).ToString() + " ед. урона.\n";
     }
     fight_gg_status.Text      = "HP: " + MainForm.selfref.gg.hp.ToString();
     fight_mob_status.Text     = "HP: " + mob.hp.ToString();
     fight_info.SelectionStart = fight_info.Text.Length;
     fight_info.ScrollToCaret();
     check_win();
     gg_shield = 0;
     gg_dodge  = false;
 }
Exemplo n.º 2
0
 public void clear_action(Person_Action action)
 {
     action_mass.Clear();
 }
Exemplo n.º 3
0
 public void remove_action(Person_Action action)
 {
     action_mass.Remove(action);
 }
Exemplo n.º 4
0
 List <Person_Action> action_mass = new List <Person_Action>(); //  массив действий персонажа
 public void add_action(Person_Action action)
 {
     action_mass.Add(action);
 }