⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 party.h

📁 韩国英雄王座倒闭后流出来部分源代码
💻 H
字号:
// Party.h: interface for the Party class.
//
//
//
////////////////////////////////////////////////////////////////////////////////////////

#if !defined( _PARTY_H_ )
#define _PARTY_H_

#include "tgabase.h"




////////////////////////////////////////////////////////////////////////////////////////
//	DEFINE
////////////////////////////////////////////////////////////////////////////////////////
#define	MAX_PARTY_NUM			5		//	弥措 颇萍盔 箭磊
#define MAX_CHARACTERTYPE_NUM	4		//  弥措 某腐磐 努贰胶 箭磊
#define	CHECK_GETPARTYEXP_TILE	20		//	颇萍 版氰摹甫 掘篮 TILE箭磊


////////////////////////////////////////////////////////////////////////////////////////
//	Party Class
////////////////////////////////////////////////////////////////////////////////////////
class CParty  
{
public:
	CParty();
	~CParty();

public:
	
	_LPZP_PARTYLIST_REP	m_pPartyMember;						//	Party Member Pointer	
	_LPSOCKET_FD		m_pPartySocket[MAX_PARTY_NUM];		//	Party SocketFD
	BYTE				m_nType ;
	bool				m_bPartyDelete;
	short				m_sClassCount;						//  Save Party Memeber Class Count  7.22 by kuma

	double m_fTempMatrix[MAX_PARTY_NUM][MAX_PARTY_NUM];
	double m_fExpMatrix[MAX_PARTY_NUM][MAX_PARTY_NUM];


public:	
	void PartyQuest_QuestNPCSHOUT(int pQuestIndex,  DWORD pNPCID, char *pMsg );
	_LPSOCKET_FD GetPartyMasterFD();

	
	//	--------------------------------------------------------------------------------
	//	颇萍狼 涅胶飘 包访 Function
	//	--------------------------------------------------------------------------------
	void PartyQuest_Teleport( int pQuestIndex, int pMapID, _POINT pPoint );
	void PartyQuest_Abandon(int pQuestIndex);
	
	//
	//	2004.10.29 by kuma  REQUEST牢瘤 REQUESTMISSION牢瘤 备盒窍磊..
	//
	void PartyQuest_Request( int pQuestIndex,_LPSOCKET_FD	pSocketFD, bool bRequest = false );
	void PartyQuest_RemoveQuest( int pQuestIndex );
	

	void PartyQuest_SetVarTitle(int pQuestIndex, int pID, CString pTitle,int pTriggerID, int pExeCount );
	void PartyQuest_SetTodo( int pQuestIndex, CString pTodo, int pTriggerID, int pExeCount );

	void PartyQuest_DeltaVar(int pQuestIndex, int pSlot, int pDelta);
	void PartyQuest_SetVar( int pQuestIndex, int pSlot, int pValue);

	void PartyQuest_Update(int pQuestIndex );
	void PartyQuest_KillTimerID( int pQuestIndex, int pTimerSlot);
	void PartyQuest_SetTimerID( int pQuestIndex, int pTimerSlot, int pTimerID);


	void PartyQuest_SetEventMapPath( int pQuestIndex, int pMapBase, int pMapPath, int pMapSelect );	
	void PartyQuest_SetNextEventMap( int pQuestIndex );


	void PartyQuest_Effect( DWORD pQuestIndex, DWORD pID, BYTE pOption );


	void PartyQuest_MissionComplete(int pQuestIndex, BYTE pComplete);
	void PartyQuest_Gate( int pQuestIndex, int pGate, int pLock );


	void PartyQuest_CheckAliveQuest( _LPSOCKET_FD pSocket );
	void PartyQuest_IsAliveQuest( _LPSOCKET_FD pSocket, DWORD dwMaster, DWORD dwMasterPartyQuest );
	DWORD Get_MasterPartyQuest( int* pSameMap );

	void PartyQuest_Map_Change( _LPZW_PARTYQUESTMAPCHANGE_REP pPacket );
	bool PartyQuest_MemberExist( DWORD dwPlayer );


	void PartyQuest_ClearGlobal( int pQuestIndex );
	void PartyQuest_SetGlobal(int pQuestIndex, int pVar, int pNum);
	bool Check_PartyIsValid();
	
	//	--------------------------------------------------------------------------------
	//	颇萍狼 惑怕 包访 Function
	//	--------------------------------------------------------------------------------
	bool bIsAllClass();
	bool bIsParyFull();
	bool bIsAllInMap();
	bool bIsMaster(DWORD dwPlayerHandle);

	void Clear_Party();

	void Party_Create( _LPZP_PARTYLIST_REP pPacket );
	void Party_Create( _LPZW_PARTYCREATE_REP pPacket );

	void Party_Join( _LPZW_PARTYJOIN_REP pPacket );
	void Party_Leave( _LPZW_PARTYLEAVE_REP pPacket );

	void Party_Refresh( _LPZW_PARTYREFRESH_REP pPacket );
	void Party_List( _LPSOCKET_FD pSocket );
	void Party_List();										//	沥扁利栏肺 焊郴绰 颇萍 府胶飘 

	void Party_FightzoneTeleport(short sLayer ,_LPZW_FIGHTZONERESERVE pPacket,_POINT p,short nTeam);
	void Party_FightzoneMapMove(short sLayer, int nMapSeq, _POINT p,DWORD dwMatchSeq ,short nTeam );


	void Member_Add( _PARTYLIST_ *pMember );
	void Member_Leave( DWORD	pPlayerHandle  );
	void Member_MapMove( DWORD	pPlayerHandle  );

	void Party_Msg(char * cMsg);
	
	void SetPartyExpMatrix();
	void GetPartyExp( _LPSOCKET_FD pSocketFD, int pGetExp );

	void Send_Refresh( _LPZW_PARTYREFRESH_REP pPacket );
	void Send_ChatMsg_Map  ( _LPZP_PARTYCHAT_ASK pPacket );		//	World Server Chat 皋矫瘤
	void Send_ChatMsg_World( _LPZW_PARTYCHAT_ASK pPacket );		//	郴何 Chat 皋矫瘤

	void Close(bool bForce);

};

#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -