Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,137 @@
|
||||
#ifndef _STALL_CONTAINER_H_
|
||||
#define _STALL_CONTAINER_H_
|
||||
|
||||
#include "ItemContainer.h"
|
||||
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
class CChatPacket;
|
||||
class CSendStream;
|
||||
class CAggresiveCreature;
|
||||
class CCharacter;
|
||||
class CCell;
|
||||
|
||||
namespace Item
|
||||
{
|
||||
class CShopContainer : public CArrayContainer
|
||||
{
|
||||
public:
|
||||
|
||||
enum
|
||||
{
|
||||
MAX_CUSTOMER_NUM = 10
|
||||
};
|
||||
|
||||
CShopContainer();
|
||||
virtual ~CShopContainer();
|
||||
|
||||
bool Initialize(unsigned long dwCID, unsigned char cWidth, unsigned char cHeight);
|
||||
|
||||
virtual void Clear(void);
|
||||
|
||||
virtual CItem* GetItem(ItemPos itemPos);
|
||||
virtual bool SetItem(ItemPos itemPos, CItem* lpItem) = 0;
|
||||
virtual bool RemoveItem(ItemPos itemPos);
|
||||
|
||||
void SwapPosAllItem(void);
|
||||
|
||||
bool StallPriceOut(unsigned long* szStallPriceBuffer_Out, unsigned char& cItemNum_Out) const;
|
||||
|
||||
bool Enter(CCharacter *lpCustomer);
|
||||
bool Leave(CCharacter *lpCustomer);
|
||||
|
||||
unsigned char GetCurrentCustomerNum(void);
|
||||
|
||||
virtual bool Close(void);
|
||||
|
||||
virtual bool SendCharStallItemInfo(CCharacter *lpCustomer) = 0;
|
||||
virtual bool SendAllCustomer(const char* szPacket, const unsigned long dwPacketSize,
|
||||
bool bIncludeOwner, unsigned char cCMD_In);
|
||||
|
||||
bool SendRemoveItem(TakeType takeType, unsigned char cCmd, const char* strBuyUser);
|
||||
bool SendCharStallEnter(unsigned long dwCustomerID, unsigned long dwOwnerID);
|
||||
|
||||
protected:
|
||||
|
||||
void Destroy();
|
||||
|
||||
unsigned long m_aryCustomerID[MAX_CUSTOMER_NUM]; // <20>մԵ<D5B4><D4B5><EFBFBD> <20><><EFBFBD>̵<EFBFBD> <20>迭
|
||||
};
|
||||
|
||||
|
||||
class CCharacterShopContainer : public CShopContainer
|
||||
{
|
||||
public:
|
||||
|
||||
enum
|
||||
{
|
||||
MAX_STALL_NAME_LEN = 32
|
||||
};
|
||||
|
||||
CCharacterShopContainer();
|
||||
virtual ~CCharacterShopContainer();
|
||||
|
||||
virtual void Clear(void);
|
||||
|
||||
void RollBackAllItem(void);
|
||||
|
||||
virtual bool SetItem(ItemPos itemPos, CItem* lpItem);
|
||||
|
||||
void SetOtherOwner(unsigned long dwCID) { m_dwOtherOwnerID = dwCID; }
|
||||
unsigned long GetOtherOwner(void) { return m_dwOtherOwnerID; }
|
||||
|
||||
char* GetStallName(void) { return m_strStallName; }
|
||||
|
||||
bool Open(char *strStallName);
|
||||
virtual bool Close(void);
|
||||
|
||||
virtual bool SendCharStallItemInfo(CCharacter *lpCustomer);
|
||||
virtual bool SendAllCustomer(const char* szPacket, const unsigned long dwPacketSize,
|
||||
bool bIncludeOwner, unsigned char cCMD_In);
|
||||
|
||||
bool SendCharStallOpen(char *strStallName);
|
||||
|
||||
protected:
|
||||
|
||||
unsigned long m_dwOtherOwnerID; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̵<EFBFBD> (<28><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
char m_strStallName[MAX_STALL_NAME_LEN]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD>
|
||||
};
|
||||
|
||||
|
||||
class CCampShopContainer : public CShopContainer
|
||||
{
|
||||
public:
|
||||
|
||||
CCampShopContainer(void);
|
||||
virtual ~CCampShopContainer(void);
|
||||
|
||||
virtual bool SetItem(ItemPos itemPos, CItem* lpItem);
|
||||
virtual bool RemoveItem(ItemPos itemPos);
|
||||
|
||||
void DropItem(CCell* lpCell, const Position& currentPos, unsigned long dwOffencerGID);
|
||||
|
||||
bool StallPriceIn(const unsigned long* szStallPriceBuffer_In, unsigned char cItemNum_In);
|
||||
|
||||
virtual bool SendCharStallItemInfo(CCharacter *lpCustomer);
|
||||
|
||||
CItem* RegisterCancelItem(CCharacter* lpCharacter, TakeType takeType, unsigned long dwPrice, unsigned char cCmd);
|
||||
bool CheckUpdateCount(void);
|
||||
void IncreaseUpdateCount(void) { ++m_cUpdateCount; }
|
||||
|
||||
bool SendCharStallItemInfo(CSendStream& SendStream);
|
||||
|
||||
bool IsEmpty() const;
|
||||
|
||||
protected:
|
||||
|
||||
enum Const
|
||||
{
|
||||
UPDATE_COUNT = 1
|
||||
};
|
||||
|
||||
unsigned char m_cUpdateCount; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ ī<><C4AB>Ʈ (UPDATE_COUNT<4E><54> <20>Ѿ<D1BE><EEBCAD> DB<44><42> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>Ѵ<EFBFBD>.)
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user