本文整理汇总了C++中CDisplay::init_Border方法的典型用法代码示例。如果您正苦于以下问题:C++ CDisplay::init_Border方法的具体用法?C++ CDisplay::init_Border怎么用?C++ CDisplay::init_Border使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDisplay
的用法示例。
在下文中一共展示了CDisplay::init_Border方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Game
int Game()
{
int x = 0;
int y = 0;
CDisplay GameDisplay;//sets up the display object for curses
Player playerONE(1);
Enemy EnemyONE(1);
//sets up time layout for 1 seconds
// struct timespec tim,tim2;
// tim.tv_sec = 0;
// tim.tv_nsec = 50000000L;
while(play == true)
{
clear();
GameDisplay.init_StatusBar(0,playerONE);
GameDisplay.Display(WinWidth,WinHeight,x,y,26,13,Map[maplocation]);
//GameDisplay.DebugScreen(x,y,Map1);
//GameDisplay.Message(WinWidth/6,(4*WinHeight)/5,(2*WinWidth)/3,WinHeight/5,"Hello young one, i am a traveler from a different land, please help me and I will give you a magic ball");
//GameDisplay.Message(0,0,WinWidth,WinHeight,"abcdefghijklmnopqrstuvwxyz");
GameDisplay.init_Border(Displaycenset);
//GameDisplay.Message("test");
Move(x,y,26,13,Map[maplocation]);
// nanosleep(&tim,&tim2);
if(BattleMode == true)
{
Battle battle1;
battle1.StartBattle(playerONE,EnemyONE);
}
if(DungeonMode == true)
{
Dungeon Dungeon1;
Dungeon1.StartDungeon(playerONE,1);
}
if(AutoDisplay==true)
{
getmaxyx(stdscr,WinHeight,WinWidth);
}
refresh();//refreshes the screen
//GameDisplay.wait(10000);
}
return 0;
}