📄 ousters.h
字号:
void getShapeInfo (DWORD& flag, Color_t color[PCOustersInfo::OUSTERS_COLOR_MAX]) const;////////////////////////////////////////////////////// 酒捞袍 馒/呕矫 瓷仿摹 荐沥 包访 窃荐////////////////////////////////////////////////////public: void initAllStat(int numPartyMember=-1) throw(); void sendModifyInfo(const OUSTERS_RECORD& previous) const throw(); void addModifyInfo(const OUSTERS_RECORD& previous, ModifyInfo& pkt) const throw(); void initAllStatAndSend(); private: void computeStatOffset(void) throw(); void computeItemStat(Item* pItem) throw(); void computeOptionStat(Item* pItem) throw(); void computeOptionStat(OptionType_t optionType) throw(); void computeOptionClassStat(OptionClass OClass, int PlusPoint);//////////////////////////////////////////////////////////////// 酒捞袍 八祸 窃荐//////////////////////////////////////////////////////////////public: virtual Item* findItemOID(ObjectID_t id) throw() { return ::findItemOID(this, id); } virtual Item* findItemOID(ObjectID_t id, int& storage, int& x, int& y) throw() { return ::findItemOID(this, id, storage, x, y); } virtual Item* findItemIID(ItemID_t id) throw() { return ::findItemIID(this, id); } virtual Item* findItemIID(ItemID_t id, int& storage, int& x, int& y) throw() { return ::findItemIID(this, id, storage, x, y); } virtual Item* findBeltOID(ObjectID_t id) throw() { return ::findItemOID(this, id, Item::ITEM_CLASS_BELT); } virtual Item* findBeltOID(ObjectID_t id, int& storage, int& x, int& y) throw() { return ::findItemOID(this, id, Item::ITEM_CLASS_BELT, storage, x, y); } virtual Item* findBeltIID(ItemID_t id) throw(){ return ::findItemIID(this, id, Item::ITEM_CLASS_BELT); } virtual Item* findBeltIID(ItemID_t id, int& storage, int& x, int& y) throw(){ return ::findItemIID(this, id, Item::ITEM_CLASS_BELT, storage, x, y); }////////////////////////////////////////////////////// 牢器 包访 窃荐////////////////////////////////////////////////////public: PCOustersInfo2* getOustersInfo2() throw(); PCOustersInfo3 getOustersInfo3() const throw(); InventoryInfo* getInventoryInfo() const throw(); GearInfo* getGearInfo() const throw(); ExtraInfo* getExtraInfo() const throw(); void sendOustersSkillInfo() throw();////////////////////////////////////////////////////// 扁鸥 窃荐////////////////////////////////////////////////////public: virtual Gold_t getGold() const throw() { return m_Gold; } virtual void setGold(Gold_t gold) throw(); virtual void setGoldEx(Gold_t gold) throw(); virtual void increaseGoldEx(Gold_t gold) throw(); virtual void decreaseGoldEx(Gold_t gold) throw(); virtual bool checkGoldIntegrity(); virtual bool checkStashGoldIntegrity(); void heartbeat(const Timeval& currentTime) throw(); void getOustersRecord(OUSTERS_RECORD& record) const throw(); virtual Fame_t getFame() const throw() { return m_Fame; } virtual void setFame(Fame_t fame) throw() { m_Fame = fame; } virtual ZoneID_t getResurrectZoneID(void) const throw() { return m_ResurrectZoneID; } virtual void setResurrectZoneID(ZoneID_t id) throw() { m_ResurrectZoneID = id; } virtual void setResurrectZoneIDEx(ZoneID_t id) throw(); Silver_t getSilverDamage() const throw() { return m_SilverDamage; } void setSilverDamage(Silver_t damage) throw() { m_SilverDamage = damage; } void saveSilverDamage(Silver_t damage) throw(); virtual Steal_t getHPStealAmount(void) const { return m_HPStealAmount; } virtual void setHPStealAmount(Steal_t steal) { m_HPStealAmount = steal; } virtual Steal_t getHPStealRatio(void) const { return m_HPStealRatio; } virtual void setHPStealRatio(Steal_t steal) { m_HPStealRatio = steal; } virtual Steal_t getMPStealAmount(void) const { return m_MPStealAmount; } virtual void setMPStealAmount(Steal_t steal) { m_MPStealAmount = steal; } virtual Steal_t getMPStealRatio(void) const { return m_MPStealRatio; } virtual void setMPStealRatio(Steal_t steal) { m_MPStealRatio = steal; } virtual Regen_t getHPRegen(void) const { return m_HPRegen; } virtual void setHPRegen(Regen_t regen) { m_HPRegen = regen; } virtual Regen_t getMPRegen(void) const { return m_MPRegen; } virtual void setMPRegen(Regen_t regen) { m_MPRegen = regen; } virtual Luck_t getLuck(void) const { return m_Luck; } virtual void setLuck(Luck_t luck) { m_Luck = luck; } virtual int getCriticalRatio(void) const { return m_CriticalRatio[ATTR_CURRENT]; } virtual void setCriticalRatio(int ratio) { m_CriticalRatio[ATTR_CURRENT] = ratio; } virtual Sight_t getEffectedSight() throw(); virtual IP_t getIP(void) const;// WORD getRankExpSaveCount(void) const { return m_RankExpSaveCount; }// void setRankExpSaveCount(WORD count) { m_RankExpSaveCount = count; } WORD getExpSaveCount(void) const { return m_ExpSaveCount; } void setExpSaveCount(WORD count) { m_ExpSaveCount = count; } WORD getFameSaveCount(void) const { return m_FameSaveCount; } void setFameSaveCount(WORD count) { m_FameSaveCount = count; } WORD getAlignmentSaveCount(void) const { return m_AlignmentSaveCount; } void setAlignmentSaveCount(WORD count) { m_AlignmentSaveCount = count; }// void increaseOustersExp(Exp_t Point);// void increaseRankExp(RankExp_t Point); void saveInitialRank(void) throw();//////////////////////////////// 沥飞 加己 包访 窃荐////////////////////////////// Elemental_t getElementalFire() const { return m_ElementalFire; } Elemental_t getElementalWater() const { return m_ElementalWater; } Elemental_t getElementalEarth() const { return m_ElementalEarth; } Elemental_t getElementalWind() const { return m_ElementalWind; } Elemental_t getElementalSum() const { return m_ElementalFire + m_ElementalWater + m_ElementalEarth + m_ElementalWind; }//////////////////////////////// 沥飞 傍拜 焊呈胶////////////////////////////// Damage_t getFireDamage() const { return m_FireDamage; } Damage_t getWaterDamage() const { return m_WaterDamage; } Damage_t getEarthDamage() const { return m_EarthDamage; } Resist_t getSilverResist() const { return m_SilverResist; } bool satisfySkillRequire( SkillInfo* pSkillInfo );//////////////////////////////// 沥飞 加己 包访 窃荐////////////////////////////// bool isPassiveAvailable(SkillType_t type) { return m_PassiveSkillMap.find(type) != m_PassiveSkillMap.end() && m_PassiveSkillMap[type].first; } uint getPassiveBonus(SkillType_t type) { return ( m_PassiveSkillMap.find(type) != m_PassiveSkillMap.end() ) ? m_PassiveSkillMap[type].second : 0; } int getPassiveRatio() const { return m_PassiveRatio; }public : // by sigi. 2002.11.19 virtual bool isPayPlayAvaiable() throw(Error); virtual bool canPlayFree() throw(Error); void initPetQuestTarget();////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private: // PC Name string m_Name; // 鼻茄 BYTE m_Competence; BYTE m_CompetenceShape; // Sex, Color Sex m_Sex; Color_t m_HairColor; // Alignment Alignment_t m_Alignment; // STR/DEX/INT Attr_t m_STR[3]; Attr_t m_DEX[3]; Attr_t m_INT[3]; // HP HP_t m_HP[3]; // MP MP_t m_MP[3]; Damage_t m_Damage[3]; ToHit_t m_ToHit[2]; Defense_t m_Defense[2]; Protection_t m_Protection[2]; Speed_t m_AttackSpeed[2]; int m_CriticalRatio[2]; // Exp/ExpOffset// Exp_t m_Exp;// Exp_t m_ExpOffset; // Gaol Exp Exp_t m_GoalExp; // level Level_t m_Level; // 拌鞭. by sigi. 2002.8.30// Rank_t m_Rank;// RankExp_t m_RankExp;// RankExp_t m_RankGoalExp; // bonus Bonus_t m_Bonus; // Skill bonus SkillBonus_t m_SkillBonus; // gold Gold_t m_Gold; Fame_t m_Fame; ZoneCoord_t m_VisionWidth; ZoneCoord_t m_VisionHeight; // SkillSlot //OustersSkillSlot* m_pSkillSlot[MAX_OUSTERS_SKILL_SLOT]; hash_map<SkillType_t, OustersSkillSlot*> m_SkillSlot; // WearItem Field Item* m_pWearItem[OUSTERS_WEAR_MAX]; bool m_pRealWearingCheck[OUSTERS_WEAR_MAX]; // Ousters Outlook Information mutable PCOustersInfo3 m_OustersInfo; // mutable Thread Mutex mutable Mutex m_Mutex; // 何劝粮 包访 ZoneID_t m_ResurrectZoneID; // 篮 档陛 单固瘤 包访 Silver_t m_SilverDamage; // HP 胶瓶 Steal_t m_HPStealAmount; Steal_t m_HPStealRatio; // MP 胶瓶 Steal_t m_MPStealAmount; Steal_t m_MPStealRatio; // HP, MP 犁积 Regen_t m_HPRegen; Regen_t m_MPRegen; Luck_t m_Luck; // 沥飞 加己 Elemental_t m_ElementalFire; Elemental_t m_ElementalWater; Elemental_t m_ElementalEarth; Elemental_t m_ElementalWind; // 沥仿 傍拜 焊呈胶 器牢飘 Damage_t m_FireDamage; Damage_t m_WaterDamage; Damage_t m_EarthDamage; // 篮 历亲 Resist_t m_SilverResist; hash_map<SkillType_t, pair<bool, uint> > m_PassiveSkillMap; int m_PassiveRatio; // 阿辆 版氰摹 技捞宏 墨款飘// WORD m_RankExpSaveCount; WORD m_ExpSaveCount; WORD m_FameSaveCount; WORD m_AlignmentSaveCount; Timeval m_MPRegenTime;};#endif // __OUSTERS_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -