void Battle::menuResetWithMoves(Pokemon a_pikachu, Pokemon a_enemy) { battlemenu.battleResetWithMoves(a_pikachu); D3DXCOLOR tempcolor = D3DXCOLOR(0.0f,0.0f,0.0f,1.0f); curtextincrement = 0; swprintf_s(charactertempthingy[curtextincrement], a_pikachu.getName()); battletext[curtextincrement].text = charactertempthingy[curtextincrement];// Pikachu's name battletext[curtextincrement].rec.top = 450; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 600; battletext[curtextincrement].rec.right = 800; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"hp:"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's hp: battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 490; battletext[curtextincrement].rec.right = 720; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getCurHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // Pikachu's curhp battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 555; battletext[curtextincrement].rec.right = 750; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's slash battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 610; battletext[curtextincrement].rec.right = 780; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMaxHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikach's max hp battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 660; battletext[curtextincrement].rec.right = 800; ++curtextincrement; // enemy start swprintf_s(charactertempthingy[curtextincrement], a_enemy.getName()); battletext[curtextincrement].text = charactertempthingy[curtextincrement];// Enemy's name battletext[curtextincrement].rec.top = 75; battletext[curtextincrement].rec.bottom = 0; battletext[curtextincrement].rec.left = 0; battletext[curtextincrement].rec.right = 200; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"hp:"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's hp: battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 0; battletext[curtextincrement].rec.right = 100; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_enemy.getCurHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // enemy's curhp battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 160; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's slash battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 210; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_enemy.getMaxHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // enemy's max hp battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 60; battletext[curtextincrement].rec.right = 210; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; // Start move pp's swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(0).getCurPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 1st move's curpp battletext[curtextincrement].rec.top = 480; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 160; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = L"/"; // pikachu's 1st move's slash battletext[curtextincrement].rec.top = 480; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 210; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(0).getMaxPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 1st move's maxpp battletext[curtextincrement].rec.top = 480; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 60; battletext[curtextincrement].rec.right = 210; ++curtextincrement; // second move swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(1).getCurPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 2nd move's curpp battletext[curtextincrement].rec.top = 480; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 210; battletext[curtextincrement].rec.right = 360; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 2nd move's slash battletext[curtextincrement].rec.top = 480; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 210; battletext[curtextincrement].rec.right = 410; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(1).getMaxPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 2nd move's maxpp battletext[curtextincrement].rec.top = 480; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 260; battletext[curtextincrement].rec.right = 410; ++curtextincrement; // third move pp swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(2).getCurPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 3rd move's curpp battletext[curtextincrement].rec.top = 565; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 160; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 3rd move's slash battletext[curtextincrement].rec.top = 565; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 210; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(2).getMaxPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 3rd move's maxpp battletext[curtextincrement].rec.top = 565; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 60; battletext[curtextincrement].rec.right = 210; ++curtextincrement; // fourth move swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(3).getCurPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 4th move's curpp battletext[curtextincrement].rec.top = 565; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 210; battletext[curtextincrement].rec.right = 360; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's fortuh move's slash battletext[curtextincrement].rec.top = 565; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 210; battletext[curtextincrement].rec.right = 410; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMove(3).getMaxPP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikachu's 4th move's maxpp battletext[curtextincrement].rec.top = 565; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 260; battletext[curtextincrement].rec.right = 410; ++curtextincrement; }
void Battle::menuReset(Pokemon a_pikachu, Pokemon a_enemy) { battlemenu.battleReset(); //wchar_t tempwchar_t[256]; D3DXCOLOR tempcolor = D3DXCOLOR(0.0f,0.0f,0.0f,1.0f); curtextincrement = 0; swprintf_s(charactertempthingy[curtextincrement], a_pikachu.getName()); battletext[curtextincrement].text = charactertempthingy[curtextincrement];// Pikachu's name battletext[curtextincrement].rec.top = 450; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 600; battletext[curtextincrement].rec.right = 800; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"hp:"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's hp: battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 490; battletext[curtextincrement].rec.right = 720; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getCurHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // Pikachu's curhp battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 555; battletext[curtextincrement].rec.right = 750; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's slash battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 610; battletext[curtextincrement].rec.right = 780; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_pikachu.getMaxHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // pikach's max hp battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 660; battletext[curtextincrement].rec.right = 800; ++curtextincrement; // enemy start swprintf_s(charactertempthingy[curtextincrement], a_enemy.getName()); battletext[curtextincrement].text = charactertempthingy[curtextincrement];// Enemy's name battletext[curtextincrement].rec.top = 75; battletext[curtextincrement].rec.bottom = 0; battletext[curtextincrement].rec.left = 0; battletext[curtextincrement].rec.right = 200; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"hp:"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's hp: battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 0; battletext[curtextincrement].rec.right = 100; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_enemy.getCurHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // enemy's curhp battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 160; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"/"); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // hp's slash battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 210; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; swprintf_s(charactertempthingy[curtextincrement], L"%d", a_enemy.getMaxHP()); battletext[curtextincrement].text = charactertempthingy[curtextincrement]; // enemy's max hp battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 60; battletext[curtextincrement].rec.right = 210; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; }
void Battle::menuReset(Pokemon a_pikachu, Pokemon a_enemy) { battlemenu.battleReset(); //wchar_t tempwchar_t[256]; D3DXCOLOR tempcolor = D3DXCOLOR(0.0f,0.0f,0.0f,1.0f); curtextincrement = 0; battletext[curtextincrement].text = a_pikachu.getName();// Pikachu's name battletext[curtextincrement].rec.top = 450; battletext[curtextincrement].rec.bottom = 525; battletext[curtextincrement].rec.left = 600; battletext[curtextincrement].rec.right = 800; ++curtextincrement; battletext[curtextincrement].text = L"hp:"; // hp's hp: battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 490; battletext[curtextincrement].rec.right = 720; ++curtextincrement; battletext[curtextincrement].text = terribleJankyIntToLPCWSTR(a_pikachu.getCurHP()); // Pikachu's curhp battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 555; battletext[curtextincrement].rec.right = 750; ++curtextincrement; battletext[curtextincrement].text = L"/"; // hp's slash battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 610; battletext[curtextincrement].rec.right = 780; ++curtextincrement; battletext[curtextincrement].text = terribleJankyIntToLPCWSTR(a_pikachu.getMaxHP()); // pikach's max hp battletext[curtextincrement].rec.top = 525; battletext[curtextincrement].rec.bottom = 600; battletext[curtextincrement].rec.left = 660; battletext[curtextincrement].rec.right = 800; ++curtextincrement; // enemy start battletext[curtextincrement].text = a_enemy.getName();// Enemy's name battletext[curtextincrement].rec.top = 75; battletext[curtextincrement].rec.bottom = 0; battletext[curtextincrement].rec.left = 0; battletext[curtextincrement].rec.right = 200; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; battletext[curtextincrement].text = L"hp:"; // hp's hp: battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 0; battletext[curtextincrement].rec.right = 100; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; battletext[curtextincrement].text = terribleJankyIntToLPCWSTR(a_enemy.getCurHP()); // enemy's curhp battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 160; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; battletext[curtextincrement].text = L"/"; // hp's slash battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 10; battletext[curtextincrement].rec.right = 210; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; battletext[curtextincrement].text = terribleJankyIntToLPCWSTR(a_enemy.getMaxHP()); // enemy's max hp battletext[curtextincrement].rec.top = 150; battletext[curtextincrement].rec.bottom = 75; battletext[curtextincrement].rec.left = 60; battletext[curtextincrement].rec.right = 210; battletext[curtextincrement].textColor = tempcolor; ++curtextincrement; }