本文整理汇总了C++中cMovieStudioManager::SetName方法的典型用法代码示例。如果您正苦于以下问题:C++ cMovieStudioManager::SetName方法的具体用法?C++ cMovieStudioManager::SetName怎么用?C++ cMovieStudioManager::SetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cMovieStudioManager
的用法示例。
在下文中一共展示了cMovieStudioManager::SetName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
void cScreenTown::init()
{
if (BuyClinic != -1)
{
(g_ChoiceManager.GetChoice(0) == 0 ? GetClinic = true : BuyClinic = -1);
g_ChoiceManager.Free();
}
if (GetClinic)
{
static_brothel_data *bpt = clinic_data + BuyClinic;
g_Gold.brothel_cost(bpt->price);
g_Clinic.NewBrothel(bpt->rooms, bpt->maxrooms);
g_Clinic.SetName(0, gettext("Clinic"));
GetClinic = false;
BuyClinic = -1;
}
if (BuyCentre != -1)
{
(g_ChoiceManager.GetChoice(0) == 0 ? GetCentre = true : BuyCentre = -1);
g_ChoiceManager.Free();
}
if (GetCentre)
{
static_brothel_data *bpt = centre_data + BuyCentre;
g_Gold.brothel_cost(bpt->price);
g_Centre.NewBrothel(bpt->rooms, bpt->maxrooms);
g_Centre.SetName(0, gettext("Centre"));
GetCentre = false;
BuyCentre = -1;
}
if (BuyArena != -1)
{
(g_ChoiceManager.GetChoice(0) == 0 ? GetArena = true : BuyArena = -1);
g_ChoiceManager.Free();
}
if (GetArena)
{
static_brothel_data *bpt = arena_data + BuyArena;
g_Gold.brothel_cost(bpt->price);
g_Arena.NewBrothel(bpt->rooms, bpt->maxrooms);
g_Arena.SetName(0, gettext("Arena"));
GetArena = false;
BuyArena = -1;
}
if (BuyStudio != -1)
{
(g_ChoiceManager.GetChoice(0) == 0 ? GetStudio = true : BuyStudio = -1);
g_ChoiceManager.Free();
}
if (GetStudio)
{
static_brothel_data *bpt = studio_data + BuyStudio;
g_Gold.brothel_cost(bpt->price);
g_Studios.NewBrothel(bpt->rooms, bpt->maxrooms);
g_Studios.SetName(0, gettext("Studio"));
GetStudio = false;
BuyStudio = -1;
}
if (BuyFarm != -1)
{
(g_ChoiceManager.GetChoice(0) == 0 ? GetFarm = true : BuyFarm = -1);
g_ChoiceManager.Free();
}
if (GetFarm)
{
static_brothel_data *bpt = farm_data + BuyFarm;
g_Gold.brothel_cost(bpt->price);
g_Farm.NewBrothel(bpt->rooms, bpt->maxrooms);
g_Farm.SetName(0, gettext("Farm"));
GetFarm = false;
BuyFarm = -1;
}
if (GetName)
{
if (g_ReturnText != "")
{
if (g_Brothels.GetObjective() && g_Brothels.GetObjective()->m_Objective == OBJECTIVE_GETNEXTBROTHEL)
g_Brothels.PassObjective();
static_brothel_data *bpt = brothel_data + BuyBrothel;
g_Gold.brothel_cost(bpt->price);
g_Brothels.NewBrothel(bpt->rooms, bpt->maxrooms);
g_Brothels.SetName(g_Brothels.GetNumBrothels() - 1, g_ReturnText);
g_InitWin = true;
}
GetName = false;
BuyBrothel = -1;
}
if (BuyBrothel != -1)
{
if (g_ChoiceManager.GetChoice(0) == 0)
{
g_MessageQue.AddToQue("Enter a name for your new brothel.", 0);
GetName = true;
g_InitWin = true;
g_WinManager.Push(GetString, &g_GetString);
}
else BuyBrothel = -1;
g_ChoiceManager.Free();
//.........这里部分代码省略.........