📄 gamble.h
字号:
////////////////////////////////////////////////////////////////////////////////////////
// 胺喉傅
//
//
////////////////////////////////////////////////////////////////////////////////////////
#if !defined( _GAMBLING_H_ )
#define _GAMBLING_H_
#include "../Parameter/Item.h"
#include "tgaBase.h"
#ifdef DEF_KUMA_GAMBLE
#define GAMBLE_LV_MIN 1 // 胺喉 Level Min
#define GAMBLE_LV_MAX 350 // 胺喉 Level Max
#define GAMBLE_PRIZE 50 // 寸梅 犬伏
#define GAMBLE_PRIZE_NORMAL 60 // 老馆 犬伏
#define GAMBLE_PRIZE_MAGIC 30 // 概流 犬伏
#define GAMBLE_PRIZE_RARE 10 // 饭绢 犬伏
#define GAMBLE_LUCK_OPTION 5 // 青款 可记 硅荐
#define GAMBLE_LUCK_ITEM 10 // 青款 酒捞袍 硅荐
#define GAMBLE_SELL_ITEM 2 // 迫锭矫 硅荐 ( 白喉救俊辑父 瓤仿 )
#define GAMBLE_MAGIC (WORD)1
#define GAMBLE_RARE (WORD)2
#define GAMBLE_INIT_PERIODIC 7 // 7矫锭 青款 可记/酒捞袍阑 爱磊
class CGamble
{
public:
CGamble();
~CGamble();
BYTE m_nGambleType; // 1 : 概流
// 2 : 饭绢
int m_nGambleOption; // m_nMagicType : 1 -> 概流 可记
// m_nMagicType : 2 -> 饭绢 可记
_BASE_ITEM_* m_pGambleBaseItem; // 青款酒捞袍
vector<DWORD> m_vOptions;
int m_nDay;
BOOL m_bStart;
BOOL InitGambleLuck(BOOL bStart = FALSE);
BOOL GambleStart( _LPSOCKET_FD pSocketFD );
CItem* GambleStop( _LPSOCKET_FD pSocketFD );
BOOL GambleSell( _LPSOCKET_FD pSocketFD );
void GambleOpen( _LPSOCKET_FD pSocketFD );
bool GambleClose( _LPSOCKET_FD pSocketFD, bool bSell = false );
BOOL GetLuckTitle( BYTE& type, WORD& opt, int& baseitemidx )
{
type = m_nGambleType;
opt = (WORD)m_nGambleOption;
baseitemidx = (int)m_pGambleBaseItem->dwIndex;
return TRUE;
}
BOOL GetLuckTitle( char* szLuckOption, char* szLuckItem );
protected:
void LoadGambleLuck();
};
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -