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,89 @@
|
||||
#ifndef _VIRTUAL_AREA_H_
|
||||
#define _VIRTUAL_AREA_H_
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Map/FieldMap/Cell.h>
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
class CCharacter;
|
||||
class CMonster;
|
||||
class CVirtualMonsterMgr;
|
||||
|
||||
|
||||
namespace VirtualArea
|
||||
{
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
struct ProtoType;
|
||||
class CVirtualAreaMgr;
|
||||
|
||||
|
||||
class CVirtualArea
|
||||
{
|
||||
public:
|
||||
virtual void Process() { }
|
||||
virtual unsigned short Enter(CCharacter* lpCharacter, unsigned char cMoveType) { return 0; }
|
||||
virtual bool Leave(CCharacter* lpCharacter) { return false; }
|
||||
|
||||
|
||||
unsigned long GetVID() { return m_dwVID; }
|
||||
CCell* GetCell(int nIndex) { return &m_CellData[nIndex]; }
|
||||
unsigned short GetVirtualType() { return static_cast<unsigned short>(m_dwVID >> 16); }
|
||||
unsigned short GetMapIndex() { return m_wMapIndex; }
|
||||
|
||||
void CreateVirtualMonsterManager();
|
||||
CVirtualMonsterMgr* GetMonsterManager() { return m_pVirtualMonsterMgr; }
|
||||
|
||||
|
||||
// <20><>ũ<EFBFBD><C5A9>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ÿ<><C5B8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD> <20>Լ<EFBFBD><D4BC><EFBFBD>
|
||||
unsigned short GetStartX();
|
||||
unsigned short GetStartZ();
|
||||
unsigned short GetWidth();
|
||||
unsigned short GetHeight();
|
||||
unsigned char GetVirtualZone();
|
||||
Position GetStartPosition(unsigned char cNation);
|
||||
Position GetRespawnPosition(unsigned char cNation, int nIndex);
|
||||
unsigned char GetMaxRespawnPos();
|
||||
const char* GetMapTypeName();
|
||||
|
||||
// Type <20><><EFBFBD><EFBFBD>
|
||||
typedef std::list<CCharacter* > CharacterList;
|
||||
typedef std::list<CMonster* > MonsterList;
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>
|
||||
void ProcessAllMonster();
|
||||
void ProcessMonsterRegenHPAndMP();
|
||||
void ProcessSummonMonsterDead();
|
||||
|
||||
// Item ó<><C3B3>
|
||||
void ProcessDeleteItem();
|
||||
|
||||
// Cell BroadCasting
|
||||
bool ProcessAllCellPrepareBroadCast();
|
||||
bool ProcessAllCellBroadCast(unsigned long dwCurrentPulse);
|
||||
|
||||
protected:
|
||||
|
||||
CVirtualArea(const VirtualArea::ProtoType* lpProtoType, unsigned short wMapIndex);
|
||||
virtual ~CVirtualArea();
|
||||
|
||||
virtual unsigned short AddCharacter(CCharacter* lpCharacter) { return 0; }
|
||||
virtual unsigned short AddSpectator(CCharacter* lpSpectator) { return 0; }
|
||||
|
||||
bool CreateCell(unsigned short wWidth, unsigned short wHeight, unsigned short wMapIndex);
|
||||
|
||||
CCell* m_CellData;
|
||||
unsigned long m_dwVID;
|
||||
unsigned short m_wMapIndex;
|
||||
|
||||
|
||||
CharacterList m_CharacterList;
|
||||
CharacterList m_SpectatorList;
|
||||
|
||||
CVirtualMonsterMgr* m_pVirtualMonsterMgr;
|
||||
|
||||
friend class CVirtualAreaMgr;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // _VIRTUAL_AREA_H_
|
||||
Reference in New Issue
Block a user