本文整理汇总了C++中set_listen函数的典型用法代码示例。如果您正苦于以下问题:C++ set_listen函数的具体用法?C++ set_listen怎么用?C++ set_listen使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_listen函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: create
void create() {
::create();
set_short("The cave entrace");
set_day_long("By the looks of it you have stumbled across the entrance to a small cave it seems. On the ground you can make out many tracks from things moving in and out of the cave. A small little guard post sits just insdie the cave but with nothing guarding. There also appears to be a old encampment behind the cave.\n");
set_night_long("A dim light can just be seen ahead of you, the source seems to be a small guard post. Just so it happens there is nothing ther guarding. The night sky is dark an apart from that light you can't see anything.\n");
set_properties(([
"light" : 1,
"night light" : 0,
]));
set_exits(([
"inside" : ROOMS "cave1.c",
"north" : ROOMS "room7.c",
"east" : ROOMS "room5.c",
"south" : ROOMS "room3.c",
]));
set_smell("default", "The smell of the rotting animals hangs around.");
set_listen("default", "Loud screams fill the air.");
}
开发者ID:ehershey,项目名称:pd,代码行数:18,代码来源:room4.c
示例2: create
void create() {
::create();
set_short("Endbringer's Room");
set_long( "%^BOLD%^%^RED%^Endbringer's Room%^RESET%^\n"
"This is the room of the great %^BOLD%^%^BLACK%^S%^WHITE%^h%^BLACK%^a%^WHITE%^d%^BLACK%^o%^WHITE%^w %^BLACK%^L%^WHITE%^o%^BLACK%^r%^WHITE%^d %^RED%^E%^BLACK%^n%^RED%^d%^BLACK%^b%^RED%^r%^BLACK%^i%^RED%^n%^BLACK%^g%^RED%^e%^BLACK%^r%^RESET%^ and his beautiful wife, A%^BOLD%^%^WHITE%^k%^BLACK%^i%^RESET%^s%^BOLD%^%^WHITE%^h%^BLACK%^i%^RESET%^. On one wall is the painting of a female ferrel and on the other, hangs a set of staves and daggers. In the left corner of the room rests a large bed, with %^BOLD%^%^MAGENTA%^purplish%^BLACK%^ black%^RESET%^ sheets neatly covering the resting place of the two lovebirds. Standing before the painting is a desk made of solid oak, which has an undorderly and messy look." );
set_items(([
"staves" : "These newly carved staves lean against the wall, resting with older ones that looked used. They were hand made by Akishi, the truly added detail show her interest and love for the hobby.",
"desk" : "Magic scrolls, leather bound books, letters from the past & present, and parchments on necromancy rest messily upon the desk. A human skull is being used as a paperweight, and it stares down on the papers with a blank look.",
"painting" : "This is a painting of Endbringer's first wife, %^BOLD%^%^CYAN%^S%^BLACK%^u%^CYAN%^r%^BLACK%^i%^RESET%^. She had been wandering Lodos one day and mysteriously disappeared.",
"daggers" : "Many worn out daggers line the wall, giving off an eerie feel. They showed their loyalty and use to Endbringer during use.",
]) );
set_smell("default", "The soft scent of roses hovers in the air.");
set_listen("default", "There is a calming silence here.");
set_exits( ([
"west" : ROOMS "4-1.c",
]) );
}
开发者ID:ehershey,项目名称:pd,代码行数:18,代码来源:4-4.c
示例3: create
void create()
{
::create();
set_name("desert");
set_short("The MuaBark desert");
set_long("The MuaBark Desert stretches off in all directions. Large sand dunes make it impossible to see very far in any direction. A powerful wind kicks sand into the air, making it difficult to breath.");
set_properties(([
"light" : 3,
"night light" : 1,
"dessert" : 1
]));
set_listen("default", "The deafening sound of the powerful desert winds drowns out all other sounds");
set_exits(([
"northwest" : ROOMS "muabark069.c",
"west" : ROOMS "muabark070.c",
"east" : ROOMS "muabark075.c",
"south" : ROOMS "muabark073.c",
]));
}
开发者ID:ehershey,项目名称:pd,代码行数:20,代码来源:muabark074.c
示例4: create
void create()
{
::create();
set_name("desert");
set_short("The MuaBark desert");
set_long("The desert never seems to end, all sense of direction seems to disappear in the never ending dunes. Some scattered bones can be seen half buried in a dune close by. Vultures can be seen circling overhead.");
set_properties(([
"light" : 3,
"night light" : 1,
"dessert" : 1
]));
set_listen("default", "The deafening sound of the powerful desert winds drowns out all other sounds");
set_exits(([
"east" : ROOMS "muabark080.c",
"west" : ROOMS "muabark077.c",
"south" : ROOMS "muabark079.c",
"northwest" : ROOMS "muabark075.c",
]));
}
开发者ID:ehershey,项目名称:pd,代码行数:20,代码来源:muabark078.c
注:本文中的set_listen函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论