本文整理汇总了C++中cClinicManager::RemoveGirl方法的典型用法代码示例。如果您正苦于以下问题:C++ cClinicManager::RemoveGirl方法的具体用法?C++ cClinicManager::RemoveGirl怎么用?C++ cClinicManager::RemoveGirl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cClinicManager
的用法示例。
在下文中一共展示了cClinicManager::RemoveGirl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: check_events
//.........这里部分代码省略.........
{
if (selected_girl->m_AccLevel + 1 > 9)
selected_girl->m_AccLevel = 9;
else
selected_girl->m_AccLevel++;
if (accomval_id != -1) EditTextItem("Accommodation: " + g_Girls.Accommodation(selected_girl->m_AccLevel), accomval_id);
g_InitWin = true;
return;
}
if (g_InterfaceEvents.CheckButton(accomdown_id))
{
if (selected_girl->m_AccLevel - 1 < 0) selected_girl->m_AccLevel = 0;
else selected_girl->m_AccLevel--;
if (accomval_id != -1) EditTextItem("Accommodation: " + g_Girls.Accommodation(selected_girl->m_AccLevel), accomval_id);
g_InitWin = true;
return;
}
if (g_InterfaceEvents.CheckButton(takegold_id))
{
take_gold(selected_girl);
}
if (g_InterfaceEvents.CheckButton(reldungeon_id))
{
g_Brothels.GetDungeon()->GetDungeonPos(selected_girl);
if ((g_Brothels.GetBrothel(g_CurrBrothel)->m_NumRooms - g_Brothels.GetBrothel(g_CurrBrothel)->m_NumGirls) == 0)
{
g_MessageQue.AddToQue(gettext("The current brothel has no more room.\nBuy a new one, get rid of some girls, or change the brothel you are currently managing."), 0);
}
else
{
sGirl* nextGirl = remove_selected_girl();
sGirl* tempGirl = g_Brothels.GetDungeon()->RemoveGirl(g_Brothels.GetDungeon()->GetGirl(g_Brothels.GetDungeon()->GetGirlPos(selected_girl)));
g_Brothels.AddGirl(g_CurrBrothel, tempGirl);
if (g_Brothels.GetDungeon()->GetNumGirls() == 0)
{
selected_girl = 0;
g_WinManager.Pop();
}
else
selected_girl = nextGirl;
}
g_InitWin = true;
return;
}
if (g_InterfaceEvents.CheckButton(senddungeon_id))
{
ss.str("");
g_Brothels.GetGirlPos(g_CurrBrothel, selected_girl);
// does she decide to fight back
if (g_Brothels.FightsBack(selected_girl))
{
bool win = true;
sGang* gang = g_Gangs.GetGangOnMission(MISS_GUARDING);
int count = 8;
while (gang && win && count >= 0)
{
win = (g_Gangs.GangCombat(selected_girl, gang));
if (gang->m_Num == 0) gang = g_Gangs.GetGangOnMission(MISS_GUARDING);
count--;
if (count<0) win = true;
}
// Calculate combat between goons and girl if she decides to fight back