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

#include <herosprite.h>

Inheritance diagram for HeroSprite:
Collaboration diagram for HeroSprite:

Public Member Functions

 HeroSprite ()
 
void updateArmor ()
 
virtual void place (int p)
 
virtual void move (int from, int to)
 
virtual void jump (int from, int to, Callback *callback)
 
void Idle ()
 
void Read ()
 
virtual void update ()
 
bool sprint (bool on)
 
- Public Member Functions inherited from CharSprite
 CharSprite ()
 
void link (Char *ch)
 
void turnTo (int from, int to)
 
PointF worldToCamera (int cell)
 
void showStatus (int color, const std::string text,...)
 
void Idle ()
 
void interruptMotion ()
 
virtual void Attack (int cell)
 
virtual void Attack (int cell, Callback *callback)
 
void Operate (int cell)
 
void Zap (int cell)
 
void jump (int from, int to, Callback *callback)
 
virtual void Die ()
 
Emitter * emitter ()
 
Emitter * centerEmitter ()
 
Emitter * bottomEmitter ()
 
void burst (int color, int n)
 
void bloodBurstA (PointF from, int damage)
 
virtual int blood ()
 
void flash ()
 
void add (State state)
 
void remove (State state)
 
void showSleep ()
 
void hideSleep ()
 
void showAlert ()
 
void hideAlert ()
 
virtual void kill ()
 
virtual void onComplete (Tweener *tweener)
 
virtual void onComplete (Animation *anim)
 

Static Public Member Functions

static Image * avatar (HeroClass cl, int armorTier)
 
static TextureFilm * Tiers ()
 

Additional Inherited Members

- Public Types inherited from CharSprite
enum  State {
  BURNING , LEVITATING , INVISIBLE , PARALYSED ,
  FROZEN , ILLUMINATED
}
 
- Public Attributes inherited from CharSprite
Charch
 
bool isMoving
 
- Static Public Attributes inherited from CharSprite
static const int DEFAULT = 0xFFFFFF
 
static const int POSITIVE = 0x00FF00
 
static const int NEGATIVE = 0xFF0000
 
static const int WARNING = 0xFF8800
 
static const int NEUTRAL = 0xFFFF00
 
- Protected Attributes inherited from CharSprite
Animation * idle
 
Animation * run
 
Animation * attack
 
Animation * operate
 
Animation * zap
 
Animation * die
 
Callback * animCallback
 
Tweener * motion
 
Emitter * burning
 
Emitter * levitation
 
IceBlockiceBlock
 
TorchHalohalo
 
EmoIconemo
 
bool sleeping
 

Constructor & Destructor Documentation

◆ HeroSprite()

HeroSprite::HeroSprite ( )
Here is the call graph for this function:

Member Function Documentation

◆ avatar()

Image * HeroSprite::avatar ( HeroClass cl,
int armorTier )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Idle()

void HeroSprite::Idle ( )
inline
Here is the caller graph for this function:

◆ jump()

void HeroSprite::jump ( int from,
int to,
Callback * callback )
virtual
Here is the call graph for this function:

◆ move()

void HeroSprite::move ( int from,
int to )
virtual

Reimplemented from CharSprite.

Here is the call graph for this function:

◆ place()

void HeroSprite::place ( int p)
virtual

Reimplemented from CharSprite.

Here is the call graph for this function:

◆ Read()

void HeroSprite::Read ( )

◆ sprint()

bool HeroSprite::sprint ( bool on)

◆ Tiers()

TextureFilm * HeroSprite::Tiers ( )
static
Here is the caller graph for this function:

◆ update()

void HeroSprite::update ( )
virtual

Reimplemented from CharSprite.

Here is the call graph for this function:

◆ updateArmor()

void HeroSprite::updateArmor ( )
Here is the call graph for this function:
Here is the caller graph for this function:

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