本文整理汇总了C++中CDisplay::Message方法的典型用法代码示例。如果您正苦于以下问题:C++ CDisplay::Message方法的具体用法?C++ CDisplay::Message怎么用?C++ CDisplay::Message使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDisplay
的用法示例。
在下文中一共展示了CDisplay::Message方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: eventListener
//.........这里部分代码省略.........
case 4:
maplocation = 3;
x = -x -4;
y = 8;
break;
case 5:
maplocation = 4;
x = -x -4;
y = -14;
break;
case 7:
maplocation = 6;
x = -x -4;
y = -3;
break;
case 10:
maplocation = 9;
x = -x -4;
y = 2;
break;
case 12:
maplocation = 5;
x = -x -4;
y = 0;
break;
}
return true;
}
// Collision Check for Enemies
else if(CollisionCheck(x,y,xcen,ycen,Map,'<') || CollisionCheck(x,y,xcen,ycen,Map,'>'))
{
CDisplay display;
display.Message("If the battle system was implemented, you would be fighting.");
refresh();
bool leave = false;
while(leave == false)
{
if(Input() == '\n')
{
leave = true;
}
}
return true;
}
// Collision Check for Chests
else if(CollisionCheck(x,y,xcen,ycen,Map,'&') && input == '\n')
{
CDisplay display;
display.Message("You opened the chest. There was nothing inside!");
refresh();
bool leave = false;
while(leave == false)
{
if(Input() == '\n')
{
leave = true;
}
}
return true;
}
// Collision Check for Person A
else if(CollisionCheck(x,y,xcen,ycen,Map,'A') && input == '\n')