My Project
 
Loading...
Searching...
No Matches
MirrorImage Class Reference

#include <mob.h>

Inheritance diagram for MirrorImage:
Collaboration diagram for MirrorImage:

Public Member Functions

virtual CharSpriteSprite ()
 
 MirrorImage ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
void duplicate (Hero *hero)
 
virtual int attackSkill (Char *target)
 
virtual int damageRoll ()
 
virtual int attackProc (Char *enemy, int damage)
 
virtual String description ()
 
virtual void interact ()
 
 CLASSNAME (MirrorImage)
 
- Public Member Functions inherited from NPC
 NPC ()
 
virtual void beckon (int cell)
 
- Public Member Functions inherited from Mob
 Mob ()
 
virtual void add (Buff *buff)
 
virtual void remove (Buff *buff)
 
virtual void move (int step)
 
virtual void onAttackComplete ()
 
virtual int defenseSkill (Char *enemy)
 
virtual int defenseProc (Char *enemy, int damage)
 
void aggro (Char *ch)
 
virtual void notice ()
 
virtual void damage (int dmg, const std::string &src)
 
void yell (const std::string &str)
 
virtual void destroy ()
 
int exp ()
 
virtual void die (const std::string &str)
 
- Public Member Functions inherited from Char
 Char ()
 
 CLASSOBJECT (Char)
 
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 std::string defenseVerb ()
 
virtual int dr ()
 
float speed ()
 
void destroy ()
 
bool isAlive ()
 
void Buffs (const std::string &c, std::set< Buff * > &re)
 
Buffbuff (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
 

Public Attributes

int tier
 
- Public Attributes inherited from Mob
bool hostile
 
AiStateSLEEPEING
 
AiStateHUNTING
 
AiStateWANDERING
 
AiStateFLEEING
 
AiStatePASSIVE
 
AiStatestate
 
- Public Attributes inherited from Char
int pos
 
std::string name
 
int HT
 
int HP
 
CharSpritesprite
 
bool paralysed
 
bool rooted
 
bool flying
 
int invisible
 
int viewDistance
 
std::set< Buff * > buffs
 

Protected Member Functions

CharchooseEnemy ()
 
- Protected Member Functions inherited from NPC
void throwItem ()
 
- Protected Member Functions inherited from Mob
virtual bool act ()
 
CharchooseEnemy ()
 
bool moveSprite (int from, int to)
 
virtual bool canAttack (Char *enemy)
 
virtual bool getCloser (int target)
 
virtual bool getFurther (int target)
 
virtual float attackDelay ()
 
virtual bool doAttack (Char *enemy)
 
- Protected Member Functions inherited from Char
virtual void spend (float time)
 
virtual void onRemove ()
 
- Protected Member Functions inherited from Actor
void postpone (float time)
 
float cooldown ()
 
void diactivate ()
 
virtual void onAdd ()
 

Additional Inherited Members

- 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 CharfindChar (int pos)
 
static ActorfindById (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 ()
 
- Static Public Attributes inherited from Actor
static const int TICK = 1
 
static HashSet< Actor * > all
 
- Protected Attributes inherited from Mob
int target
 
int _defenseSkill
 
int EXP
 
int maxLvl
 
Charenemy
 
bool enemySeen
 
bool alerted
 
float lootChance
 
- Protected Attributes inherited from Char
float baseSpeed
 
- Static Protected Attributes inherited from Mob
static const String TXT_ECHO = "echo of "
 
static const String TXT_NOTICE1 = "?!"
 
static const String TXT_RAGE = "#$%^"
 
static const String TXT_EXP = "%+dEXP"
 
static const float TIME_TO_WAKE_UP = 1.0f
 
- 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")
 

Constructor & Destructor Documentation

◆ MirrorImage()

MirrorImage::MirrorImage ( )
Here is the caller graph for this function:

Member Function Documentation

◆ attackProc()

int MirrorImage::attackProc ( Char * enemy,
int damage )
virtual

Reimplemented from Char.

Here is the call graph for this function:

◆ attackSkill()

virtual int MirrorImage::attackSkill ( Char * target)
inlinevirtual

Reimplemented from Char.

Here is the call graph for this function:

◆ chooseEnemy()

Char * MirrorImage::chooseEnemy ( )
protected
Here is the call graph for this function:

◆ CLASSNAME()

MirrorImage::CLASSNAME ( MirrorImage )
Here is the call graph for this function:

◆ damageRoll()

virtual int MirrorImage::damageRoll ( )
inlinevirtual

Reimplemented from Char.

◆ description()

virtual String MirrorImage::description ( )
inlinevirtual

Reimplemented from Mob.

Here is the call graph for this function:

◆ duplicate()

void MirrorImage::duplicate ( Hero * hero)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ interact()

void MirrorImage::interact ( )
virtual

Implements NPC.

Here is the call graph for this function:

◆ restoreFromBundle()

void MirrorImage::restoreFromBundle ( Bundle * bundle)
virtual

Reimplemented from Mob.

Here is the call graph for this function:

◆ Sprite()

CharSprite * MirrorImage::Sprite ( )
virtual

Implements Mob.

Here is the call graph for this function:

◆ storeInBundle()

void MirrorImage::storeInBundle ( Bundle * bundle)
virtual

Reimplemented from Mob.

Here is the call graph for this function:

Member Data Documentation

◆ tier

int MirrorImage::tier

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