⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slayer.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
📖 第 1 页 / 共 2 页
字号:
	void setRifleBonusExp(Exp_t RifleBonusExp) throw() { m_RifleBonusExp = RifleBonusExp; }		// 瘤沥等 domain俊辑 啊厘 臭篮 level狼 扁贱狼 鸥涝阑 登倒赴促.	//SkillType_t getMaxLevelSkillType(SkillDomainType_t domain) throw();//	void setHotKey(BYTE pos, SkillType_t SkillType) throw() { m_HotKey[pos] = SkillType; }//	SkillType_t getHotKey(BYTE pos) const throw() { return m_HotKey[pos]; }//////////////////////////////////////////////////////////////// 酒捞袍 馒/呕 包访 窃荐//////////////////////////////////////////////////////////////public:	bool  isWear(WearPart Part) throw() { return m_pWearItem[Part] != NULL ? true : false; }	void  addWearItem(WearPart Part, Item* pItem) throw() { Assert(m_pWearItem[Part] = NULL); m_pWearItem[Part] = pItem;}	void  deleteWearItem(WearPart Part) throw(Error) { Assert(m_pWearItem[Part] != NULL); m_pWearItem[Part] = NULL; }	Item* getWearItem(WearPart Part) throw() { return m_pWearItem[Part]; }	void  wearItem(WearPart Part) throw(Error);	void  wearItem(WearPart Part, Item* pItem) throw(Error);	void  takeOffItem(WearPart Part, bool bAddOnMouse, bool bSendModifyInfo) throw(Error);	WearPart getWearPart(Item::ItemClass IClass) const;	bool 	changeShape(Item* pItem, Color_t color, bool bSendPacket=true);	bool 	addShape(Item::ItemClass IClass, ItemType_t IType, Color_t color);	bool 	removeShape(Item::ItemClass IClass, bool bSendPacket=true);	Color_t getItemShapeColor(Item* pItem, OptionInfo* pOptionInfo=NULL) const;	void  destroyGears() throw();	bool  isRealWearing(WearPart part) const throw();	bool  isRealWearing(Item* pItem) const throw();	bool  isRealWearingEx(WearPart part) const;	DWORD sendRealWearingInfo(void) const throw();	void  getShapeInfo (DWORD& flag, Color_t color[PCSlayerInfo::SLAYER_COLOR_MAX]) const;//////////////////////////////////////////////////////////////// 酒捞袍 馒/呕 矫 瓷仿摹 荐沥 包访 窃荐//////////////////////////////////////////////////////////////public:	void initAllStat(int numPartyMember=-1) throw();	void initCastleSkill() throw();	void addModifyInfo(const SLAYER_RECORD& previous, ModifyInfo& pkt) const throw();	void sendModifyInfo(const SLAYER_RECORD& previous) 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:	Motorcycle* getMotorcycle() const throw() { return m_pMotorcycle; }	void setMotorcycle(Motorcycle* pMotorcycle) throw();	void getOffMotorcycle() throw(Error);	RideMotorcycleInfo* getRideMotorcycleInfo() const throw();	bool hasRideMotorcycle() const throw() { return((m_pMotorcycle != NULL) ? true : false);}//////////////////////////////////////////////////////////////// 牢器 包访 窃荐//////////////////////////////////////////////////////////////public:	PCSlayerInfo2* getSlayerInfo2() const throw();	PCSlayerInfo3  getSlayerInfo3() const throw();	GearInfo*      getGearInfo() const throw();	InventoryInfo* getInventoryInfo() const throw();	ExtraInfo*     getExtraInfo() const throw();	void sendSlayerSkillInfo() throw();	// get/set EffectInfo    EffectInfo* getEffectInfo() const throw();//////////////////////////////////////////////////////////////// 扁鸥 窃荐//////////////////////////////////////////////////////////////public:	virtual Fame_t getFame() const throw() { return m_Fame; }	virtual void   setFame(Fame_t fame) throw() { m_Fame = fame; }	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 setInMagics(const string & blob) throw() {}	void heartbeat(const Timeval& currentTime) throw();	void getSlayerRecord(SLAYER_RECORD& record) const throw();	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();	virtual Steal_t getHPStealAmount(void) const { return m_HPStealAmount; }	virtual void setHPStealAmount(Steal_t steal) { m_HPStealAmount = steal; }	virtual Steal_t getMPStealAmount(void) const { return m_MPStealAmount; }	virtual void setMPStealAmount(Steal_t steal) { m_MPStealAmount = steal; }	virtual Steal_t getHPStealRatio(void) const { return m_HPStealRatio; }	virtual void setHPStealRatio(Steal_t steal) { m_HPStealRatio = 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; }	uint getSlayerLevel(void) const throw();	void saveInitialRank(void) throw();	virtual IP_t getIP(void) const;	WORD getDomainExpSaveCount(void) const { return m_DomainExpSaveCount; }	void setDomainExpSaveCount(WORD count) { m_DomainExpSaveCount = count; }	WORD getAttrExpSaveCount(void) const { return m_AttrExpSaveCount; }	void setAttrExpSaveCount(WORD count) { m_AttrExpSaveCount = count; }	WORD getSkillExpSaveCount(void) const { return m_SkillExpSaveCount; }	void setSkillExpSaveCount(WORD count) { m_SkillExpSaveCount = 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; }//	WORD getRankExpSaveCount(void) const { return m_RankExpSaveCount; }//	void setRankExpSaveCount(WORD count) { m_RankExpSaveCount = count; }//	void increaseRankExp(RankExp_t Point);public :	// by sigi. 2002.11.19	virtual bool isPayPlayAvaiable() throw(Error);	virtual bool canPlayFree() throw(Error);	virtual void setLastTarget(ObjectID_t value);	void	initPetQuestTarget();////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////private:	// PC name	string m_Name;	// 鼻茄	BYTE m_Competence;	BYTE m_CompetenceShape;	// Sex(1bit), HairStyle(2bit)	// 唱吝俊绰 bit 楷魂阑 秦辑 皋葛府甫 临捞档废 窍磊.	Sex m_Sex;	HairStyle m_HairStyle;		// HairColor(8bit), SkinColor(8bit)	Color_t m_HairColor;	Color_t m_SkinColor;    // Phone Number	PhoneNumber_t m_PhoneNumber;		// Phone Slot	PhoneNumber_t m_PhoneSlot[3];	// Alignment	Alignment_t m_Alignment;	// STR/DEX/INT	Attr_t m_STR[3];	Attr_t m_DEX[3];	Attr_t m_INT[3];	Attr* m_pAttrs[ATTR_KIND_MAX];	// STR/DEX/INT exp//	Exp_t m_STRExp;//	Exp_t m_STRGoalExp;//	Exp_t m_DEXExp;//	Exp_t m_DEXGoalExp;//	Exp_t m_INTExp;//	Exp_t m_INTGoalExp;	// Rank//	Rank_t 		m_Rank;//	RankExp_t 	m_RankExp;//	RankExp_t 	m_RankGoalExp;//	Rank*		m_pRank;	// HP/MP	HP_t m_HP[3];	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];	// Vision / SkillPoint	Vision_t     m_Vision[2];	SkillPoint_t m_SkillPoint;		// Fame/Gold	Fame_t m_Fame;	Gold_t m_Gold;	// SkillLevel, SkillExp	SkillLevel_t m_SkillDomainLevels[SKILL_DOMAIN_VAMPIRE];//	SkillExp_t m_SkillDomainExps[SKILL_DOMAIN_VAMPIRE];	// Goal Exp	Exp_t m_GoalExp[SKILL_DOMAIN_VAMPIRE];	// Gun, Rifle Bonus Exp	Exp_t m_GunBonusExp;	Exp_t m_RifleBonusExp;	// SkillSlot	//SkillSlot* m_pSkillSlot[MAX_SLAYER_SKILL_SLOT];	hash_map<SkillType_t, SkillSlot*> m_SkillSlot;	// WearItem Field	Item* m_pWearItem[WEAR_MAX];	bool  m_pRealWearingCheck[WEAR_MAX];	// Motorcycle Pointer	Motorcycle* m_pMotorcycle;	// outlook information	mutable PCSlayerInfo3 m_SlayerInfo;	// Hot Key Set//	SkillType_t m_HotKey[4];	mutable Mutex m_Mutex;	// 浇饭捞绢狼 捞傈 瓷仿摹甫 历厘秦 滴绰 滚欺 备炼眉	SLAYER_RECORD m_Record;	// 何劝粮 包访	ZoneID_t m_ResurrectZoneID;	// HP, MP 胶瓶	Steal_t m_HPStealAmount;	Steal_t m_MPStealAmount;	Steal_t m_HPStealRatio;	Steal_t m_MPStealRatio;	// HP, MP 犁积	Regen_t m_HPRegen;	Regen_t m_MPRegen;		// luck	Luck_t  m_Luck;	// Prayer客 Meditation苞 包访等 timer	Timeval m_MPRegenTime;	// 阿辆 版氰摹 技捞宏 墨款飘	WORD m_DomainExpSaveCount;	WORD m_AttrExpSaveCount;	WORD m_SkillExpSaveCount;	WORD m_FameSaveCount;	WORD m_AlignmentSaveCount;//	WORD m_RankExpSaveCount;};#endif // __SLAYER_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -