本文整理汇总了C++中Pokemon::getMove方法的典型用法代码示例。如果您正苦于以下问题:C++ Pokemon::getMove方法的具体用法?C++ Pokemon::getMove怎么用?C++ Pokemon::getMove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pokemon
的用法示例。
在下文中一共展示了Pokemon::getMove方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: battleResetWithMoves
void Menu::battleResetWithMoves(Pokemon a_pikachu) {
int w,h;
//store curent res
h = height;
w = width;
//change res for ez placment
height = 600;
width = 800;
setRes(width,height);
buttons[0].setActive(true);
buttons[0].setLoc(450,525,10,210);
buttons[1].setActive(true);
buttons[1].setLoc(450,525,210,410);
buttons[2].setActive(true);
buttons[2].setLoc(525,600,10,210);
buttons[3].setActive(true);
buttons[3].setLoc(525,600,210,410);
for(int i = 4;i<numBut;++i)
{
buttons[i].setActive(false);
buttons[i].setLoc(100+60*i,150+60*i,300,500);
}
buttons[0].setlable(a_pikachu.getMove(0).getName());
buttons[0].setVisAct(true);
buttons[1].setlable(a_pikachu.getMove(1).getName());
buttons[1].setVisAct(true);
buttons[2].setlable(a_pikachu.getMove(2).getName());
buttons[2].setVisAct(true);
buttons[3].setlable(a_pikachu.getMove(3).getName());
buttons[3].setVisAct(true);
for(int i = 4;i<numBut;++i)
{
buttons[i].setlable(L"Blank");
buttons[i].setVisAct(false);
}
//reset res
setRes(800,600);
}
示例2: menuResetWithMoves
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;
//.........这里部分代码省略.........