Ejemplo n.º 1
0
CEmpoweringCurse::CEmpoweringCurse(void)
{
	duration = 0;
	ChatBubbleID = CSGD_TextureManager::GetInstance()->LoadTexture(_T("Resources/Graphics/ChatBubble.png"));
	for(unsigned int i = 0; i < CEnemy::GetInstance()->GetUnits().size(); i++)
	{
		CParticleSystem* power = new CParticleSystem;
		power->LoadEffect("Empower","Resources/XMLFiles/EmpoweringCurse.xml");
		power->CreateEmitter("Empower");
		power->GetEffect(0)->KillParticles();
		pEmpower.push_back(power);
	}

	empowerID = CSGD_XAudio2::GetInstance()->SFXLoadSound(_T("Resources/Sounds/empowering_curse.wav"));
	CSGD_XAudio2::GetInstance()->SFXPlaySound(empowerID);

	pFont = CGame::GetInstance()->GetFont();
	bChat = false;
	{
		int randNum = rand() % 100;
		if(randNum < 50)
		{

			bChat = true;

			phrase.push_back(_T("Kill the living!"));
			phrase.push_back(_T("MORE CHAOS!!!"));
			phrase.push_back(_T("Leave nothing!"));

			this->phraseToUse = rand() % 3;
		}

	}


}