本文整理汇总了C++中call_out函数的典型用法代码示例。如果您正苦于以下问题:C++ call_out函数的具体用法?C++ call_out怎么用?C++ call_out使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了call_out函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: sinking
int sinking(object ob)
{
int i;
int damage;
if( ob && environment(ob) == this_object())
{
message_vision(HIW"$N又在流沙中陷深了一些!!", ob);
message_vision("$N几乎在绝望中哭了出来!!\n"NOR, ob);
damage = random(5)+1;
i = (int)ob->query("kee");
ob->set("kee",(int) i - damage);
if( environment(ob) == this_object())
call_out("sinking",random(5)+5, ob);
}
else
return 1;
}
开发者ID:huangleon,项目名称:fy2005,代码行数:19,代码来源:quicksand8.c
示例2: cmd_darkshift
int cmd_darkshift(string str) {
object ob;
int stealth, faith, intelligence, dex, stlth;
if (!abil()) {
notify_fail("What?\n");
return 0;
}
if(this_player()->query_ghost()) return 0;
if(this_player()->query_invis())
{
notify_fail("You are already walking in darkness.\n");
return 0;
}
stlth = (int)this_player()->query_skill("stealth");
dex = (int)this_player()->query_stats("dexterity");
faith = (int)this_player()->query_skill("faith");
intelligence = (int)this_player()->query_stats("intelligence");
stealth = ((stlth/3)+(dex)+(intelligence)+(faith/3));
if(stealth < 15) {
notify_fail("The demons laugh at you.\n");
return 0;
}
if((int)this_player()->query_sp() < 50) {
notify_fail("You are too tired.\n");
return 0;
}
if((int)this_player()->query_mp() < 75) {
notify_fail("You lack the magical energy needed.\n");
return 0;
}
this_player()->set_invis();
call_out("take_off", ((stlth/2)+dex+random(faith/2)), this_player());
this_player()->add_mp(-((faith/3)+random(faith/3)));
write("%^BLUE%^You shift into %^BOLD%^%^BLACK%^darkness%^RESET%^%^BLUE%^ and become completely undetectable!%^RESET%^\n");
return 1;
}
开发者ID:ehershey,项目名称:pd,代码行数:43,代码来源:_darkshift.c
示例3: greeting
void greeting(object me)
{
object basket,food;
if(!me->query("food_carrier")) return ;
if(me->query("food_carrier")+60>time())
{
message_vision(CYN"�����������һ�ۣ�˵��������ʹ������Ҫ�ٵ�һ�
|
请发表评论