Logo Search packages:      
Sourcecode: mana version File versions  Download package

Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Attributes

Monster Class Reference

Inheritance diagram for Monster:
Inheritance graph
[legend]
Collaboration diagram for Monster:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Action {
  STAND, WALK, ATTACK, SIT,
  DEAD, HURT
}
enum  AttackType {
  HIT = 0x00, CRITICAL = 0x0a, MULTI = 0x08, REFLECT = 0x04,
  FLEE = 0x0b
}
enum  BeingDirection { DOWN = 1, LEFT = 2, UP = 4, RIGHT = 8 }
enum  Speech { NO_SPEECH = 0, TEXT_OVERHEAD, NO_NAME_IN_BUBBLE, NAME_IN_BUBBLE }
enum  TargetCursorSize { TC_SMALL = 0, TC_MEDIUM, TC_LARGE, NUM_TC }
enum  Type { UNKNOWN, PLAYER, NPC, MONSTER }

Public Member Functions

void clearPath ()
void controlParticle (Particle *particle)
virtual void draw (Graphics *graphics, int offsetX, int offsetY) const
void drawEmotion (Graphics *graphics, int offsetX, int offsetY)
void drawSpeech (int offsetX, int offsetY)
virtual void drawSpriteAt (Graphics *graphics, int x, int y) const
void fireMissile (Being *target, const std::string &particle)
void flashName (int time)
virtual float getAlpha () const
int getAttackSpeed () const
virtual int getCollisionRadius () const
Action getCurrentAction () const
int getCurrentFrame () const
int getDamageTaken () const
const VectorgetDestination () const
Uint8 getDirection () const
Uint8 getEmotion () const
virtual int getHeight () const
int getId () const
const MonsterInfogetInfo () const
const std::string & getName () const
int getNumberOfLayers () const
const std::string & getPartyName () const
const Path & getPath () const
int getPixelX () const
int getPixelY () const
const VectorgetPosition () const
bool getShowName () const
virtual AnimatedSpritegetSprite (int index) const
SpriteDirection getSpriteDirection () const
Uint16 getSubType () const
virtual TargetCursorSize getTargetCursorSize () const
int getTileX () const
int getTileY () const
virtual Type getType () const
virtual unsigned char getWalkMask () const
Vector getWalkSpeed () const
int getWalkTime () const
virtual int getWidth () const
int getXOffset () const
int getYOffset () const
virtual void handleAttack (Being *victim, int damage, AttackType type)
bool isAlive () const
virtual void logic ()
 Monster (int id, int subtype, Map *map)
virtual void nextTile ()
virtual void optionChanged (const std::string &value)
virtual void setAction (Action action, int attackType=0)
virtual void setAlpha (float alpha)
void setAttackSpeed (int speed)
void setDestination (int ex, int ey)
void setDirection (Uint8 direction)
void setEmote (Uint8 emotion, Uint8 emote_time)
void setFrame (int frame)
virtual void setGuildName (const std::string &name)
virtual void setGuildPos (const std::string &pos)
void setId (int id)
void setMap (Map *map)
virtual void setName (const std::string &name)
void setPartyName (const std::string &name)
void setPosition (const Vector &pos)
void setPosition (float x, float y, float z=0.0f)
virtual void setShowName (bool doShowName)
void setSpeech (const std::string &text, int time=500)
void setStatusEffect (int index, bool active)
void setStatusEffectBlock (int offset, Uint16 flags)
void setStunMode (int stunMode)
virtual void setSubtype (Uint16 subtype)
void setTargetAnimation (SimpleAnimation *animation)
void setTileCoords (int x, int y)
void setWalkSpeed (Vector speed)
void setWalkTime (int walkTime)
virtual void takeDamage (Being *attacker, int amount, AttackType type)
virtual void triggerEffect (int effectId)
void untarget ()
void updateName ()

Static Public Member Functions

static int getNumOfHairstyles ()
static void load ()

Protected Types

typedef Sprites::const_iterator SpriteConstIterator
typedef Sprites::iterator SpriteIterator
typedef std::vector
< AnimatedSprite * > 
Sprites

Protected Member Functions

virtual Map::BlockType getBlockType () const
virtual void handleStatusEffect (StatusEffect *effect, int effectId)
void internalTriggerEffect (int effectId, bool sfx, bool gfx)
void setPath (const Path &path)
void showName ()
void updateCoords ()
virtual void updateStatusEffect (int index, bool newStatus)
virtual void updateStunMode (int oldMode, int newMode)

Protected Attributes

Action mAction
float mAlpha
int mAttackSpeed
ParticleList mChildParticleEffects
Vector mDest
Uint8 mDirection
FlashTextmDispName
int mEmotion
int mEmotionTime
const ItemInfomEquippedWeapon
int mFrame
int mId
MapmMap
MapSprite mMapSprite
std::string mName
const gcn::Color * mNameColor
std::string mPartyName
Path mPath
bool mShowName
std::string mSpeech
int mSpeechTime
Uint8 mSpriteDirection
Sprites mSprites
std::set< int > mStatusEffects
ParticleVector mStatusParticleEffects
Uint16 mStunMode
ParticleList mStunParticleEffects
Uint16 mSubType
TextmText
const gcn::Color * mTextColor
int mWalkTime

Static Protected Attributes

static int mNumberOfHairstyles = 1

Private Attributes

int mAttackType

Detailed Description

Definition at line 30 of file monster.h.


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

Generated by  Doxygen 1.6.0   Back to index