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

📄 logic.cpp

📁 决战帝王1.5武神降临对喜爱决战的玩家共享研究用
💻 CPP
字号:
// LOGIC.cpp: implementation of the LOGIC class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "LOGIC.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

LOGIC::LOGIC()
{

}

LOGIC::~LOGIC()
{

}

void LOGIC::Parse(char *pBuf)
{
	int index = 0, i = 0;
	char temp[1024];

	index += ParseSpace( temp, pBuf+index );

	if( !strcmp( temp, "POSITION" ) )
	{
		m_Logic = LOGIC_POSITION;

		index += ParseSpace( temp, pBuf+index );	m_LogicInt[i] = atoi( temp );	i++;
		index += ParseSpace( temp, pBuf+index );	m_LogicInt[i] = atoi( temp );	i++;
		index += ParseSpace( temp, pBuf+index );	m_LogicInt[i] = atoi( temp );	i++;
	}
//	else if( !strcmp( temp, "" )
//	{
//	}
}

void LOGIC::Init()
{
	for( int i = 0; i < MAX_LOGIC_INT; i++)
	{
		m_LogicInt[i] = -1;
	}

	m_LogicChar[0] = 0;
}

⌨️ 快捷键说明

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