ScummVM API documentation
MM::MM1::Game::SpellsMonsters Class Referenceabstract
Inheritance diagram for MM::MM1::Game::SpellsMonsters:
MM::MM1::Game::GameLogic MM::MM1::Game::MonsterTouch MM::MM1::Game::Combat MM::MM1::Views::Combat MM::MM1::ViewsEnh::Combat

Public Member Functions

void castMonsterSpell (const Common::String &monsterName, int spellNum)
 
const LineArraygetMonsterSpellMessage () const
 

Protected Member Functions

virtual bool canMonsterCast () const =0
 
virtual int getMonsterIndex () const =0
 
virtual void dispelParty ()=0
 
virtual void removeMonster ()=0
 
virtual Common::String subtractDamageFromChar ()=0
 
void handlePartyDamage ()
 
void setCondition (byte newCondition)
 
bool isCharAffected () const
 
bool damageType1 ()
 
bool damageType2 ()
 
bool damageType3 ()
 
bool damageType4 ()
 
bool damageType5 ()
 
bool damageType6 ()
 
bool damageType7 ()
 
void proc9 ()
 
void add (const Common::String &msg)
 
void add (char c)
 
void addCharName ()
 

Protected Attributes

Common::Array< Monster * > _remainingMonsters
 
LineArray _lines
 
int _damage = 0
 
int _displayedDamage = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from MM::MM1::Game::GameLogic
static int getRandomNumber (int minNumber, int maxNumber)
 
static int getRandomNumber (int maxNumber)
 

Member Function Documentation

◆ subtractDamageFromChar()

virtual Common::String MM::MM1::Game::SpellsMonsters::subtractDamageFromChar ( )
protectedpure virtual

Subtracts the damage from the character, making them unconscious or die if needed

Implemented in MM::MM1::Game::Combat.

◆ handlePartyDamage()

void MM::MM1::Game::SpellsMonsters::handlePartyDamage ( )
protected

Adds text for damage effects on the party

◆ setCondition()

void MM::MM1::Game::SpellsMonsters::setCondition ( byte  newCondition)
protected

Sets the condition to apply

◆ isCharAffected()

bool MM::MM1::Game::SpellsMonsters::isCharAffected ( ) const
protected

Returns true if character is affected so spell

◆ damageType1()

bool MM::MM1::Game::SpellsMonsters::damageType1 ( )
protected

Test whether character resists different damage types

◆ add()

void MM::MM1::Game::SpellsMonsters::add ( const Common::String msg)
inlineprotected

Adds text to the current line

◆ addCharName()

void MM::MM1::Game::SpellsMonsters::addCharName ( )
protected

Adds current character's name

◆ castMonsterSpell()

void MM::MM1::Game::SpellsMonsters::castMonsterSpell ( const Common::String monsterName,
int  spellNum 
)

Monster casts a spell

◆ getMonsterSpellMessage()

const LineArray& MM::MM1::Game::SpellsMonsters::getMonsterSpellMessage ( ) const
inline

Gets a spell message


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