ScummVM API documentation
Ultima::Ultima4::Weapons Class Reference
Inheritance diagram for Ultima::Ultima4::Weapons:
Common::Array< Weapon *>

Public Member Functions

 Weapons ()
 
 ~Weapons ()
 
const Weaponget (WeaponType w)
 
const Weaponget (const Common::String &name)
 
- Public Member Functions inherited from Common::Array< Weapon *>
 Array (size_type count)
 
 Array (size_type count, const Weapon * &value)
 
 Array (const Array< Weapon * > &array)
 
 Array (Array< Weapon * > &&old)
 
 Array (std::initializer_list< Weapon * > list)
 
 Array (const T2 *array, size_type n)
 
void emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const Weapon * &element)
 
void push_back (Weapon * &&element)
 
void push_back (const Array< Weapon * > &array)
 
void pop_back ()
 
const Weapon * * data () const
 
Weapon * * data ()
 
Weapon * & front ()
 
const Weapon * & front () const
 
Weapon * & back ()
 
const Weapon * & back () const
 
void insert_at (size_type idx, const Weapon * &element)
 
void insert_at (size_type idx, const Array< Weapon * > &array)
 
void insert (iterator pos, const Weapon * &element)
 
Weapon * remove_at (size_type idx)
 
Weapon * & operator[] (size_type idx)
 
const Weapon * & operator[] (size_type idx) const
 
Array< Weapon * > & operator= (const Array< Weapon * > &array)
 
Arrayoperator= (Array< Weapon * > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< Weapon * > &other) const
 
bool operator!= (const Array< Weapon * > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void resize (size_type newSize, const Weapon * value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Additional Inherited Members

- Public Types inherited from Common::Array< Weapon *>
typedef Weapon * * iterator
 
typedef const Weapon * * const_iterator
 
typedef Weapon * value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< Weapon *>
void allocCapacity (size_type capacity)
 
void freeStorage (Weapon * *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< Weapon *>
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< Weapon *>
size_type _capacity
 
size_type _size
 
Weapon * * _storage
 

Constructor & Destructor Documentation

◆ Weapons()

Ultima::Ultima4::Weapons::Weapons ( )

Constructor

◆ ~Weapons()

Ultima::Ultima4::Weapons::~Weapons ( )

Destructor

Member Function Documentation

◆ get() [1/2]

const Weapon* Ultima::Ultima4::Weapons::get ( WeaponType  w)

Returns weapon by WeaponType.

◆ get() [2/2]

const Weapon* Ultima::Ultima4::Weapons::get ( const Common::String name)

Returns weapon that has the given name


The documentation for this class was generated from the following file: