
Public Member Functions | |
| int | getAP () |
| int | decrAP () |
| int | getStartingAP () |
| void | endTurn () |
| Battle () | |
| A no-op turn of battle. | |
| Battle (Session *session, Creature *creature) | |
| A Battle is a round of battle between 'creature' and 'creature->getTargetCreature()'. | |
| void | reset () |
| Creature * | getAvailableTarget () |
| Creature * | getAvailablePartyTarget () |
| bool | isEmpty () |
| bool | fightTurn () |
| void | dealDamage (int damage, int maxDamage, int effect=Constants::EFFECT_GLOW, bool magical=false, GLuint delay=0) |
| Creature * | getCreature () |
| Session * | getSession () |
| void | invalidate () |
Static Public Member Functions | |
| static void | setupBattles (Session *session, Battle *battle[], int count, vector< Battle * > *turns) |
| This method sets up and creates battle turns (Battle objects) in order of initiative. | |
| static void | projectileHitTurn (Session *session, Projectile *proj, Creature *target) |
| Call these when a projectile weapon finally hits. | |
| static void | projectileHitTurn (Session *session, Projectile *proj, int x, int y) |
| static int | getSoundCount () |
| static char * | getSound (int index) |
Static Public Attributes | |
| static bool | debugBattle = false |
Protected Member Functions | |
| void | launchProjectile () |
| void | hitWithItem () |
| void | initItem (Item *item) |
| void | castSpell () |
| void | executeEatDrinkAction () |
| bool | pauseBeforePlayerTurn () |
| void | initTurnStep () |
| void | executeAction () |
| void | stepCloserToTarget () |
| bool | selectNewTarget () |
| bool | moveCreature () |
Static Protected Member Functions | |
| static char * | getRandomSound (int start, int count) |
|
|
A no-op turn of battle.
|
|
||||||||||||
|
A Battle is a round of battle between 'creature' and 'creature->getTargetCreature()'.
|
|
||||||||||||||||
|
Call these when a projectile weapon finally hits. It sets up a turn and plays it. |
|
||||||||||||||||||||
|
This method sets up and creates battle turns (Battle objects) in order of initiative.
|
1.4.0