本文整理汇总了C++中Being::displaystatus方法的典型用法代码示例。如果您正苦于以下问题:C++ Being::displaystatus方法的具体用法?C++ Being::displaystatus怎么用?C++ Being::displaystatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Being
的用法示例。
在下文中一共展示了Being::displaystatus方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: selectitem
int Interface::selectitem(char * question, Being & viewed) {
int ret;
bool done = false;
bool readcommand = true;
Command c;
while (!done) {
if (readcommand) {
query(question);
c = getcommand();
}
else
readcommand = true;
switch (c) {
case COMMAND_CANCEL:
ret = -1; done = true; break;
case COMMAND_1:
ret = 0; done = true; break;
case COMMAND_2:
ret = 1; done = true; break;
case COMMAND_3:
ret = 2; done = true; break;
case COMMAND_4:
ret = 3; done = true; break;
case COMMAND_5:
ret = 4; done = true; break;
case COMMAND_6:
ret = 5; done = true; break;
case COMMAND_7:
ret = 6; done = true; break;
case COMMAND_8:
ret = 7; done = true; break;
case COMMAND_DETAILS:
c = detailspage(viewed);
GAME.normaldisplay();
viewed.displaystatus();
readcommand = false;
break;;
default:
break;
}
}
return ret;
}