Esempio n. 1
0
 //code to reset the game after using frst chance
 public void reset()
 {
     x     = 0;
     alert = 0;
     voice = obj.dead();
     obj   = new abstractClass();
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();

            //initilize the object
            obj = new abstractClass();

            // get the random no to fire
            voice     = obj.dead();
            shootaway = obj.shootAway();
        }