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

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

LocalPlayer Class Reference

#include <localplayer.h>

Inheritance diagram for LocalPlayer:
Inheritance graph
Collaboration diagram for LocalPlayer:
Collaboration graph

List of all members.

Public Types

enum  Action {
enum  AttackType {
  HIT = 0x00, CRITICAL = 0x0a, MULTI = 0x08, REFLECT = 0x04,
  FLEE = 0x0b
enum  BeingDirection { DOWN = 1, LEFT = 2, UP = 4, RIGHT = 8 }
enum  TargetCursorSize { TC_SMALL = 0, TC_MEDIUM, TC_LARGE, NUM_TC }

Public Member Functions

void addGuild (Guild *guild)
void addMessageToQueue (const std::string &message, int color=UserPalette::EXP_INFO)
void afkRespond (ChatTab *tab, const std::string &nick)
void attack (Being *target=NULL, bool keep=false)
void changeAwayMode ()
bool checkInviteRights (const std::string &guildName)
void clearGuilds ()
void clearInventory ()
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 emote (Uint8 emotion)
void fireMissile (Being *target, const std::string &particle)
void flashName (int time)
virtual float getAlpha () const
int getAttackRange ()
int getAttackSpeed () const
int getAttributeBase (int num)
int getAttributeEffective (int num)
bool getAwayMode ()
int getCharacterPoints () const
bool getCheckNameSetting () const
virtual int getCollisionRadius () const
int getCorrectionPoints () const
Action getCurrentAction () const
int getCurrentFrame () const
int getDamageTaken () const
const VectorgetDestination () const
Uint8 getDirection () const
Uint8 getEmotion () const
int getExp () const
std::pair< int, int > getExperience (int skill)
int getExpNeeded () const
Gender getGender () const
GuildgetGuild (const std::string &guildName) const
GuildgetGuild (int id) const
const std::map< int, Guild * > & getGuilds () const
virtual int getHeight () const
int getHp () const
int getId () const
InventorygetInventory () const
int getIp () const
int getLevel () const
int getMaxHp () const
int getMaxMP () const
int getMaxWeight () const
int getMoney () const
int getMP () const
const std::string & getName () const
Position getNextWalkPosition (unsigned char dir)
short getNumberOfGuilds () const
int getNumberOfLayers () const
PartygetParty () const
const std::string & getPartyName () const
const Path & getPath () const
int getPixelX () const
int getPixelY () const
const VectorgetPosition () const
bool getShowIp () const
bool getShowName () const
int getSkillPoints () const
const std::map< int, Special > & getSpecialStatus () const
virtual AnimatedSpritegetSprite (int index) const
SpriteDirection getSpriteDirection () const
Uint16 getSubType () const
BeinggetTarget () const
virtual Being::TargetCursorSize getTargetCursorSize () const
int getTileX () const
int getTileY () const
int getTotalWeight () const
virtual Type getType () const
int getWalkingDir () 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 ()
virtual void handleAttack (Being *victim, int damage, AttackType type)
void inviteToGuild (Being *being)
bool isAlive () const
bool isGM () const
bool isInParty () const
bool isPathSetByMouse () const
 LocalPlayer (int id=65535, int subtype=0)
virtual void logic ()
void lowerAttribute (int attr)
virtual void nextTile ()
virtual void nextTile (unsigned char dir)
void optionChanged (const std::string &value)
void pathSetByMouse ()
void pickedUp (const ItemInfo &itemInfo, int amount, unsigned char fail)
void pickUp (FloorItem *item)
void raiseAttribute (int attr)
void removeGuild (int id)
virtual void setAction (Action action, int attackType=0)
virtual void setAlpha (float alpha)
void setAttackRange (int range)
void setAttackSpeed (int speed)
void setAttributeBase (int num, int value, bool notify=true)
void setAttributeEffective (int num, int value)
void setAway (const std::string &message)
void setCharacterPoints (int n)
void setCheckNameSetting (bool checked)
void setCorrectionPoints (int n)
virtual void setDestination (int x, int y)
void setDirection (Uint8 direction)
void setEmote (Uint8 emotion, Uint8 emote_time)
void setExp (int value, bool notify=true)
void setExperience (int skill, int current, int next, bool notify=true)
void setExpNeeded (int value)
void setFrame (int frame)
virtual void setGender (Gender gender)
virtual void setGM (bool gm)
void setGMLevel (int level)
void setGotoTarget (Being *target)
virtual void setGuildName (const std::string &name)
virtual void setGuildPos (const std::string &pos)
void setHp (int value)
void setId (int id)
void setInvItem (int index, int id, int amount)
void setIp (int ip)
void setLevel (int value)
void setMap (Map *map)
void setMaxHp (int value)
void setMaxMP (int value)
void setMaxWeight (int value)
void setMoney (int value)
void setMP (int value)
virtual void setName (const std::string &name)
void setParty (Party *party)
void setPartyName (const std::string &name)
void setPosition (const Vector &pos)
void setPosition (float x, float y, float z=0.0f)
void setShowIp (bool show)
virtual void setShowName (bool doShowName)
void setSkillPoints (int points)
void setSpecialStatus (int id, int current, int max, int recharge)
void setSpeech (const std::string &text, int time=500)
virtual void setSprite (int slot, int id, const std::string &color="", bool isWeapon=false)
virtual void setSpriteColor (unsigned int slot, const std::string &color="")
virtual void setSpriteID (unsigned int slot, int id)
void setStatusEffect (int index, bool active)
void setStatusEffectBlock (int offset, Uint16 flags)
void setStunMode (int stunMode)
virtual void setSubtype (Uint16 subtype)
void setTarget (Being *target)
void setTargetAnimation (SimpleAnimation *animation)
void setTileCoords (int x, int y)
void setTotalWeight (int value)
void setTrading (bool trading)
void setWalkingDir (int dir)
void setWalkSpeed (Vector speed)
void setWalkTime (int walkTime)
void stopAttack ()
void stopWalking (bool sendToServer=true)
virtual void takeDamage (Being *attacker, int damage, AttackType type)
void toggleSit ()
bool tradeRequestOk () const
virtual void triggerEffect (int effectId)
void untarget ()
void updateName ()
void useSpecial (int id)
bool withinAttackRange (Being *target)
 ~LocalPlayer ()

Static Public Member Functions

static int getNumOfHairstyles ()
static void load ()

Public Attributes

const std::auto_ptr< EquipmentmEquipment

Protected Types

typedef std::map< int, int > IntMap
typedef std::pair< std::string,
int > 
typedef Sprites::const_iterator SpriteConstIterator
typedef Sprites::iterator SpriteIterator
typedef std::vector
< AnimatedSprite * > 

Protected Member Functions

virtual Map::BlockType getBlockType () const
virtual void handleStatusEffect (StatusEffect *effect, int effectId)
void initTargetCursor ()
void internalTriggerEffect (int effectId, bool sfx, bool gfx)
void loadTargetCursor (const std::string &filename, int width, int height, bool outRange, Being::TargetCursorSize size)
void setPath (const Path &path)
virtual void showName ()
void startWalking (unsigned char dir)
virtual void updateColors ()
virtual void updateCoords ()
virtual void updateStatusEffect (int index, bool newStatus)
virtual void updateStunMode (int oldMode, int newMode)

Protected Attributes

Action mAction
int mAfkTime
float mAlpha
int mAttackRange
int mAttackSpeed
IntMap mAttributeBase
IntMap mAttributeEffective
bool mAwayMode
int mCharacterPoints
ParticleList mChildParticleEffects
int mCorrectionPoints
Vector mDest
Uint8 mDirection
int mEmotion
int mEmotionTime
const ItemInfomEquippedWeapon
int mExp
int mExpNeeded
int mFrame
Gender mGender
int mGMLevel
bool mGoingToTarget
std::map< int, Guild * > mGuilds
int mHp
int mId
int mIp
bool mIsGM
bool mKeepAttacking
int mLastAction
int mLastTarget
int mLevel
int mLevelProgress
int mLocalWalkTime
MapSprite mMapSprite
int mMaxHp
int mMaxMp
int mMaxWeight
std::list< MessagePair > mMessages
int mMessageTime
int mMoney
int mMp
std::string mName
const gcn::Color * mNameColor
std::string mPartyName
Path mPath
bool mPathSetByMouse
bool mShowIp
bool mShowName
std::map< int, std::pair< int,
int > > 
int mSkillPoints
char mSpecialRechargeUpdateNeeded
std::map< int, SpecialmSpecials
std::string mSpeech
int mSpeechTime
std::vector< std::string > mSpriteColors
Uint8 mSpriteDirection
std::vector< int > mSpriteIDs
Sprites mSprites
std::vector< int > mStatusEffectIcons
std::set< int > mStatusEffects
ParticleVector mStatusParticleEffects
Uint16 mStunMode
ParticleList mStunParticleEffects
Uint16 mSubType
SimpleAnimationmTargetCursor [2][NUM_TC]
ImageSetmTargetCursorImages [2][NUM_TC]
int mTargetTime
const gcn::Color * mTextColor
int mTotalWeight
bool mTrading
bool mUpdateName
int mWalkingDir
int mWalkTime

Static Protected Attributes

static int mNumberOfHairstyles = 1

Detailed Description

The local player character.

Definition at line 127 of file localplayer.h.

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

Generated by  Doxygen 1.6.0   Back to index