📄 warehouseslotcontainer.h
字号:
// WarehouseSlotContainer.h: interface for the CWarehouseSlotContainer class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WAREHOUSESLOTCONTAINER_H__314B6ABE_55BB_4BD6_BF5F_CDA55ACA343A__INCLUDED_)
#define AFX_WAREHOUSESLOTCONTAINER_H__314B6ABE_55BB_4BD6_BF5F_CDA55ACA343A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SCItemSlotContainer.h"
class Player;
class CWarehouseSlotContainer : public SCItemSlotContainer
{
public:
CWarehouseSlotContainer();
virtual ~CWarehouseSlotContainer();
// 扁夯 窃荐 犁沥狼
virtual VOID UpdateSlot( POSTYPE AtPos, eSlotType type, DBSERIAL serial, SLOTCODE code, POSTYPE quickPos, DURATYPE dura, BYTE level, eUPDATE_BIT upbits = UB_ALL );
virtual VOID UpdateSlot( POSTYPE AtPos, SCSlot & IN rSlot );
virtual BOOL InsertSlot( POSTYPE AtPos, SCSlot & IN rSlot ); // 浇吩俊 按眉 眠啊
virtual VOID DeleteSlot( POSTYPE AtPos, SCSlot * pSlotOut );
virtual VOID ClearAll();
// 惑怕
inline VOID StartWarehouse() { SetValidState(TRUE); }
VOID EndWarehouse();
inline BOOL IsStarted() { return ValidState(); }
inline BOOL IsChanged() { return m_bChanged; }
// SERIALIZE
inline VOID SerializeMoney( MONEY money ) { m_Money = money; }
VOID SerializeItemInfo( WAREHOUSE_TOTAL_INFO & ItemInfo, eSERIALIZE eType );
BOOL SaveWarehouseToDBP( BOOL bEnd = FALSE );
// 捣 贸府
inline const MONEY & GetCurMoney() { return m_Money; }
BOOL WithDrawMoney( MONEY MinusMoney );
BOOL DepositMoney( MONEY PlusMoney );
inline VOID SetPlayer( Player * pPlayer ) { m_pPlayer = pPlayer; }
protected:
Player * m_pPlayer;
private:
MONEY m_Money;
BOOL m_bChanged; //< 单捞磐啊 函沁绰瘤 咯何
};
#endif // !defined(AFX_WAREHOUSESLOTCONTAINER_H__314B6ABE_55BB_4BD6_BF5F_CDA55ACA343A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -