本文整理汇总了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;
}
}
示例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" :) ]) );
示例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");
}
示例4: SetGuidData
void SetGuidData(uint32 type, ObjectGuid data) override
{
// Archaedas
if (type == 0)
{
ActivateArchaedas (data);
SetDoor(archaedasTempleDoor, false); //close when event is started
}
}
示例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");
}
示例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");
}
示例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");
}
示例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);
}
示例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( ([
]) );
}
示例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
}
示例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);
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}