本文整理汇总了C++中cPlayer::Creation方法的典型用法代码示例。如果您正苦于以下问题:C++ cPlayer::Creation方法的具体用法?C++ cPlayer::Creation怎么用?C++ cPlayer::Creation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cPlayer
的用法示例。
在下文中一共展示了cPlayer::Creation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main()
{
#pragma region Setups
SetConsoleTitle(TEXT("----- Game -----"));
SetConsoleOutputCP(437);
HANDLE outcon = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_FONT_INFOEX font;
font.cbSize = sizeof(CONSOLE_FONT_INFOEX);
int currentFont = GetCurrentConsoleFontEx(outcon, false, &font);
font.dwFontSize.X = 8;
font.dwFontSize.Y = 12;
SetCurrentConsoleFontEx(outcon, false, &font);
srand((unsigned int)time(NULL));
gEventHandler.Initialize();
if (!Map.GetMap("Maps/Map.txt"))
return 0;
#pragma endregion
#pragma region GameStartTxt
cout << "Welcome this Game is made by Drakoshi!" << endl;
cout << "WARNING You might read some indecent/weird/18+ rated stuff" << endl;
cout << "The Creator is not responsible for anything that you read in here" << endl;
cout << "You are reading this at your own risk" << endl;
cout << "This contains slang/internet English words" << endl;
cout << "If you don't know the meaning look it up" << endl;
cout << "<If you find grammar mistakes let the creator know>" << endl;
cout << endl;
cout << "It's a game of luck." << endl;
cout << "<If you are seeing this you are either a tester or game creator>" << endl;
cout << "<Or a complete strangeer, recently it was uploaded to GitHub>" << endl;
cout << "<Got an idea suggest it :D . Got a background story to suit this project?>" << endl;
cout << "<Please let me know!>" << endl;
cout << "Basic idea you travel around certain area" << endl;
cout << "You get random events" << endl;
cout << "For now it has no ending" << endl;
cout << "<Text to be edited in future>" << endl << endl;
cout << "Press any key to begin!";
char Choice = _getch();
if (Choice == 'X')
Player.TesterCheck(6934769);
// No longer have helper.exe ... basicly it created empty text files rdy to make events
/*else if (Choice == 'N' && Hacks)
{
system("CLS");
cout << "New E#.txt was created" << endl;
system("helper.exe");
system("pause > nul");
return 0;
}*/
system("CLS");
#pragma endregion
#pragma region Admin/Save Check
if (Player.AdminAcess);
else if (cUtil::CheckFile("save.txt"))
{
cout << "Save found! L = Load , N = Delete and create new" << endl;
char Choice = _getch();
if (cUtil::Check(Choice, 'L'))
Player.Load();
else if (cUtil::Check(Choice, 'N'))
{
cUtil::DelFile("Save.txt");
system("CLS");
Player.Creation();
}
else
{
cUtil::Fail(0);
return 0;
}
}
else Player.Creation();
system("CLS");
#pragma endregion
#pragma region Result Check
if (Player.AdminAcess)
{
cout << "Welcome to Test go!" << endl;
Player.Name = "Tester";
Player.Age = 18;
Player.Gender = 0;
Player.Money = 9999;
Player.Belogings[BEL_HOME] = true;
// Need to fix this to be able to access every event or make adjustments to function another "if" or something or be able to modify my stats as i go
//.........这里部分代码省略.........