Exemplo 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();
 }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

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

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