Ejemplo n.º 1
0
 public void get_out_jail(ref player obj, int no_rolled)
 {
     obj.set_In_jail_now(false);
     obj.set_Was_in_jail(true);
     MessageBox.Show("you will get out from jail .");
     // obj.set_position((no_rolled + obj.get_position())%36);
     for (int i = 0; i < prisoners.Count; i++)
     {
         if (prisoners[i].Item1 == obj)
         {
             prisoners.Remove(prisoners[i]);
         }
     }
 }
Ejemplo n.º 2
0
        public void set_prisoners_without_going_jail(player obj)
        {
            obj.set_In_jail_now(true);

            prisoners.Add(new Tuple <player, int>(obj, 0));
        }
Ejemplo n.º 3
0
 public void set_prisoners_with_going_jail(ref player obj)
 {
     obj.set_In_jail_now(true);
     prisoners.Add(new Tuple <player, int>(obj, 0));
     Go_jail.SendToJail(ref obj);
 }