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


C++ set_smell函数代码示例

本文整理汇总了C++中set_smell函数的典型用法代码示例。如果您正苦于以下问题:C++ set_smell函数的具体用法?C++ set_smell怎么用?C++ set_smell使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了set_smell函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: create

void create() {
  ::create();
    set_short( "Kumi's Room" );
    set_long( "%^BOLD%^%^WHITE%^Kumi's Room%^RESET%^\n"
              "This tiny %^CYAN%^light blue%^RESET%^ room seems to be a secret workroom of some sort. Tiny %^BOLD%^%^CYAN%^blue orbs%^RESET%^ dance around, shedding light to the room. A tall flute of %^BOLD%^%^GREEN%^Mountain%^RED%^ Dew%^RESET%^ sits on a desk next to strange mechanical machines of some sort. A small picture frame stands on the other side of the desk." );
    set_items(([
        "room" : "%^BOLD%^Read the main description, dork!%^RESET%^",
        "orbs" : "%^BOLD%^%^CYAN%^Tiny blue orbs floating around the room.%^RESET%^",
        "flute" : "A tall frosted glass flute filled to the top with cool %^BOLD%^%^GREEN%^Mountain%^RED%^ Dew%^RESET%^.",
        "dew" : "Delicious dew from the mountains of Tirun.",
        "desk" : "An ornate %^ORANGE%^rosewood%^RESET%^ desk, standing low to the ground.",
        "machine" : "A c64 w/64k of ram, 12\" screen, 5.25\" floppy drive, an Atari joystick, and Commodore 300 modem.",
        "machines" : "A c64 w/64k of ram, 12\" screen, 5.25\" floppy drive, an Atari joystick, and Commodore 300 modem.",
        "picture" : "%^BOLD%^%^WHITE%^A silver picture frame with a picture of Kumi's late grandfather in it. There is an inscription on the bottom of the frame.%^RESET%^",
        "frame" : "%^BOLD%^%^WHITE%^A silver picture frame with a picture of Kumi's late grandfather in it. There is an inscription on the bottom of the frame.%^RESET%^",
        "inscription" : "An inscription on the bottom of the picture frame. Perhaps you should try to read it."
        
    ]) );
    set_smell("default", "Smells like post-teen spirit!");
    set_listen("default", "http://radio.djkumi.net:7777/listen.pls");
    set_exits( ([
        "passage" :  ROOMS "4-2.c",
    ]) );

}
开发者ID:ehershey,项目名称:pd,代码行数:25,代码来源:4-2.2.c

示例2: create

void create() {
    ::create();
     set_name("An underground tunnel.");
     set_short("An underground tunnel.");
     set_long("It looks like a nest of some unfriendly people have "
"made a tunnel into the castle. The earth walls seem stifling, as if " 
"they are about to cave in. Small worms stick their heads out of the "
"ground to look at any travelers. The tunnel continues on to the west.");
     set_night_long("It is far too dark to see anything at night in the tunnel.");
     set_properties(([
        "light"       : 1,
        "night light" : -2,
        "no bump"     : 1,
        "underground"       : 1,
        "no steal"    : 1,
]));
 set_exits( (["west" : ROOMS"room85", 
              "southeast" : ROOMS"room83",
]) );
 set_listen("default", "Deathly silence blankets this place.");
 set_smell("default", "An earthy smell hangs around.");

    set_items( ([

            "wall" : "Hard packed clay and dirt.",
            "stones" : "pebbles packed into the walls and ceiling",
      ]) );

}
开发者ID:ehershey,项目名称:pd,代码行数:29,代码来源:room84.c

示例3: create

void create()
{
::create();
set_properties(([
"light" : 1,
"indoors" : 0
]));
set_short("loki's room");
set_long("A large room, with numerous scrolls lining the far side of the wall "
"and two large parchments sit on the wall on either side of the door. In front "
"of the far wall is a small altar, lined with gold. In the corner of the room "
"sits a large wooden arch-way laced with vines. Between the wooden arch-way sits "
"a small red pillow. There are no windows.");
set_exits(([
"east" : ROOMS"illuminati/new/floor5.c",
]));
set_items(([
"right parchment" : " Loki - Born in a time long forgot into a world of peace "
"and harmony, around for the creation and the world and all apon it,  bestowed "
"with greaty powers and bound by duty. He saw the era when demons walked the "
"earth, and fought in the great battles. Set apon the earth the protect and "
"bring about peace. Apart the Order of Angels. Strong believe in the powers of "
"the ZI, and worshipper of the Lord our God.",
"left parchment" : " A letter of the oaths taken when serving God.",
"pillow" : " A small red silk pillow, the sides are laced with gold and silver stiching.",
]));
set_smell("default", "A soft aroma fills the air.");
}
开发者ID:ehershey,项目名称:pd,代码行数:28,代码来源:loki.c

示例4: create

void create() {
    ::create();
    set_short("Cavern of Fangs");
    set_long("The tunnel declines in the east and climbs up to the northwest. The red-yellow stone is the most common stone appearing in this section of the cavern, with the streaks of blue which frequent large bodies of it increasing in size and frequency.");
    set_smell("default", "The rancid stench of rotting meat is incredible.");
    set_listen("default", "The cavern is as silent as a tomb.");
    set_items(([
	({"stone"}) : "The stone underfoot makes a sudden switch to a red-yellow coloured stone with occasional cracks of blue streaking through it.",
开发者ID:ehershey,项目名称:pd,代码行数:8,代码来源:cave10.c


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