当前位置: 首页>>代码示例>>C++>>正文


C++ cRng::in_range方法代码示例

本文整理汇总了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;
	}
}
开发者ID:DagothRa,项目名称:crazys-wm-mod,代码行数:49,代码来源:cGirlTorture.cpp


注:本文中的cRng::in_range方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。