Item.h
资源名称:wow.rar [点击查看]
上传用户:jxpjxmjjw
上传日期:2009-12-07
资源大小:5877k
文件大小:2k
源码类别:
模拟服务器
开发平台:
Visual C++
- // Copyright (C) 2004 Team Python
- //
- // This program is free software; you can redistribute it and/or modify
- // it under the terms of the GNU General Public License as published by
- // the Free Software Foundation; either version 2 of the License, or
- // (at your option) any later version.
- //
- // This program is distributed in the hope that it will be useful,
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- // GNU General Public License for more details.
- //
- // You should have received a copy of the GNU General Public License
- // along with this program; if not, write to the Free Software
- // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- #ifndef WOWPYTHONSERVER_ITEM_H
- #define WOWPYTHONSERVER_ITEM_H
- #include "Unit.h"
- class Item : public Object {
- friend class WorldServer;
- friend class DatabaseInterface;
- public:
- Item ( );
- void Create( uint32 guidlow, uint32 itemid );
- //inline const uint8 & getSlot( ) const { return slot; }
- //inline void setSlot( const uint8 & newslot ) { slot = newslot; }
- //uint8 slot;
- //uint32 * itemid;
- uint32 Class;
- uint32 SubClass;
- std::string name1;
- std::string name2;
- std::string name3;
- std::string name4;
- uint32 DisplayInfoID;
- uint32 OverallQualityID;
- uint32 Flags;
- uint32 Buyprice;
- uint32 Sellprice;
- uint32 Inventorytype;
- uint32 AllowableClass;
- uint32 AllowableRace;
- uint32 ItemLevel;
- uint32 RequiredLevel;
- uint32 RequiredSkill;
- uint32 RequiredSkillRank;
- uint32 MaxCount;
- uint32 Stackable;
- uint32 ContainerSlots;
- uint32 BonusStat[10];
- uint32 BonusAmount[10];
- uint32 MinimumDamage[5];
- uint32 MaximumDamage[5];
- uint32 DamageType[5];
- uint32 Resistances[6];
- uint32 Delay;
- uint32 AmmunitionType;
- uint32 MaxDurability;
- uint32 SpellID[5];
- uint32 SpellTrigger[5];
- uint32 SpellCharges[5];
- uint32 SpellCooldown[5];
- uint32 SpellCategory[5];
- uint32 SpellCategoryCooldown[5];
- uint32 Bonding;
- std::string Description;
- uint32 Pagetext;
- uint32 LanguageID;
- uint32 PageMaterial;
- uint32 StartQuestID;
- uint32 LockID;
- uint32 Material;
- uint32 Sheathetype;
- uint32 Unknown1;
- uint32 Unknown2;
- };
- #endif