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


C++ SetDoor函数代码示例

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


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

示例1: SetData

        void SetData (uint32 type, uint32 data)
        {
            switch(type)
            {
                case DATA_ALTAR_DOORS:
                    m_auiEncounter[0] = data;
                    if(data == DONE)
                        SetDoor(uiAltarOfTheKeeperTempleDoor, true);
                    break;
                case DATA_ANCIENT_DOOR:
                    m_auiEncounter[1] = data;
                    if(data == DONE) //archeadas defeat
                    {
                        SetDoor(uiArchaedasTempleDoor, true); //re open enter door
                        SetDoor(uiAncientVaultDoor, true);
                    }
                    break;
                case DATA_IRONAYA_DOOR:
                    m_auiEncounter[2] = data;
                    break;
                case DATA_STONE_KEEPERS:
                    ActivateStoneKeepers();
                    break;
                case DATA_MINIONS:
                    switch(data)
                    {
                        case NOT_STARTED:
                            if(m_auiEncounter[0] == DONE) //if players opened the doors
                                SetDoor(uiArchaedasTempleDoor, true);
                            RespawnMinions();
                            break;
                        case IN_PROGRESS:
                            ActivateWallMinions();
                            break;
                        case SPECIAL:
                            DeActivateMinions();
                            break;
                    }
                    break;
                case DATA_IRONAYA_SEAL:
                    bKeystoneCheck = true;
                    break;
            }

            if(data == DONE)
            {
                OUT_SAVE_INST_DATA;

                std::ostringstream saveStream;
                saveStream << m_auiEncounter[0] << " " << m_auiEncounter[1] << " " << m_auiEncounter[2];

                str_data = saveStream.str();

                SaveToDB();
                OUT_SAVE_INST_DATA_COMPLETE;
            }
        }
开发者ID:Desch,项目名称:MythCore,代码行数:57,代码来源:instance_uldaman.cpp

示例2: create

void create() {
    ::create();
    SetProperty("light", 3);
    SetProperty("night light", 2);
    SetProperty("no castle", 1);
    SetShort("A small yard");
    SetDayLong( "Daytime makes this beautiful yard at the end of a "
            "small alley glow with peace. Quaint houses surround the yard "
            "on all flanks except to the west where the alley intersects "
            "Centre Path. There is a manhole where the alley meets the "
            "yard.");
    SetNightLong( "Very little stirs at the end of this small alley "
            "in the dark of the night. Some light illuminates the area from "
            "the lamps which are posted in front of the houses which "
            "surround the yard at the end of the alley.");

    SetDoor("/domains/Praxis/sewer_ent","down");
    "/domains/Praxis/sewer_ent"->SetOpen("manhole", 0);
    SetExits( 
            (["west" : "/domains/Praxis/s_centre2",
             "north" : "/domains/Praxis/sheriff",
             "down" : "/domains/Praxis/sewer_ent"]) );
    SetItems(
            (["alley" : "It looks beautiful here.",
             ({ "lamp", "lamps" }) : "Dimly illuminated lights.",
             "manhole" : (: this_object(), "look_at_manhole" :) ]) );
开发者ID:Lundex,项目名称:bloodlines,代码行数:26,代码来源:yard.c

示例3: create

static void create() {
    room::create();

    SetClimate("indoors");
    SetAmbientLight(30);
    SetShort("Inside the cabin");
    SetLong("You are inside a small one-room cabin made entirely from heavy logs.  It is\n"+
        "very sparsely furnished, containing only most basic housekeeping equipment,\n"+
        "such as a bed, a chair and a table.");
    SetItems( ([ 
        "south" : "The wooden door leads south.",
        "bed" : "It is definitely not the most comfortable bed you have seen in your life.",
        "chair" : "It is made from oak and looks strong and sturdy.",
        "table" : "A heavy table that doesn't even appear to rock.",
        ] ));
    SetInventory( ([
        "/domains/diku-alfa/room/60.zon/obj/6003_fireplace" :1,
        "/domains/diku-alfa/room/60.zon/obj/6004_lantern_johns" : 1,
        "/domains/diku-alfa/room/60.zon/obj/6005_chest_wooden" : 1, 
        "/domains/diku-alfa/room/60.zon/meals/6013_water_barrel" : 1,      
        ]) );
    SetExits( ([
        "south" : "/domains/diku-alfa/room/60.zon/6009",
        ] ));
    SetDoor( "south" , "/domains/diku-alfa/room/doors/6009_6010");
}
开发者ID:LashMUD,项目名称:DikuMud-to-Dead-Souls-Port,代码行数:26,代码来源:6010.c

示例4: SetGuidData

 void SetGuidData(uint32 type, ObjectGuid data) override
 {
     // Archaedas
     if (type == 0)
     {
         ActivateArchaedas (data);
         SetDoor(archaedasTempleDoor, false); //close when event is started
     }
 }
开发者ID:HevdavDEV,项目名称:DeathCore_3.3.5a,代码行数:9,代码来源:instance_uldaman.cpp

示例5: create

static void create() {
    room::create();
    SetClimate("indoors");
    SetAmbientLight(30);
    SetShort("a blue room");
    SetLong("This is a blue room. Probability Lab 3 is west.");
    SetExits( ([
                "west" : "/domains/campus/room/plab"
                ]) );
    SetDoor("west","/domains/campus/doors/blue_door3");
}
开发者ID:Elohim,项目名称:FGmud,代码行数:11,代码来源:blue_room3.c

示例6: create

static void create() {
    room::create();
    SetClimate("indoors");
    SetAmbientLight(30);
    SetShort("a green room");
    SetLong("This is a green room. Probability Lab 2 is east.");
    SetExits( ([
                   "east" : "/domains/campus/room/plab2"
               ]) );
    SetDoor("east","/domains/campus/doors/green_door2");
}
开发者ID:RandolfShanksCarter,项目名称:DeadStars,代码行数:11,代码来源:green_room2.c

示例7: create

static void create() {
    room::create();
    SetClimate("indoors");
    SetAmbientLight(0);
    SetShort("Maintenance room");
    SetLong("A room for access to service areas and to store "
            "maintenance supplies.");
    SetItems(([
                ]));
    SetInventory(([
                "/domains/campus/obj/simple_chair" : 1,
                "/domains/campus/obj/mtable" : 1,
                "/domains/campus/obj/mlocker" : 1,
                ]));
    SetExits( ([
                "up" : "/domains/campus/room/access9",
                "west" : "/domains/campus/room/sub_basement1.c",
                ]) );
    SetEnters( ([ 
                ]) );
    SetDoor("up", "/domains/campus/doors/hatch");
    SetDoor("west", "/domains/campus/doors/plain_door2");
}
开发者ID:Elohim,项目名称:FGmud,代码行数:23,代码来源:maintenance.c

示例8: create

void create() {
    room::create();
    SetAmbientLight(10);
    SetShort("Elevator shaft");
    SetLong("Elevator shaft, first floor");
    SetClimate("indoors");
    SetItems( ([ 
                ]) );
    SetExits( ([
                "east" : "/domains/campus/room/science6",
                ]) );
    SetDoor("east", "/domains/campus/doors/eledoor1");
    SetFlyRoom("/domains/campus/room/shaft2");
    SetSinkRoom("/domains/campus/room/shaft0");
    SetMedium(MEDIUM_AIR);
}
开发者ID:Elohim,项目名称:FGmud,代码行数:16,代码来源:shaft1.c

示例9: create

static void create() {
    room::create();
    SetClimate("indoors");
    SetAmbientLight(0);
    SetShort("sub basement");
    SetLong("This is a basement deep under the campus. The basement continues west from here. There is a doorway to the east.");
    SetExits( ([
                "east" : "/domains/campus/room/maintenance",
                "west" : "/domains/campus/room/sub_basement2.c",
                ]) );
    SetInventory(([
                ]));
    SetDoor("east", "/domains/campus/doors/plain_door2");
    SetEnters( ([ 
                ]) );
}
开发者ID:Elohim,项目名称:FGmud,代码行数:16,代码来源:sub_basement1.c

示例10: ActivateStoneKeepers

 void ActivateStoneKeepers()
 {
     for (std::vector<uint64>::const_iterator i = vStoneKeeper.begin(); i != vStoneKeeper.end(); ++i)
     {
         Creature* target = instance->GetCreature(*i);
         if (!target || !target->isAlive() || target->getFaction() == 14)
             continue;
         target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);
         target->setFaction(14);
         target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
         return;        // only want the first one we find
     }
     // if we get this far than all four are dead so open the door
     SetData(DATA_ALTAR_DOORS, DONE);
     SetDoor(uiArchaedasTempleDoor, true); //open next the door too
 }
开发者ID:cooler-SAI,项目名称:PandaFire,代码行数:16,代码来源:instance_uldaman.cpp

示例11: create

static void create() {
    room::create();
    SetClimate("indoors");
    SetAmbientLight(30);
    SetShort("Corridor");
    SetLong("You are in an east-west corridor on the first floor of the Virtual Campus administrative building. The building's snack bar lies to the north, and a door to the south leads into a stairwell. A foyer and the building exit lie west of here.");
    SetItems( (["corridor" : "This is a carpeted corridor, leading west.",
                "floor" : "The carpet is purple, and somewhat institutional.",
                "carpet" : "The carpet is purple, and somewhat institutional."]) );
    SetExits( ([
                "south" : "/domains/campus/room/stairwell",
                "east" : "/domains/campus/room/corridor",
                "west" : "/domains/campus/room/foyer",
                "north" : "/domains/campus/room/snack.c",
                ]) );
    SetDoor("south","/domains/campus/doors/top_stairs");
    SetProperty("no attack", 1);
}
开发者ID:Elohim,项目名称:FGmud,代码行数:18,代码来源:corridor3.c

示例12: create

void create() {
    room::create();
    SetAmbientLight(30);
    SetShort("Secret Lab");
    SetLong("This tidy workspace between campus levels seems to "+
      "be some kind of secret laboratory.");
    SetClimate("indoors");
    SetItems( ([ 
      ]) );
    SetInventory(([
        "/domains/campus/weap/zpem" : 1,
      ]));
    SetExits( ([
        "west" : "/domains/campus/room/shaft0",
        "east" : "/domains/campus/room/basement4.c",
      ]) );
    SetDoor("west","/domains/campus/doors/steel_door3");
}
开发者ID:Lundex,项目名称:bloodlines,代码行数:18,代码来源:basement3.c

示例13: create

static void create() {
    room::create();

    SetClimate("indoors");
    SetAmbientLight(30);
    SetShort("The Monster Pen");
    SetLong("This looks like the cage in which a large carnivor is being kept. Judging by\n"+
        "the state the walls are in, this could very well be a large AGGRESSIVE animal. \n"+
        "This makes you pretty insecure, this stating your feeling about the place, \n"+
        "quite mildly.");
    SetItems( ([ 
        "west" : "This looks like the only exit from here.",
        ] ));
    SetExits( ([
        "west" : "/domains/diku-alfa/room/79.zon/7904",
        ] ));
    SetDoor("west", "/domains/diku-alfa/room/doors/7904_7913");
}
开发者ID:LashMUD,项目名称:DikuMud-to-Dead-Souls-Port,代码行数:18,代码来源:7913.c

示例14: create

static void create() {
    room::create();

    SetClimate("indoors");
    SetAmbientLight(0);
    SetShort("The treasure room");
    SetLong("This room is rich ornamented. The walls has carves showing\n"+
        "persons dancing around a sun which is drawed at the floor. It\n"+
        "looks very old, and it is very dusty. To the south you see a\n"+
        "secret door.");
    SetItems( ([ 
        "south" : "you can see a picture with some persons crawling around a\n"+
            "huge moon.",
        ] ));
    SetExits( ([
        "south" : "/domains/diku-alfa/room/74.zon/7415",
        ] ));
SetDoor("south", "/domains/diku-alfa/room/doors/7415_7416");
}
开发者ID:LashMUD,项目名称:DikuMud-to-Dead-Souls-Port,代码行数:19,代码来源:7416.c

示例15: create

static void create() {
    room::create();

    SetClimate("indoors");
    SetAmbientLight(0);
    SetShort("The lair entrance.");
    SetLong("You are in a dry part of the sewer. To the north is a wooden door, you \n"+
        "can see some slime at the lower part of the door. You also see some skulls\n"+
        "and some broken bones.");
    SetItems( ([ 
        "north" : "You can see the lair.",
        "east" : "You see a crawlway.",
        "slime" : "The slime is slimy and uninteresting.",
        ] ));
    SetExits( ([
        "north" : "/domains/diku-alfa/room/72.zon/7204",
        "east" : "/domains/diku-alfa/room/72.zon/7209",
        ] ));
    SetDoor("north", "/domains/diku-alfa/room/doors/7204_7208"); 
}
开发者ID:LashMUD,项目名称:DikuMud-to-Dead-Souls-Port,代码行数:20,代码来源:7208.c


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