Esempio n. 1
0
        public CollectableGun(SceneManager mSceneMgr, Gun gun, Armoury playerArmoury)
        {
            // Initialize here the mSceneMgr, the gun and the playerArmoury fields to the values passed as parameters

            // Initialize the gameNode here, scale it by 1.5f using the Scale funtion, and add as its child the gameNode contained in the Gun object.
            // Finally attach the gameNode to the sceneGraph.

               // Here goes the link to the physics engine
               // (ignore until week 8) ...
        }
Esempio n. 2
0
 /// <summary>
 /// Sets the current gun in use.
 /// </summary>
 /// <param name="gun"></param>
 public void ChangeGun(Gun gun)
 {
     activeGun  = gun;
     gunChanged = true;
 }
Esempio n. 3
0
 //Implement a public void ChangeGun method which takes as parameter a Gun and stores it in activeGun, it should also set the bool gunChanged to true.
 public void ChangeGun(Gun activeGun)
 {
     this.activeGun = activeGun;
     gunChanged     = true;
 }
Esempio n. 4
0
/// <summary>
/// The constructor for the Armoury class
/// </summary>
        public Armoury()
        {
            collectedGuns = new List <Gun>();
            activeGun     = new Gun();
        }