#include <hero.h>


Public Member Functions | |
| int | tier () |
| boolean | shoot (Char *enemy, MissileWeapon *wep) |
| void | live () |
| String | className () |
| void | updateAwareness () |
| boolean | isStarving () |
| Hero () | |
| int | sTR () |
| void | resurrect (int resetLevel) |
| virtual bool | act () |
| bool | handle (int cell) |
| virtual std::string | getClassName () |
| int | VisibleEnemies () |
| Mob * | visibleEnemy (int index) |
| void | resume () |
| int | maxExp () |
| void | spendAndNext (float time) |
| void | busy () |
| virtual void | move (int step) |
| void | interrupt () |
| bool | search (bool intentional) |
| void | earnExp (int exp) |
| void | rest (boolean tillHealthy) |
| float | attackDelay () |
| virtual void | spend (float time) |
| virtual int | attackSkill (Char *target) |
Public Member Functions inherited from Char | |
| Char () | |
| CLASSOBJECT (Char) | |
| virtual void | storeInBundle (Bundle *bundle) |
| virtual void | restoreFromBundle (Bundle *bundle) |
| HashSet< std::string > & | resistances () |
| HashSet< std::string > & | immunities () |
| bool | immunitiesContain (const std::string &cls) |
| void | add (Buff *buff) |
| void | remove (Buff *buff) |
| void | remove (const std::string &buffClass) |
| bool | attack (Char *enemy) |
| virtual int | defenseSkill (Char *enemy) |
| virtual std::string | defenseVerb () |
| virtual int | dr () |
| virtual int | damageRoll () |
| virtual int | attackProc (Char *enemy, int damage) |
| virtual int | defenseProc (Char *enemy, int damage) |
| float | speed () |
| virtual void | damage (int dmg, const std::string &src) |
| void | destroy () |
| virtual void | die (const std::string &src) |
| bool | isAlive () |
| void | Buffs (const std::string &c, std::set< Buff * > &re) |
| Buff * | buff (const std::string &c) |
| std::set< Buff * > | buffSet (const std::string &c) |
| bool | isCharmedBy (Char *ch) |
| void | updateSpriteState () |
| virtual int | stealth () |
| int | distance (Char *other) |
| void | onMotionComplete () |
| void | onAttackComplete () |
| void | onOperateComplete () |
Public Member Functions inherited from Actor | |
| Actor () | |
| int | Id () |
| void | next () |
Public Member Functions inherited from Object | |
| virtual std::string | getObject ()=0 |
Static Public Member Functions | |
| static void | preview (GamesInProgress::Info &info, Bundle *bundle) |
Static Public Member Functions inherited from Char | |
| static bool | hit (Char *attacker, Char *defender, bool magic) |
Static Public Member Functions inherited from Actor | |
| static void | fixTime () |
| static void | clear () |
| static Char * | findChar (int pos) |
| static Actor * | findById (int id) |
| static void | init () |
| static void | addDelayed (Actor *actor, float delay) |
| static void | remove (Actor *actor) |
| static void | add (Actor *actor) |
| static void | occupyCell (Char *ch) |
| static void | freeCell (int pos) |
| static void | process () |
Public Attributes | |
| ArrayList< Mob * > | visibleEnemies |
| HeroClass | heroClass |
| HeroSubClass | subClass |
| MissileWeapon * | rangedWeapon |
| Belongings * | belongings |
| int | STR |
| boolean | weakened |
| int | lvl |
| int | exp |
| bool | restoreHealth |
| bool | ready |
| HeroAction * | curAction |
| HeroAction * | lastAction |
| float | awareness |
| Armor::Glyph * | killerGlyph |
Public Attributes inherited from Char | |
| int | pos |
| std::string | name |
| int | HT |
| int | HP |
| CharSprite * | sprite |
| bool | paralysed |
| bool | rooted |
| bool | flying |
| int | invisible |
| int | viewDistance |
| std::set< Buff * > | buffs |
Static Public Attributes | |
| static const std::string | TXT_YOU_NOW_HAVE = BPT::getText("lang.Hero_You_Now_Have") |
| static const int | STARTING_STR = 10 |
Static Public Attributes inherited from Actor | |
| static const int | TICK = 1 |
| static HashSet< Actor * > | all |
Additional Inherited Members | |
Protected Member Functions inherited from Char | |
| virtual void | onRemove () |
Protected Member Functions inherited from Actor | |
| void | postpone (float time) |
| float | cooldown () |
| void | diactivate () |
| virtual void | onAdd () |
Protected Attributes inherited from Char | |
| float | baseSpeed |
Static Protected Attributes inherited from Char | |
| static const std::string | TXT_HIT = BPT::getText("lang.s_hit_s") |
| static const std::string | TXT_KILL = BPT::getText("lang.killed_you") |
| static const std::string | TXT_DEFEAT = BPT::getText("lang.s_defeated_s") |
| Hero::Hero | ( | ) |
|
virtual |
Reimplemented from Char.


| float Hero::attackDelay | ( | ) |

|
virtual |
Reimplemented from Char.


|
inline |

| String Hero::className | ( | ) |
| void Hero::earnExp | ( | int | exp | ) |


|
inlinevirtual |
| bool Hero::handle | ( | int | cell | ) |

| void Hero::interrupt | ( | ) |


| boolean Hero::isStarving | ( | ) |


| void Hero::live | ( | ) |


|
inline |

|
virtual |
|
static |

| void Hero::rest | ( | boolean | tillHealthy | ) |

| void Hero::resume | ( | ) |

| void Hero::resurrect | ( | int | resetLevel | ) |

| bool Hero::search | ( | bool | intentional | ) |

| boolean Hero::shoot | ( | Char * | enemy, |
| MissileWeapon * | wep ) |

|
virtual |
Reimplemented from Char.


| void Hero::spendAndNext | ( | float | time | ) |


|
inline |

| int Hero::tier | ( | ) |

| void Hero::updateAwareness | ( | ) |

| int Hero::VisibleEnemies | ( | ) |
| Mob * Hero::visibleEnemy | ( | int | index | ) |
| float Hero::awareness |
| Belongings* Hero::belongings |
| HeroAction* Hero::curAction |
| int Hero::exp |
| HeroClass Hero::heroClass |
| Armor::Glyph* Hero::killerGlyph |
| HeroAction* Hero::lastAction |
| int Hero::lvl |
| MissileWeapon* Hero::rangedWeapon |
| bool Hero::ready |
| bool Hero::restoreHealth |
|
static |
| int Hero::STR |
| HeroSubClass Hero::subClass |
|
static |
| boolean Hero::weakened |