|
|
| PartyMember (Party *p, SaveGamePlayerRecord *pr) |
| |
| void | notifyOfChange () |
| |
| Common::String | translate (Common::Array< Common::String > &parts) override |
| |
| int | getHp () const override |
| |
|
int | getMaxHp () const |
| |
|
int | getExp () const |
| |
|
int | getStr () const |
| |
|
int | getDex () const |
| |
|
int | getInt () const |
| |
|
int | getMp () const |
| |
| int | getMaxMp () const |
| |
|
const Weapon * | getWeapon () const |
| |
|
const Armor * | getArmor () const |
| |
| Common::String | getName () const override |
| |
|
SexType | getSex () const |
| |
|
ClassType | getClass () const |
| |
| CreatureStatus | getState () const override |
| |
| int | getRealLevel () const |
| |
| int | getMaxLevel () const |
| |
| void | addStatus (StatusType status) override |
| |
| void | adjustMp (int pts) |
| |
| void | advanceLevel () |
| |
| void | applyEffect (TileEffect effect) |
| |
| void | awardXp (int xp) |
| |
| bool | heal (HealType type) |
| |
| void | removeStatus (StatusType status) override |
| |
| void | setHp (int hp) override |
| |
|
void | setMp (int mp) |
| |
|
EquipError | setArmor (const Armor *a) |
| |
|
EquipError | setWeapon (const Weapon *w) |
| |
| bool | applyDamage (int damage, bool byplayer=false) override |
| |
| int | getAttackBonus () const override |
| |
| int | getDefense () const override |
| |
| bool | dealDamage (Creature *m, int damage) override |
| |
| int | getDamage () |
| |
| const Common::String & | getHitTile () const override |
| |
| const Common::String & | getMissTile () const override |
| |
|
bool | isDead () |
| |
|
bool | isDisabled () |
| |
| int | loseWeapon () |
| |
| void | putToSleep () override |
| |
| void | wakeUp () override |
| |
| | Creature (MapTile tile=MapTile(0)) |
| |
|
void | load (const ConfigElement &conf) |
| |
|
virtual Common::String | getName () const |
| |
| virtual const Common::String & | getHitTile () const |
| |
| virtual const Common::String & | getMissTile () const |
| |
|
CreatureId | getId () const |
| |
|
CreatureId | getLeader () const |
| |
|
virtual int | getHp () const |
| |
|
virtual int | getXp () const |
| |
|
virtual const Common::String & | getWorldrangedtile () const |
| |
|
SlowedType | getSlowedType () const |
| |
|
int | getEncounterSize () const |
| |
|
byte | getResists () const |
| |
|
void | setName (Common::String s) |
| |
|
void | setHitTile (const Common::String &t) |
| |
|
void | setMissTile (const Common::String &t) |
| |
|
virtual void | setHp (int points) |
| |
|
bool | isGood () const |
| |
|
bool | isEvil () const |
| |
|
bool | isUndead () const |
| |
|
bool | leavesChest () const |
| |
|
bool | isAquatic () const |
| |
|
bool | wanders () const |
| |
|
bool | isStationary () const |
| |
|
bool | flies () const |
| |
|
bool | teleports () const |
| |
|
bool | swims () const |
| |
|
bool | sails () const |
| |
|
bool | walks () const |
| |
|
bool | divides () const |
| |
|
bool | spawnsOnDeath () const |
| |
|
bool | canMoveOntoCreatures () const |
| |
|
bool | canMoveOntoPlayer () const |
| |
|
bool | isAttackable () const |
| |
|
bool | willAttack () const |
| |
|
bool | stealsGold () const |
| |
|
bool | stealsFood () const |
| |
|
bool | negates () const |
| |
|
bool | camouflages () const |
| |
|
bool | ambushes () const |
| |
|
bool | isIncorporeal () const |
| |
|
bool | hasRandomRanged () const |
| |
|
bool | leavesTile () const |
| |
|
bool | castsSleep () const |
| |
|
bool | isForceOfNature () const |
| |
|
int | getDamage () const |
| |
|
const Common::String & | getCamouflageTile () const |
| |
|
void | setRandomRanged () |
| |
|
int | setInitialHp (int hp=-1) |
| |
| bool | specialAction () |
| |
| bool | specialEffect () |
| |
|
void | act (CombatController *controller) |
| |
| virtual void | addStatus (StatusType status) |
| |
|
void | applyTileEffect (TileEffect effect) |
| |
|
virtual int | getAttackBonus () const |
| |
|
virtual int | getDefense () const |
| |
|
bool | divide () |
| |
|
bool | spawnOnDeath () |
| |
|
virtual CreatureStatus | getState () const |
| |
|
StatusType | getStatus () const |
| |
|
bool | isAsleep () const |
| |
| bool | hideOrShow () |
| |
|
Creature * | nearestOpponent (int *dist, bool ranged) |
| |
| virtual void | putToSleep () |
| |
| virtual void | removeStatus (StatusType status) |
| |
|
virtual void | setStatus (StatusType status) |
| |
| virtual void | wakeUp () |
| |
| virtual bool | applyDamage (int damage, bool byplayer=true) |
| |
|
virtual bool | dealDamage (Creature *m, int damage) |
| |
|
| Object (Type type=UNKNOWN) |
| |
|
MapTile & | getTile () |
| |
|
MapTile & | getPrevTile () |
| |
|
const Coords & | getCoords () const |
| |
|
const Coords & | getPrevCoords () const |
| |
|
ObjectMovementBehavior | getMovementBehavior () const |
| |
|
Type | getType () const |
| |
|
bool | hasFocus () const |
| |
|
bool | isVisible () const |
| |
|
bool | isAnimated () const |
| |
|
void | setTile (MapTile t) |
| |
|
void | setTile (Tile *t) |
| |
|
void | setPrevTile (MapTile t) |
| |
|
void | setCoords (Coords c) |
| |
|
void | setPrevCoords (Coords c) |
| |
|
void | setMovementBehavior (ObjectMovementBehavior b) |
| |
|
void | setType (Type t) |
| |
|
void | setFocus (bool f=true) |
| |
|
void | setVisible (bool v=true) |
| |
|
void | setAnimated (bool a=true) |
| |
|
void | setMap (class Map *m) |
| |
|
Map * | getMap () |
| |
| void | remove () |
| |
|
bool | setDirection (Direction d) |
| |
|
void | animateMovement () |
| |
| virtual Common::String | translate (Common::Array< Common::String > &parts)=0 |
| |
| bool Ultima::Ultima4::PartyMember::applyDamage |
( |
int |
damage, |
|
|
bool |
byplayer = false |
|
) |
| |
|
overridevirtual |
Applies damage to a player, and changes status to dead if hit points drop below zero.
Byplayer is ignored for now, since it should always be false for U4. (Is there anything special about being killed by a party member in U5?) Also keeps interface consistent for virtual base function Creature::applydamage()
Reimplemented from Ultima::Ultima4::Creature.