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

#include <charsprite.h>

Inheritance diagram for CharSprite:
Collaboration diagram for CharSprite:

Public Types

enum  State {
  BURNING , LEVITATING , INVISIBLE , PARALYSED ,
  FROZEN , ILLUMINATED
}
 

Public Member Functions

 CharSprite ()
 
void link (Char *ch)
 
virtual void place (int cell)
 
void turnTo (int from, int to)
 
PointF worldToCamera (int cell)
 
void showStatus (int color, const std::string text,...)
 
void Idle ()
 
virtual void move (int from, int to)
 
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)
 
virtual void update ()
 
void showSleep ()
 
void hideSleep ()
 
void showAlert ()
 
void hideAlert ()
 
virtual void kill ()
 
virtual void onComplete (Tweener *tweener)
 
virtual void onComplete (Animation *anim)
 

Public Attributes

Charch
 
bool isMoving
 

Static Public Attributes

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

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
 

Member Enumeration Documentation

◆ State

Enumerator
BURNING 
LEVITATING 
INVISIBLE 
PARALYSED 
FROZEN 
ILLUMINATED 

Constructor & Destructor Documentation

◆ CharSprite()

CharSprite::CharSprite ( )

Member Function Documentation

◆ add()

void CharSprite::add ( State state)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Attack() [1/2]

void CharSprite::Attack ( int cell)
virtual

Reimplemented in BurningFistSprite, EyeSprite, MonkSprite, RottingFistSprite, ScorpioSprite, and TenguSprite.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Attack() [2/2]

void CharSprite::Attack ( int cell,
Callback * callback )
virtual
Here is the call graph for this function:

◆ blood()

virtual int CharSprite::blood ( )
inlinevirtual

◆ bloodBurstA()

void CharSprite::bloodBurstA ( PointF from,
int damage )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ bottomEmitter()

Emitter * CharSprite::bottomEmitter ( )
Here is the call graph for this function:

◆ burst()

void CharSprite::burst ( int color,
int n )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ centerEmitter()

Emitter * CharSprite::centerEmitter ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Die()

void CharSprite::Die ( )
virtual

Reimplemented in ElementalSprite, LarvaSprite, SkeletonSprite, SuccubusSprite, UndeadSprite, and YogSprite.

Here is the caller graph for this function:

◆ emitter()

Emitter * CharSprite::emitter ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flash()

void CharSprite::flash ( )
inline
Here is the caller graph for this function:

◆ hideAlert()

void CharSprite::hideAlert ( )

◆ hideSleep()

void CharSprite::hideSleep ( )
Here is the caller graph for this function:

◆ Idle()

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

◆ interruptMotion()

void CharSprite::interruptMotion ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jump()

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

◆ kill()

void CharSprite::kill ( )
virtual

◆ link()

void CharSprite::link ( Char * ch)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ move()

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

Reimplemented in HeroSprite, and TenguSprite.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onComplete() [1/2]

void CharSprite::onComplete ( Animation * anim)
virtual

◆ onComplete() [2/2]

void CharSprite::onComplete ( Tweener * tweener)
virtual
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Operate()

void CharSprite::Operate ( int cell)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ place()

virtual void CharSprite::place ( int cell)
inlinevirtual

Reimplemented in HeroSprite.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove()

void CharSprite::remove ( State state)

◆ showAlert()

void CharSprite::showAlert ( )

◆ showSleep()

void CharSprite::showSleep ( )
Here is the caller graph for this function:

◆ showStatus()

void CharSprite::showStatus ( int color,
const std::string text,
... )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ turnTo()

void CharSprite::turnTo ( int from,
int to )
Here is the caller graph for this function:

◆ update()

void CharSprite::update ( )
virtual

Reimplemented in HeroSprite, and MobSprite.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ worldToCamera()

PointF CharSprite::worldToCamera ( int cell)
Here is the caller graph for this function:

◆ Zap()

void CharSprite::Zap ( int cell)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ animCallback

Callback* CharSprite::animCallback
protected

◆ attack

Animation* CharSprite::attack
protected

◆ burning

Emitter* CharSprite::burning
protected

◆ ch

Char* CharSprite::ch

◆ DEFAULT

const int CharSprite::DEFAULT = 0xFFFFFF
static

◆ die

Animation* CharSprite::die
protected

◆ emo

EmoIcon* CharSprite::emo
protected

◆ halo

TorchHalo* CharSprite::halo
protected

◆ iceBlock

IceBlock* CharSprite::iceBlock
protected

◆ idle

Animation* CharSprite::idle
protected

◆ isMoving

bool CharSprite::isMoving

◆ levitation

Emitter* CharSprite::levitation
protected

◆ motion

Tweener* CharSprite::motion
protected

◆ NEGATIVE

const int CharSprite::NEGATIVE = 0xFF0000
static

◆ NEUTRAL

const int CharSprite::NEUTRAL = 0xFFFF00
static

◆ operate

Animation* CharSprite::operate
protected

◆ POSITIVE

const int CharSprite::POSITIVE = 0x00FF00
static

◆ run

Animation* CharSprite::run
protected

◆ sleeping

bool CharSprite::sleeping
protected

◆ WARNING

const int CharSprite::WARNING = 0xFF8800
static

◆ zap

Animation* CharSprite::zap
protected

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