本文整理汇总了C++中Mission::Draw方法的典型用法代码示例。如果您正苦于以下问题:C++ Mission::Draw方法的具体用法?C++ Mission::Draw怎么用?C++ Mission::Draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mission
的用法示例。
在下文中一共展示了Mission::Draw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Main
int Patafour::Main()
{
startTimeout.restart();
string nick,pass;
while (window.isOpen())
{
window.clear(sf::Color::Black);
sf::Vector2u windowsize = window.getSize();
int width = windowsize.x;
int height = windowsize.y;
view.setCenter(sf::Vector2f(width/2, height/2));
view.setSize(sf::Vector2f(width, height));
switch(state) {
case -3:
return 0;
break;
case -2:
static LoginDialog loginDialog;
loginDialog.Draw(window);
nick=loginDialog.login;
pass=loginDialog.pass;
break;
case -1:
static LoadingSplash loadingSplash;
loadingSplash.Draw(window);
if(startTimeout.getElapsedTime().asSeconds()>=2)
{
state = 0;
loadingSplash.Stop();
}
break;
case 0:
static Opening opening(window);
opening.Draw(window,this);
break;
case 1:
static MainMenu mainmenu(window);
mainmenu.Draw(window,this);
break;
case 2:
cout << "options" << endl;
break;
case 3:
cout << "Loading save" << endl;
///Loading here
cout << "Loaded" << endl;
state = 4;
break;
case 4:
static Tips tipsp(this);
if(patapolisloaded == false)
if(tipsp.needsrefresh == true) {
cout << "refresh'd" << endl;
tipsp.refresh(this);
waiting.restart();
res.LoadAllWeapons();
}
if(patapolisloaded==false)
tipsp.Draw(window,this,1);
static int i = 0;
if(i==0) {
res.LoadAllWeapons();
waiting.restart();
i+=1;
}
if(waiting.getElapsedTime().asSeconds()>1) {
if(saveloaded==false) {
savecontainer.Synchronize(nick,pass,0);
saveloaded=true; }
static Patapolis patapolis(window,savecontainer);
if(patapolisloaded==true) {
patapolis.Draw(window,savecontainer,this); }}
break;
case 5:
static NewGameIntro newgameintro;
newgameintro.Draw(window,this);
break;
case 6:
cout << "Patapon oath" << endl;
break;
case 7:
static Tips tipsm(this);
static int miau = 0;
if(miau == 0) {
pataponload = false;
miau += 1;
}
if(missionloaded==false)
if(tipsm.needsrefresh == true){
cout << "refresh'd" << endl;
tipsm.refresh(this);
pataponload = false;
}
if(missionloaded==false) {
tipsm.Draw(window,this,2);
hatapon.x = 0;
//.........这里部分代码省略.........