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

📄 cevent.h

📁 mud游戏人在江湖
💻 H
字号:
//---------------------------------------------------------------------------
#ifndef _CEVENT_H_
#define _CEVENT_H_
//---------------------------------------------------------------------------
#include <string>
#include <list>
#include "CEventCommon.h"

using namespace std;

class CEventRun
{
public:
    int    EventRunType;
	int    EventRunGoodKind;		// new: 2000/06/23
    string EventRunItemName;
    int    EventRunValue;

    CEventRun();
    ~CEventRun();
};

class CEventLimit
{
public:
    int    LimitType;
	int    LimitGoodKind;		// new: 2000/06/23
    string LimitItemName;
    int    LimitValue;

    // [NO]: When the Limit is not satisfied
    string MsgWhenNo;
    list<CEventRun> EventRunListWhenNo;
    // [YES]: When the Limit is satisfied
    string MsgWhenYes;
    list<CEventRun> EventRunListWhenYes;

    CEventLimit();
    CEventLimit(const CEventLimit &SourceLimit);	

    ~CEventLimit();
};

class CEventAsk
{
public:
    string KeyWord;
    int    AskType;
    int    LimitChoose;

// add 7/24 start
    // [NO]:  Default EventRun When the Limit is not satisfied
    string MsgDefaultWhenNo;
    list<CEventRun> DefaultEventRunListWhenNo;
    // [YES]: Default EventRun When the Limit is satisfied
    string MsgDefaultWhenYes;
    list<CEventRun> DefaultEventRunListWhenYes;
// add 7/24 end

    list<CEventLimit> LimitList;

    CEventAsk();
    CEventAsk(char* szKeyWord, int nAskType, int nLimitChoose = EV_LIMITCHOOSE_All, int nNeedDefaultLimit = 0);
    ~CEventAsk();
};

class CNpcEvent
{
public:
    list<CEventAsk> EventAskList;
    CNpcEvent();
    ~CNpcEvent();
};

#endif

⌨️ 快捷键说明

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