本文整理汇总了C++中remove_call_out函数的典型用法代码示例。如果您正苦于以下问题:C++ remove_call_out函数的具体用法?C++ remove_call_out怎么用?C++ remove_call_out使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了remove_call_out函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: init
void init()
{
object ob;
::init();
if( interactive(ob = this_player()) && !is_fighting() ) {
if( ob->query_temp("obstacle/have_gui")==1)
{
remove_call_out("greeting");
call_out("greeting", 1, ob);
}
}
}
开发者ID:lostsnow,项目名称:dtxy,代码行数:14,代码来源:qujingren.c
示例2: force_open
int force_open()
{
object room;
if(!objectp( room = find_object(query("outroom"))) )
room = load_object(query("outroom"));
if( !objectp(room) ) return 0;
if( query_inside_person() <= 0 ) return 0;
open_door();
room->open_door(__FILE__);
message("vision","外面突然响起粗重的脚步声,由远而近,到门前停了下来...\n"+query("force_name")+"啪地把门打开,伸个头进来,一脸狐疑:呆大半天了还不出去,搞什么鬼?\n", room);
remove_call_out("close_men");
call_out("close_men", 10);
}
开发者ID:aricxu,项目名称:xkx100,代码行数:14,代码来源:restroom_in.c
示例3: init
void init()
{
object me,ob;
me = this_object () ;
ob = this_player () ;
::init();
add_action("do_join","join");
if( interactive(ob) && !is_fighting() )
{
remove_call_out("greeting");
call_out("greeting", 1, me, ob);
}
}
开发者ID:aricxu,项目名称:xkx100,代码行数:15,代码来源:sang.c
示例4: init
void init()
{
object me=this_player();
::init();
if(!environment()->query("no_fight"))
environment()->set("no_fight",1);//将此地设为不能战斗
if( interactive(me) && !is_fighting() )
{
remove_call_out("greeting");
call_out("greeting", 1, me);
}
add_action("do_serve", "kaixi");
add_action("do_finish", "jieshu");
add_action("do_start", "kaishi");
add_action("do_kill", ({"kill","fight","hit","perform","yong","ge","touxi"}));
开发者ID:mudchina,项目名称:nitan3,代码行数:15,代码来源:xi-laifu.c
示例5: init
void init()
{
object ob, me;
add_action("do_ketou","ketou");
::init();
if (interactive(ob = this_player()) && !is_fighting()) {
remove_call_out("greeting");
call_out("greeting", 1, ob);
}
if( !this_object()->query("waiting_target") && ob->query_temp("fengwait") )
ob->delete_temp("fengwait");
add_action("do_name","宰");
}
开发者ID:heypnus,项目名称:xkx2001,代码行数:15,代码来源:feng.c
示例6: do_finish
int do_finish()
{
object me=this_object();
object who=this_player();
if( !who->query_temp("host_of_party") )
return notify_fail(name()+"瞪了你一眼:别乱说话!\n");
if( !me->query_temp("party_start_already") )
return notify_fail(name()+"瞪了你一眼:不是已经结束了吗!\n");
message_vision("$N对$n说道:吃饱喝足,多谢老板招待!\n", who, me);
remove_call_out("finish_party");
call_out("finish_party", 3, who);
return 1;
}
开发者ID:jackfnx,项目名称:xyj-ali,代码行数:15,代码来源:boss.c
示例7: do_finish
int do_finish()
{
object me=this_object();
object who=this_player();
if( !who->query_temp("host_of_party") )
return notify_fail(name()+"������һ�ۣ�����˵����\n");
if( !me->query_temp("party_start_already") )
return notify_fail(name()+"������һ�ۣ������Ѿ���������\n");
message_vision("$N��$n˵�����Ա����㣬��л�ϰ��д���\n", who, me);
remove_call_out("finish_party");
call_out("finish_party", 3, who);
return 1;
}
开发者ID:gongfuPanada,项目名称:mhxy2002,代码行数:15,代码来源:boss.c
示例8: accept_fight
int accept_fight(object ob)
{
object me = this_object();
int my_max_qi = me->query("max_qi");
if ( me->query("qi")*100 / my_max_qi <= 80 ) {
call_out("checking", 1, me, ob);
return 0;
}
remove_call_out("checking");
call_out("checking", 1, me, ob);
return 1;
}
开发者ID:heypnus,项目名称:xkx2001,代码行数:15,代码来源:buping.c
示例9: do_close
int do_close(string arg)
{
if ( !is_open() )
return notify_fail("门已经是关着的了。\n");
if (!arg || (arg != "men" && arg != "door"))
return notify_fail("你要关什么?\n");
message_vision("$N想把门关上。\n", this_player());
remove_call_out("close_men");
call_out("close_men", 0);
return 1;
}
开发者ID:aricxu,项目名称:xkx100,代码行数:15,代码来源:restroom_in.c
示例10: test_player
int test_player ()
{
object me = this_object();
object who = this_player();
if (who->query("combat_exp") < 10000)
{
message_vision ("$N��$n˵������������в��㣬���Ի��������\n",me,who);
message_vision ("\n$N�����ҷԸ��˼��䡣\n",me);
message_vision ("��λ�����ټ�����ò�ض�$Nһ��ͷ��ӵ��$N�߳���\n",who);
who->move("/d/qujing/tianzhu/zhaoyang");
who->move("/d/qujing/tianzhu/wumen");
message_vision ("�������߽����š�\n",who);
return 1;
}
if (who->query("obstacle/tianzhu")=="done")
{
message_vision ("$N��$n˵����Ŷ�����������Ϊ�β�Ը����ȡ����\n",me,who);
return 1;
}
if (! who->query_temp("obstacle/tianzhu_thrown"))
{
message_vision ("$N��$n˵����������Ҳ��Ȼ�������������\n",me,who);
message_vision ("\n$N�����ҷԸ��˼��䡣\n",me);
message_vision ("��λ��λ�ټ�����ò�ض�$Nһ��ͷ��ӵ��$N�߳���\n",who);
who->move("/d/qujing/tianzhu/zhaoyang");
who->move("/d/qujing/tianzhu/wumen");
message_vision ("�������߽����š�\n",who);
return 1;
}
if (who->query_temp("obstacle/tianzhu_killed"))
{
object junji = present ("jun ji",environment(me));
message_vision ("$N��$n˵���������ͿҲ������������Ů��\n",me,who);
if (! junji)
{
message_vision ("\n$N��ֵ��������
|
请发表评论