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>
56 lines
1.9 KiB
C++
56 lines
1.9 KiB
C++
// HouseObjectContainer.h: interface for the CHouseObjectContainer class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_HOUSEOBJECTCONTAINER_H__C0339FBB_63E1_4AE5_B2C8_5FADB5E78B51__INCLUDED_)
|
|
#define AFX_HOUSEOBJECTCONTAINER_H__C0339FBB_63E1_4AE5_B2C8_5FADB5E78B51__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "HouseObject.h"
|
|
#include "MapStorage.h"
|
|
|
|
|
|
class CHouseObjectContainer
|
|
{
|
|
class HouseObjectNode
|
|
{
|
|
public:
|
|
long m_nUsed;
|
|
long m_nOutHouseUsed;
|
|
long m_nMedHouseUsed;
|
|
long m_nInHouseUsed;
|
|
char m_strHouseName[MAX_NAMEBUFFER];
|
|
char m_strOutName[MAX_NAMEBUFFER];
|
|
char m_strMedName[MAX_NAMEBUFFER];
|
|
char m_strInName[MAX_NAMEBUFFER];
|
|
char m_strBspName[MAX_NAMEBUFFER];
|
|
CHouseObject *m_pHouseObject;
|
|
|
|
|
|
HouseObjectNode(CHouseObject *pHouseObject,char *strHouseName,char *strIn,char *strMed,char *strOut,char *strBsp);
|
|
~HouseObjectNode();
|
|
};
|
|
List<HouseObjectNode*> m_HouseContainer;
|
|
public:
|
|
void DeleteInObject(char *strOut, char *strMed, char *strIn);
|
|
void LoadInObject(char *strOut, char *strMed, char *strIn);
|
|
int GetCount(char *strOut,char *strMed,char *strIn);
|
|
void DeleteIn(char *strOut,char *strMed,char *strIn);
|
|
void DeleteMed(char *strOut,char *strMed,char *strIn);
|
|
void DeleteOut(char *strOut,char *strMed,char *strIn);
|
|
void LoadIn(char *strOut,char *strMed,char *strIn);
|
|
void LoadMed(char *strOut,char *strMed,char *strIn);
|
|
void LoadOut(char *strOut,char *strMed,char *strIn);
|
|
void DeleteAllObject();
|
|
void DeleteHouseObject(char *strOut,char *strMed,char *strIn,char *strBsp);
|
|
CHouseObject* GetHouseObject(char *strOut,char *strMed,char *strIn,char *strBsp,bool &isAlready,CMapStorage *pMapStorage);
|
|
void Load(char *strOut, char *strMed, char *strIn,char *strBsp,CMapStorage *pMapStorage);
|
|
CHouseObjectContainer();
|
|
virtual ~CHouseObjectContainer();
|
|
};
|
|
|
|
#endif // !defined(AFX_HOUSEOBJECTCONTAINER_H__C0339FBB_63E1_4AE5_B2C8_5FADB5E78B51__INCLUDED_)
|