|
virtual void | displaySpellResult (const InfoMessage &msg)=0 |
|
void | iterateMonsters1 () |
|
void | iterateMonsters2 () |
|
void | resetDestMonster () |
|
void | turnUndead () |
|
void | summonLightning () |
|
void | paralyze () |
|
bool | divineIntervention () |
|
void | holyWord () |
|
void | identifyMonster () |
|
void | fireball () |
|
void | lightningBolt () |
|
void | makeRoom () |
|
void | slow () |
|
void | weaken () |
|
bool | web () |
|
bool | acidRain () |
|
void | fingerOfDeath () |
|
void | disintegration () |
|
bool | monsterTouch (uint index, Common::String &line) |
|
void | castMonsterSpell (const Common::String &monsterName, int spellNum) |
|
const LineArray & | getMonsterSpellMessage () const |
|
|
enum | Handicap { HANDICAP_EVEN = 0,
HANDICAP_PARTY = 1,
HANDICAP_MONSTER = 2
} |
|
enum | Mode {
SELECT_OPTION,
FIGHT_WHICH,
DEFEATED_MONSTERS,
NEXT_ROUND,
MONSTER_ADVANCES,
MONSTERS_AFFECTED,
MONSTER_FLEES,
MONSTER_WANDERS,
MONSTER_SPELL,
CHAR_ATTACKS,
MONSTER_ATTACK,
INFILTRATION,
WAITS_FOR_OPENING,
SPELL_RESULT,
NO_EFFECT
} |
|
|
Common::Array< Line > | _message |
|
int | _monstersCount = 0 |
|
Monster * | _monsterP |
|
bool | _treasureFlags [MAX_PARTY_SIZE] |
|
int | _val1 |
|
int | _roundNum |
|
int | _monsterIndex |
|
int | _currentChar |
|
bool | _allowFight |
|
bool | _allowShoot |
|
bool | _allowCast |
|
bool | _allowAttack |
|
byte | _val6 |
|
byte | _val7 |
|
int | _partyIndex |
|
int | _val9 |
|
int | _monsterShootingCtr |
|
int | _activeMonsterNum |
|
int | _destCharCtr |
|
int | _destAC |
|
int | _numberOfTimes |
|
int | _attackerLevel |
|
int | _advanceIndex |
|
int | _handicapThreshold |
|
int | _handicapParty |
|
int | _handicapMonsters |
|
int | _handicapDelta |
|
int | _attackersCount |
|
int | _totalExperience |
|
Common::String | _monsterName |
|
bool | _monstersResistSpells |
|
bool | _monstersRegenerate |
|
AttributePair | _attackAttr1 |
|
AttributePair | _attackAttr2 |
|
int | _timesHit |
|
bool | _isShooting |
|
Common::String | _attackMessage |
|
Handicap | _handicap = HANDICAP_EVEN |
|
Mode | _mode = SELECT_OPTION |
|
int | _destMonsterNum = 0 |
|
int | _monstersDestroyedCtr = 0 |
|
bool | _turnUndeadUsed = false |
|
bool | _divineInterventionUsed = false |
|
size_t | _spellMonsterCount = 0 |
|
int | _monsterAttackStyle = -1 |
|
Common::Array< Monster * > | _remainingMonsters |
|
LineArray | _lines |
|
int | _damage = 0 |
|
int | _displayedDamage = 0 |
|
|
static int | getRandomNumber (int minNumber, int maxNumber) |
|
static int | getRandomNumber (int maxNumber) |
|
◆ Combat()
MM::MM1::Game::Combat::Combat |
( |
| ) |
|
|
protected |
◆ ~Combat()
virtual MM::MM1::Game::Combat::~Combat |
( |
| ) |
|
|
protectedvirtual |
◆ setMode()
virtual void MM::MM1::Game::Combat::setMode |
( |
Mode |
newMode | ) |
|
|
protectedpure virtual |
◆ combatDone()
virtual void MM::MM1::Game::Combat::combatDone |
( |
| ) |
|
|
protectedvirtual |
◆ subtractDamageFromChar()
◆ clear()
void MM::MM1::Game::Combat::clear |
( |
| ) |
|
|
protected |
Clear all the combat variables
◆ monsterIndexOf()
void MM::MM1::Game::Combat::monsterIndexOf |
( |
| ) |
|
|
protected |
Sets the _monsterIndex to the index of _monsterP in the monster list
◆ monsterSetPtr()
void MM::MM1::Game::Combat::monsterSetPtr |
( |
int |
monsterNum | ) |
|
|
protected |
Sets _monsterP to point to a specified monster
◆ setupCanAttacks()
void MM::MM1::Game::Combat::setupCanAttacks |
( |
| ) |
|
|
protected |
Sets up the flags for whether each character in the party can attack from their position.
◆ setupAttackersCount()
void MM::MM1::Game::Combat::setupAttackersCount |
( |
| ) |
|
|
protected |
Chooses the starting character to
◆ checkLeftWall()
void MM::MM1::Game::Combat::checkLeftWall |
( |
| ) |
|
|
protected |
Checks whether the third party member is blocked by a left wall
◆ checkRightWall()
void MM::MM1::Game::Combat::checkRightWall |
( |
| ) |
|
|
protected |
Checks whether the fourth party member is blocked by a right wall
◆ setupHandicap()
void MM::MM1::Game::Combat::setupHandicap |
( |
| ) |
|
|
protected |
Sets up the handicap for the encounter
◆ getMonsterIndex()
int MM::MM1::Game::Combat::getMonsterIndex |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ canMonsterCast()
bool MM::MM1::Game::Combat::canMonsterCast |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ dispelParty()
void MM::MM1::Game::Combat::dispelParty |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ combatLoop()
void MM::MM1::Game::Combat::combatLoop |
( |
bool |
checkMonstersFirst = false | ) |
|
|
protected |
Main combat loop that selects the next party member or monster to take their turn
◆ selectTreasure()
void MM::MM1::Game::Combat::selectTreasure |
( |
| ) |
|
|
protected |
Select treasure for a defeated monster
◆ nextRound()
void MM::MM1::Game::Combat::nextRound |
( |
| ) |
|
|
protected |
◆ updateHighestLevel()
void MM::MM1::Game::Combat::updateHighestLevel |
( |
| ) |
|
|
protected |
Update the _highestLevel to the remaining active members of the party
◆ monsterAction()
void MM::MM1::Game::Combat::monsterAction |
( |
| ) |
|
|
protected |
Calculate a monster action
◆ checkMonsterSpells()
bool MM::MM1::Game::Combat::checkMonsterSpells |
( |
| ) |
|
|
protected |
Check if monster is mindless and wandering
◆ checkMonsterActions()
void MM::MM1::Game::Combat::checkMonsterActions |
( |
| ) |
|
|
protected |
Check other monster actions
◆ fightMonster()
void MM::MM1::Game::Combat::fightMonster |
( |
int |
monsterNum | ) |
|
|
protected |
◆ addAttackDamage()
void MM::MM1::Game::Combat::addAttackDamage |
( |
| ) |
|
|
protected |
Adds attack damage message for character hitting monster
◆ updateMonsterStatus()
void MM::MM1::Game::Combat::updateMonsterStatus |
( |
| ) |
|
|
protected |
Updates a monster's status
◆ monsterTouch()
Handles a monster touch action, if any
◆ monsterAttackRandom()
void MM::MM1::Game::Combat::monsterAttackRandom |
( |
| ) |
|
|
protected |
Handles monster atttack logic
◆ monsterAttackShooting()
void MM::MM1::Game::Combat::monsterAttackShooting |
( |
| ) |
|
|
protected |
Handles monster shooting a character
◆ selectMonsterTarget()
void MM::MM1::Game::Combat::selectMonsterTarget |
( |
| ) |
|
|
protected |
Selects monster to attack
◆ attack()
void MM::MM1::Game::Combat::attack |
( |
| ) |
|
|
protected |
◆ block()
void MM::MM1::Game::Combat::block |
( |
| ) |
|
|
protected |
◆ cast()
void MM::MM1::Game::Combat::cast |
( |
| ) |
|
|
protected |
◆ exchangeWith()
void MM::MM1::Game::Combat::exchangeWith |
( |
int |
charNum | ) |
|
|
protected |
Exchange current character with another
◆ use()
void MM::MM1::Game::Combat::use |
( |
| ) |
|
|
protected |
◆ retreat()
void MM::MM1::Game::Combat::retreat |
( |
| ) |
|
|
protected |
◆ removeDeadMonsters()
void MM::MM1::Game::Combat::removeDeadMonsters |
( |
| ) |
|
|
protected |
Called to remove any dead monsters
◆ displaySpellResult()
virtual void MM::MM1::Game::Combat::displaySpellResult |
( |
const InfoMessage & |
msg | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: