本文整理汇总了C++中cRng::in_range方法的典型用法代码示例。如果您正苦于以下问题:C++ cRng::in_range方法的具体用法?C++ cRng::in_range怎么用?C++ cRng::in_range使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cRng
的用法示例。
在下文中一共展示了cRng::in_range方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddTextPlayer
void cGirlTorture::AddTextPlayer()
{
bool was, is;
int mes = g_Dice.in_range(0, 4);
switch (mes) {
case 0:
m_Message += gettext("you torture her for hours leaving her sobbing.\n");
break;
case 1:
m_Message += gettext("you enjoy giving out all manners of pain imaginable.");
break;
case 2:
m_Message += gettext("you place a small wormlike creature called a vorm in her pussy and watch as it painfully sucks fluid from her.");
break;
case 3:
m_Message += gettext("after beating her around and using a few torture devices, you sit and watch her crying and cowering in the corner for a time.");
break;
case 4:
default:
m_Message += gettext("you rape her many times making sure she is as uncomfotable as possible.");
/*
* see if she was preggers before the rape
* check to see if the rape made her pregnant
* then check to see if she is afterward
*/
was = m_Girl->is_pregnant();
/*
* supposed to be checking to see if
* she's preg by the goons (at group sex rates)
* then again by player. But I don't have a handy
* sCustomer so I'm going group rate
* and assigning any progeny to the player.
* Lazy, I know :)
*/
m_Girl->calc_pregnancy(The_Player, false, 1.5);
is = m_Girl->is_pregnant();
/*
* if she was not, but is now, then the player
* just knocked her up. We should mention this.
*/
if (is && !was)
{
m_Message += gettext(" She is now pregnant.");
}
g_Girls.LoseVirginity(m_Girl);
break;
}
}