當前位置: 首頁>>代碼示例>>C++>>正文


C++ AddDoor函數代碼示例

本文整理匯總了C++中AddDoor函數的典型用法代碼示例。如果您正苦於以下問題:C++ AddDoor函數的具體用法?C++ AddDoor怎麽用?C++ AddDoor使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了AddDoor函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_FORCE_FIELD:
         case GO_BOSS_COLLISION_1:
         case GO_BOSS_COLLISION_2:
         case GO_FIRE_BARRIER:
         case GO_MURUS_GATE_1:
         case GO_MURUS_GATE_2:
             AddDoor(go, true);
             break;
         default:
             break;
     }
 }
開發者ID:Rastrian,項目名稱:DeathCore_3.3.5,代碼行數:16,代碼來源:instance_sunwell_plateau.cpp

示例2: OnGameObjectCreate

		void OnGameObjectCreate(GameObject* go)
		{
			switch (go->GetEntry())
			{
				// Generic doors
			case GOB_ANTECHAMBER_DOOR_ENTRANCE:
			case GOB_ANTECHAMBER_DOOR_EXIT:
			case GOB_ATRIUM_DOOR_ENTRANCE:
			case GOB_ATRIUM_DOOR_EXIT:
				AddDoor(go, true);
				break;
				// Specific doors
			case GOB_ORATIUM_DOOR_ENTRANCE:
				AddDoor(go, true);
				zorlokEntranceDoorGuid = go->GetGUID();
				break;
			case GOB_QUARTERS_DOOR_ENTRANCE:
				AddDoor(go, true);
				tayakEntranceDoorGuid = go->GetGUID();
				break;
			case GOB_QUARTERS_DOOR_EXIT:
				AddDoor(go, true);
				tayakExitDoorGuid = go->GetGUID();
				break;
			case GOB_STAIRWAYS_DOOR_EXIT:
				AddDoor(go, true);
				garalonEntranceDoorGuid = go->GetGUID();
				break;
			case GOB_BALCONY_DOOR_EXIT:
				AddDoor(go, true);
				meljarakExitDoorGuid = go->GetGUID();
				break;
			case GOB_SANCTUM_DOOR_ENTRANCE:
				AddDoor(go, true);
				unsokEntranceDoorGuid = go->GetGUID();
				break;
			case GOB_HEARTOFFEAR_DOOR_ENTRANCE:
				AddDoor(go, true);
				shekzeerEntranceDoorGuid = go->GetGUID();
				break;
			default:
				break;
			}
		}
開發者ID:Mystiko,項目名稱:MoPCore5.4.8,代碼行數:44,代碼來源:instance_heart_of_fear.cpp

示例3: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go)
 {
     switch (go->GetEntry())
     {
         case GO_STRANGE_GONG:
             StrangeGongGUID = go->GetGUID();
             break;
         case GO_MASSIVE_GATE:
             MasiveGateGUID = go->GetGUID();
             AddDoor(go, true);
             if (ZulAmanState != NOT_STARTED)
                 go->SetGoState(GO_STATE_ACTIVE);
             break;
         default:
             break;
     }
 }
開發者ID:Drasgon,項目名稱:WoD,代碼行數:17,代碼來源:instance_zulaman.cpp

示例4: OnGameObjectRemove

 void OnGameObjectRemove(GameObject* gameObject)
 {
     switch (gameObject->GetEntry())
     {
         case GO_LEVIATHAN_DOOR:
         case GO_XT_002_DOOR:
         case GO_DOODAD_UL_SIGILDOOR_03:
         case GO_DOODAD_UL_UNIVERSEFLOOR_01:
         case GO_DOODAD_UL_UNIVERSEFLOOR_02:
         case GO_DOODAD_UL_UNIVERSEGLOBE01:
         case GO_DOODAD_UL_ULDUAR_TRAPDOOR_03:
             AddDoor(gameObject, false);
             break;
         default:
             break;
     }
 }
開發者ID:FirstCore,項目名稱:GaryMoveOut_4.3.4,代碼行數:17,代碼來源:instance_ulduar.cpp

示例5: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_PRISON_DOOR_04:
             PrisonDoor4GUID = go->GetGUID();
             // no break
         case GO_PRISON_DOOR_01:
         case GO_PRISON_DOOR_02:
         case GO_PRISON_DOOR_03:
         case GO_PRISON_DOOR_05:
         case GO_SUMMON_DOOR:
             AddDoor(go, true);
             break;
         case GO_BROGGOK_LEVER:
             BroggokLeverGUID = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_1:
             PrisonCellGUIDs[DATA_PRISON_CELL1 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_2:
             PrisonCellGUIDs[DATA_PRISON_CELL2 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_3:
             PrisonCellGUIDs[DATA_PRISON_CELL3 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_4:
             PrisonCellGUIDs[DATA_PRISON_CELL4 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_5:
             PrisonCellGUIDs[DATA_PRISON_CELL5 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_6:
             PrisonCellGUIDs[DATA_PRISON_CELL6 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_7:
             PrisonCellGUIDs[DATA_PRISON_CELL7 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         case GO_PRISON_CELL_DOOR_8:
             PrisonCellGUIDs[DATA_PRISON_CELL8 - DATA_PRISON_CELL1] = go->GetGUID();
             break;
         default:
             break;
     }
 }
開發者ID:beyourself,項目名稱:LordPsyanBots,代碼行數:45,代碼來源:instance_blood_furnace.cpp

示例6: OnGameObjectCreate

            void OnGameObjectCreate(GameObject* go)
            {
                switch (go->GetEntry())
                {
                    case GO_LADY_VASHJ_BRIDGE_CONSOLE:
					case GO_COILFANG_BRIDGE1:
					case GO_COILFANG_BRIDGE2:
					case GO_COILFANG_BRIDGE3:
                        AddDoor(go, true);
						break;
					case GO_SHIELD_GENERATOR1:
					case GO_SHIELD_GENERATOR2:
					case GO_SHIELD_GENERATOR3:
					case GO_SHIELD_GENERATOR4:
						ShieldGeneratorGUID[go->GetEntry()-GO_SHIELD_GENERATOR1] = go->GetGUID();
						break;
                }
            }
開發者ID:DSlayerMan,項目名稱:Sunwell,代碼行數:18,代碼來源:instance_serpent_shrine.cpp

示例7: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_FORCEFIELD:
             AddDoor(go, true);
             break;
         case GO_GONG_OF_BETHEKK:
             _goGongOfBethekkGUID = go->GetGUID();
             if (GetBossState(DATA_ARLOKK) == DONE)
                 go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
             else
                 go->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
             break;
         default:
             break;
     }
 }
開發者ID:mysql1,項目名稱:TournamentCore,代碼行數:18,代碼來源:instance_zulgurub.cpp

示例8: OnGameObjectCreate

        void OnGameObjectCreate(GameObject* go)
        {
            if (go->GetGOInfo()->displayId == 6785 || go->GetGOInfo()->displayId == 1287)
            {
                uint32 section = GetEruptionSection(go->GetPositionX(), go->GetPositionY());
                heiganEruptionGUID[section].insert(go->GetGUID());

                return;
            }

            switch (go->GetEntry())
            {
                case GO_GOTHIK_GATE:
                    gothikGateGUID = go->GetGUID();
                    go->SetGoState(gothikDoorState);
                    break;
                case GO_HORSEMEN_CHEST:
                    horsemenChestGUID = go->GetGUID();
                    break;
                case GO_HORSEMEN_CHEST_HERO:
                    horsemenChestGUID = go->GetGUID();
                    break;
                case GO_KELTHUZAD_PORTAL01:
                    portalsGUID[0] = go->GetGUID();
                    break;
                case GO_KELTHUZAD_PORTAL02:
                    portalsGUID[1] = go->GetGUID();
                    break;
                case GO_KELTHUZAD_PORTAL03:
                    portalsGUID[2] = go->GetGUID();
                    break;
                case GO_KELTHUZAD_PORTAL04:
                    portalsGUID[3] = go->GetGUID();
                    break;
                case GO_KELTHUZAD_TRIGGER:
                    kelthuzadTriggerGUID = go->GetGUID();
                    break;
                default:
                    break;
            }

            AddDoor(go, true);
        }
開發者ID:S-proyect,項目名稱:Emu-S,代碼行數:43,代碼來源:instance_naxxramas.cpp

示例9: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go)
 {
     switch (go->GetEntry())
     {
     case GO_FACTORY_DOOR:
         m_ListOfGUID[DATA_FACTORY_DOOR] = go->GetGUID();
         AddDoor(go, true);
         break;
     case GO_FACTORY_DOOR_LEVER:
         m_ListOfGUID[DATA_FACTORY_DOOR_LEVER] = go->GetGUID();
         break;
     case GO_HEAVY_DOOR2:
         AddDoor(go, true);
         m_ListOfGUID[DATA_HEAVY_DOOR2] = go->GetGUID();
         break;
     case GO_MASTROOM_DOOR:
         AddDoor(go, true);
         m_ListOfGUID[DATA_MASTROOM_DOOR] = go->GetGUID();
         break;
     case GO_MASTROOM_DOOR_LEVER:
         m_ListOfGUID[DATA_MASTROOM_DOOR_LEVER] = go->GetGUID();
         break;
     case GO_HEAVY_DOOR4:
         AddDoor(go, true);
         m_ListOfGUID[DATA_HEAVY_DOOR4] = go->GetGUID();
         break;
     case GO_FOUNDRY_DOOR:
         m_ListOfGUID[DATA_FOUNDRY_DOOR] = go->GetGUID();
         AddDoor(go, true);
         break;
     case GO_FOUNDRY_DOOR_LEVER:
         m_ListOfGUID[DATA_FOUNDRY_DOOR_LEVER] = go->GetGUID();
         break;
     case GO_IRONCLAD_DOOR:
         m_ListOfGUID[DATA_IRONCLAD_DOOR] = go->GetGUID();
         AddDoor(go, true);
         break;
     case GO_IRONCLAD_DOOR_LEVER:
         m_ListOfGUID[DATA_IRONCLAD_DOOR_LEVER] = go->GetGUID();
         break;
     case GO_DEFIAS_CANNON:
         m_ListOfGUID[DATA_DEFIAS_CANNON] = go->GetGUID();
         break;
     case GO_MR_SMITE_CHEST:
         m_ListOfGUID[DATA_MR_SMITE_CHEST] = go->GetGUID();
         break;
     }
     if (!m_SpecialNpcSpawned)
         m_LoadingInstanceTimer = 3000;
 }
開發者ID:redlaine,項目名稱:InfinityCore-Ark,代碼行數:50,代碼來源:instance_deadmines.cpp

示例10: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_FIRE_FIELD:
             AddDoor(go, true);
             break;
         case GO_FLAME_WALLS:
             FlameWallsGUID = go->GetGUID();
             if (GetBossState(DATA_SAVIANA_RAGEFIRE) == DONE && GetBossState(DATA_BALTHARUS_THE_WARBORN) == DONE)
                 HandleGameObject(FlameWallsGUID, true, go);
             break;
         case GO_FLAME_RING:
             FlameRingGUID = go->GetGUID();
             break;
         case GO_TWILIGHT_FLAME_RING:
             TwilightFlameRingGUID = go->GetGUID();
             break;
         case GO_BURNING_TREE_1:
             BurningTreeGUID[0] = go->GetGUID();
             if (GetBossState(DATA_GENERAL_ZARITHRIAN) == DONE)
                 HandleGameObject(BurningTreeGUID[0], true);
             break;
         case GO_BURNING_TREE_2:
             BurningTreeGUID[1] = go->GetGUID();
             if (GetBossState(DATA_GENERAL_ZARITHRIAN) == DONE)
                 HandleGameObject(BurningTreeGUID[1], true);
             break;
         case GO_BURNING_TREE_3:
             BurningTreeGUID[2] = go->GetGUID();
             if (GetBossState(DATA_GENERAL_ZARITHRIAN) == DONE)
                 HandleGameObject(BurningTreeGUID[2], true);
             break;
         case GO_BURNING_TREE_4:
             BurningTreeGUID[3] = go->GetGUID();
             if (GetBossState(DATA_GENERAL_ZARITHRIAN) == DONE)
                 HandleGameObject(BurningTreeGUID[3], true);
             break;
         default:
             break;
     }
 }
開發者ID:Rastrian,項目名稱:DeathCore_6.x-1,代碼行數:42,代碼來源:instance_ruby_sanctum.cpp

示例11: OnGameObjectRemove

 void OnGameObjectRemove(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_NAJENTUS_GATE:
         case GO_SUPREMUS_GATE:
         case GO_SHADE_OF_AKAMA_DOOR:
         case GO_TERON_DOOR_1:
         case GO_TERON_DOOR_2:
         case GO_GURTOGG_DOOR:
         case GO_TEMPLE_DOOR:
         case GO_MOTHER_SHAHRAZ_DOOR:
         case GO_COUNCIL_DOOR_1:
         case GO_COUNCIL_DOOR_2:
             AddDoor(go, false);
             break;
         default:
             break;
     }
 }
開發者ID:AllThing,項目名稱:TrinityCore,代碼行數:20,代碼來源:instance_black_temple.cpp

示例12: OnGameObjectRemove

 void OnGameObjectRemove(GameObject* go)
 {
     switch (go->GetEntry())
     {
         case GO_MAGTHERIDON_DOORS:
             AddDoor(go, false);
             break;
         case GO_MANTICRON_CUBE:
             _cubesSet.erase(go->GetGUID());
             break;
         case GO_MAGTHERIDON_HALL:
         case GO_MAGTHERIDON_COLUMN0:
         case GO_MAGTHERIDON_COLUMN1:
         case GO_MAGTHERIDON_COLUMN2:
         case GO_MAGTHERIDON_COLUMN3:
         case GO_MAGTHERIDON_COLUMN4:
         case GO_MAGTHERIDON_COLUMN5:
             _columnSet.erase(go->GetGUID());
             break;
     }
 }
開發者ID:AzerothShard-Dev,項目名稱:azerothcore,代碼行數:21,代碼來源:instance_magtheridons_lair.cpp

示例13: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_UTGARDE_MIRROR:
             UtgardeMirrorGUID = go->GetGUID();
             break;
         case GO_GORTOK_PALEHOOF_SPHERE:
             GortokPalehoofSphereGUID = go->GetGUID();
             if (GetBossState(DATA_GORTOK_PALEHOOF) == DONE)
             {
                 HandleGameObject(ObjectGuid::Empty, true, go);
                 go->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
             }
             break;
         case GO_SKADI_THE_RUTHLESS_DOOR:
         case GO_KING_YMIRON_DOOR:
             AddDoor(go, true);
             break;
         default:
             break;
     }
 }
開發者ID:Rastrian,項目名稱:DeathCore_3.3.5,代碼行數:23,代碼來源:instance_utgarde_pinnacle.cpp

示例14: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
     switch (go->GetEntry())
     {
         case GO_VEXALLUS_DOOR:
         case GO_SELIN_DOOR:
         case GO_SELIN_ENCOUNTER_DOOR:
         case GO_DELRISSA_DOOR:
         case GO_KAEL_DOOR:
             AddDoor(go, true);
             break;
         case GO_KAEL_STATUE_1:
             KaelStatue[0] = go->GetGUID();
             break;
         case GO_KAEL_STATUE_2:
             KaelStatue[1] = go->GetGUID();
             break;
         case GO_ESCAPE_ORB:
             EscapeOrbGUID = go->GetGUID();
             break;
         default:
             break;
     }
 }
開發者ID:Abrek,項目名稱:My-WoDCore-6.x.x,代碼行數:24,代碼來源:instance_magisters_terrace.cpp

示例15: OnGameObjectCreate

 void OnGameObjectCreate(GameObject* go) override
 {
      if (go->GetEntry() == GO_IKISS_DOOR)
          AddDoor(go, true);
 }
開發者ID:Rastrian,項目名稱:DeathCore_3.3.5,代碼行數:5,代碼來源:instance_sethekk_halls.cpp


注:本文中的AddDoor函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。