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

📄 ggoodsdefine.h

📁 五行MMORPG引擎系统V1.0
💻 H
字号:
//GGoods.h
/*/////////////////////////////////////////////////////////////////
物品管理
	因为不同类型物品,拥有不一样的属性;而同类物品,则拥有类似的属性,
	物品基类
		物品 tagGGoods
	物品超类
		元素			tagGGElement
		材料			tagGGMaterial
		收集			tagGGCollection
		消耗物品		tagGGConsume
		道具			tagGGProperty
		任务物品		tagGGTask
		装备			tagGGEquipment

		技能			tagGSkill


	物品层次类别
		GGK_NORMAL,		//普通型
		GGK_GOOD,		//优良
		GGK_EXCELLENT,	//卓越
		GGK_RARITY,		//珍品
		GGK_NOSUCH,		//极品


   李亦
	liease@163.com 4040719
	2006-7-13
/*/////////////////////////////////////////////////////////////////
#ifndef _RPG__GGOODSDEFINE_H_
#define _RPG__GGOODSDEFINE_H_

//#ifndef _RPG__GGOODSDEFINE_H_
//#include "rpg/gobject/ggoodsDefine.h"
//#endif


//#ifndef _RPG__RPGDEFINE_H_
//#include "rpg/RPGDefine.h"
//#endif
//
//#ifndef _RPG__GOBJECT_H_
//#include "GObject.h"
//#endif
//
namespace RPG
{
//class GEfficacy;


/////////////////////////////////////////////////////////////////
//游戏物品定义
typedef struct tagGGoodsDefine
{
	U32		dwID;		//物品代号
	STE	pGoodsName;	//名字
	STE	sUnit;
	STE	pFileTitle;	//文件名称
	STE	pIconLabel;		//图标索引

	U32		dwGoodsType;	//类型
	U32		dwSubType;	//子类型
	U32		dwKind;		//层次
	U32		dwEquipSet;	//套装类型

	U32	dwMass;		//重量
	U32	dwWearMax;	//最大耐久度

	//以下增量参照级别
	U32			dwPrice;				//价格
	U32			dwPriceStep;		//价格增量
	U32			dwUseTime;			//使用时间长度,单位:ms
	S32			nUseTimeStep;		//使用时间长度增量
	U32			dwUseDelay;			//使用延迟,单位:ms
	S32			nUseDelayStep;	//使用延迟增量

	StringTableEntry	pDesc;	//说明

}GGOODSDEFINE;


/////////////////////////////////////////////////////////////////
/// 物品定义
//class GGoodsDefine
//{
//public:
//	GGOODSDEFINE	m_dataGoodsDefine;
//public:
//	//构造/析构函数
//	GGoodsDefine(){}
//	~GGoodsDefine(){}
//	
//	U32 GetID();
//
//};//class GGoodsDefine
//
//inline U32 GGoodsDefine::GetID()
//{
//	
//	return	MAKEU16(m_dataGoodsDefine.dwGoodsType, m_dataGoodsDefine.dwSubType);
//}


///////////////////////////////////////////////////////////////////
////元素
//typedef struct tagGGElement : public tagGGoods
//{
//
//}GGELEMENT;
//
///////////////////////////////////////////////////////////////////
////材料
//typedef struct tagGGMaterial : public tagGGoods
//{
//
//}GGGMATERIAL;
//
///////////////////////////////////////////////////////////////////
////收集
//typedef struct tagGGCollection : public tagGGoods
//{
//
//}GGCOLLECTION;
//
///////////////////////////////////////////////////////////////////
////
//typedef struct tagGGConsume : public tagGGoods
//{
//
//}GGCONSUME;
//
///////////////////////////////////////////////////////////////////
////道具
//typedef struct tagGGProperty : public tagGGoods
//{
//
//}GGPROPERTY;
//
///////////////////////////////////////////////////////////////////
////任务物品
//typedef struct tagGGoodsTask : public tagGGoods
//{
//
//}GGOODSTASK;
//
///////////////////////////////////////////////////////////////////
////人物装备
//typedef struct tagGGEquipment : public tagGGoods
//{
//
//}GGEQUIPMENT;
//




};//namespace RPG
#endif //_RPG__GGOODSDEFINE_H_

⌨️ 快捷键说明

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