ScummVM API documentation
MM::MM1::Party Struct Reference
Inheritance diagram for MM::MM1::Party:
Common::Array< Character >

Public Member Functions

uint getPartyGold () const
 
void clearPartyGold ()
 
void clearPartyGems ()
 
void clearPartyFood ()
 
void updateAC ()
 
void combatDone ()
 
bool hasItem (byte itemId) const
 
bool isPartyDead () const
 
bool checkPartyDead () const
 
bool checkPartyIncapacitated () const
 
void rearrange (const Common::Array< Character *> &party)
 
void synchronize (Common::Serializer &s)
 
int indexOf (const Character *c)
 
- Public Member Functions inherited from Common::Array< Character >
 Array (size_type count)
 
 Array (size_type count, const Character &value)
 
 Array (const Array< Character > &array)
 
 Array (Array< Character > &&old)
 
 Array (std::initializer_list< Character > list)
 
 Array (const T2 *array, size_type n)
 
void emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const Character &element)
 
void push_back (Character &&element)
 
void push_back (const Array< Character > &array)
 
void pop_back ()
 
const Character * data () const
 
Character * data ()
 
Character & front ()
 
const Character & front () const
 
Character & back ()
 
const Character & back () const
 
void insert_at (size_type idx, const Character &element)
 
void insert_at (size_type idx, const Array< Character > &array)
 
void insert (iterator pos, const Character &element)
 
Character remove_at (size_type idx)
 
Character & operator[] (size_type idx)
 
const Character & operator[] (size_type idx) const
 
Array< Character > & operator= (const Array< Character > &array)
 
Arrayoperator= (Array< Character > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< Character > &other) const
 
bool operator!= (const Array< Character > &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 Character value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Static Public Member Functions

static void share (TransferKind shareType)
 

Additional Inherited Members

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

Member Function Documentation

◆ share()

static void MM::MM1::Party::share ( TransferKind  shareType)
static

Share food, gold, gems between entire party

◆ getPartyGold()

uint MM::MM1::Party::getPartyGold ( ) const

Get the party gold combined

◆ clearPartyGold()

void MM::MM1::Party::clearPartyGold ( )

Reset entire party's gold to zero

◆ clearPartyGems()

void MM::MM1::Party::clearPartyGems ( )

Reset entire party's gems to zero

◆ clearPartyFood()

void MM::MM1::Party::clearPartyFood ( )

Reset entire party's food to zero

◆ updateAC()

void MM::MM1::Party::updateAC ( )

Update the entire party AC

◆ combatDone()

void MM::MM1::Party::combatDone ( )

Called to update the party after combat is done

◆ hasItem()

bool MM::MM1::Party::hasItem ( byte  itemId) const

Returns true if any of the party has an item

◆ isPartyDead()

bool MM::MM1::Party::isPartyDead ( ) const

Returns true if the party is dead or out of action

◆ checkPartyDead()

bool MM::MM1::Party::checkPartyDead ( ) const

Checks whether the party is dead or out of action, and if so, switches to the death screen

◆ checkPartyIncapacitated()

bool MM::MM1::Party::checkPartyIncapacitated ( ) const

Checks whether the party is incapitated, and if so, switches to the death screen

◆ rearrange()

void MM::MM1::Party::rearrange ( const Common::Array< Character *> &  party)

Reorder the party based on a passed array of character pointers

◆ synchronize()

void MM::MM1::Party::synchronize ( Common::Serializer s)

Synchronizes the party to/from savegames

◆ indexOf()

int MM::MM1::Party::indexOf ( const Character c)

Return the index of a given character


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