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) ... }
/// <summary> /// Sets the current gun in use. /// </summary> /// <param name="gun"></param> public void ChangeGun(Gun gun) { activeGun = gun; gunChanged = true; }
//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; }
/// <summary> /// The constructor for the Armoury class /// </summary> public Armoury() { collectedGuns = new List <Gun>(); activeGun = new Gun(); }