Esempio n. 1
0
void CCLord::CreateColleagues( void )
{
	// 생성
	CCElection * pElection	= new CCElection( this );
	CLEvent* pEvent		= new CLEvent( this );
	CLordSkill* pSkills		= new CLordSkill( this );
	// 스크립트 로드
	pEvent->Initialize( "lordevent.inc" );
	pSkills->Initialize( "lordskill.txt" );
	// 설정
	m_pElection		= pElection;
	m_pEvent	= pEvent;
	m_pSkills	= pSkills;
}
Esempio n. 2
0
void CTLord::CreateColleagues( void )
{	// 협력 객체의 생성 및 초기화
	// 생성
	m_pController	= new CLController( this );
	m_pController->CreateDbHandler( MIN( 1 ) );
	CTElection * pElection	= new CTElection( this );
	CLEvent* pEvent		= new CLEvent( this );
	CLordSkill* pSkills		= new CTLordSkill( this );
	// 스크립트
	pElection->Initialize( "election.inc" );
	pEvent->Initialize( "lordevent.inc" );
	pSkills->Initialize( "lordskill.txt" );
	// 설정
	m_pElection		= pElection;
	m_pEvent	= pEvent;
	m_pSkills	= pSkills;
	// 데이터베이스로부터 이전 상태 복원
	if( !RestoreAll() )
	{
		election::OutputDebugString( "CTLord.CreateColleagues" );
		exit( -1 );
	}
}