/// <summary> /// Takes the last delivered weapon out of the inventory and returns it. /// </summary> /// <returns>The last delivered weapon.</returns> public Weapon TakeFromInventory() { Weapon weaponTakenFromLastInventoryPosition = m_i.TakeFromInventoryPosition(m_i.TheInventory - 1); m_i.EraseWeaponFromInvetory(m_i.TheInventory - 1); return(weaponTakenFromLastInventoryPosition); }
/// <summary> /// Nexts this instance. /// </summary> /// <returns> /// a Weapon. /// </returns> public Weapon next() { Weapon takenFromInventoryPosition = m_theInventory.TakeFromInventoryPosition(m_curItWpI); m_curItWpI++; return(takenFromInventoryPosition); }