[merge commit]
This commit is contained in:
@@ -1745,6 +1745,27 @@ PS_OUT PS_Broomstick(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_SpellLearn(PS_IN In)
|
||||
{
|
||||
PS_OUT Out;
|
||||
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
|
||||
|
||||
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
|
||||
|
||||
float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||
float tex1 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r;
|
||||
Color = tex;
|
||||
|
||||
tex1 *= 0.95f;
|
||||
|
||||
Color.a = tex1;
|
||||
|
||||
Color.a *= Alpha;
|
||||
|
||||
Out.vColor = Color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
struct VS_IN3D
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -2305,6 +2326,16 @@ technique11 PosTexTechnique11
|
||||
PixelShader = compile ps_5_0 PS_Broomstick();
|
||||
}
|
||||
|
||||
pass SpellLearn
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_SpellLearn();
|
||||
}
|
||||
|
||||
pass Enemy_Detection
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
|
||||
@@ -161,6 +161,7 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Stupefy.h" />
|
||||
<ClInclude Include="..\Public\BroomRaceManager.h" />
|
||||
<ClInclude Include="..\Public\BroomRacerAI.h" />
|
||||
<ClInclude Include="..\Public\Chair_Splesh.h" />
|
||||
@@ -198,12 +199,14 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\QuestInstance.h" />
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h" />
|
||||
<ClInclude Include="..\Public\Quest_Slot.h" />
|
||||
<ClInclude Include="..\Public\Ranrak.h" />
|
||||
<ClInclude Include="..\Public\Screen_Wind.h" />
|
||||
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
|
||||
<ClInclude Include="..\Public\MageSide.h" />
|
||||
<ClInclude Include="..\Public\Mage_Down_Attack.h" />
|
||||
<ClInclude Include="..\public\MapElement_Chest.h" />
|
||||
<ClInclude Include="..\public\MapElement_Chest_Lid.h" />
|
||||
<ClInclude Include="..\public\MapElement_Static.h" />
|
||||
<ClInclude Include="..\Public\NPC_Ollivander.h" />
|
||||
<ClInclude Include="..\Public\Box_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Quest_Canvas.h" />
|
||||
@@ -214,13 +217,23 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Quest_Panel.h" />
|
||||
<ClInclude Include="..\Public\Quest_Status.h" />
|
||||
<ClInclude Include="..\Public\RaceRing.h" />
|
||||
<ClInclude Include="..\Public\State_AncientSpell.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_TurboFly.h" />
|
||||
<ClInclude Include="..\Public\State_FireBall.h" />
|
||||
<ClInclude Include="..\Public\State_FireBreath.h" />
|
||||
<ClInclude Include="..\Public\State_FireSweep.h" />
|
||||
<ClInclude Include="..\Public\State_Ground.h" />
|
||||
<ClInclude Include="..\Public\State_Pulse.h" />
|
||||
<ClInclude Include="..\Public\State_Skill.h" />
|
||||
<ClInclude Include="..\Public\State_Slide.h" />
|
||||
<ClInclude Include="..\Public\State_Swipe.h" />
|
||||
<ClInclude Include="..\Public\State_Tucked.h" />
|
||||
<ClInclude Include="..\Public\StunEffect.h" />
|
||||
<ClInclude Include="..\public\MapElement_Door.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Dismount.h" />
|
||||
<ClInclude Include="..\Public\State_Shield.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Fly.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Hover.h" />
|
||||
<ClInclude Include="..\Public\State_Fly.h" />
|
||||
<ClInclude Include="..\Public\State_Hover.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Ride_Move.h" />
|
||||
<ClInclude Include="..\public\MiniMap_Camera.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Teleport.h" />
|
||||
@@ -358,6 +371,7 @@ call Update_Resources.bat
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Stupefy.cpp" />
|
||||
<ClCompile Include="..\Private\Boss_HpBar.cpp" />
|
||||
<ClCompile Include="..\Private\Barral_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\BroomRaceManager.cpp" />
|
||||
@@ -396,9 +410,12 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Logo_Text.cpp" />
|
||||
<ClCompile Include="..\Private\QuestInstance.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Slot.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrak.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrak_States.cpp" />
|
||||
<ClCompile Include="..\Private\Screen_Wind.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Chest_Lid.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Static.cpp" />
|
||||
<ClCompile Include="..\Private\NPC_Ollivander.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Canvas.cpp" />
|
||||
@@ -410,19 +427,29 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Quest_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Quest_Status.cpp" />
|
||||
<ClCompile Include="..\Private\RaceRing.cpp" />
|
||||
<ClCompile Include="..\Private\State_AncientSpell.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Hover.cpp" />
|
||||
<ClCompile Include="..\Private\State_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\State_FireBreath.cpp" />
|
||||
<ClCompile Include="..\Private\State_FireSweep.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fly.cpp" />
|
||||
<ClCompile Include="..\Private\State_Ground.cpp" />
|
||||
<ClCompile Include="..\Private\State_Hover.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_Ride_Move.cpp" />
|
||||
<ClCompile Include="..\private\MiniMap_Camera.cpp" />
|
||||
<ClCompile Include="..\Private\State_Broom_TurboFly.cpp" />
|
||||
<ClCompile Include="..\Private\State_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\State_Shield.cpp" />
|
||||
<ClCompile Include="..\Private\State_Skill.cpp" />
|
||||
<ClCompile Include="..\Private\State_Slide.cpp" />
|
||||
<ClCompile Include="..\Private\State_Sustain.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\Mage_Nomal_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\MageSide.cpp" />
|
||||
<ClCompile Include="..\Private\Mage_Down_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\Box_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\State_Swipe.cpp" />
|
||||
<ClCompile Include="..\Private\State_Tucked.cpp" />
|
||||
<ClCompile Include="..\Private\StunEffect.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Teleport.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_State_Stun.cpp" />
|
||||
|
||||
@@ -527,11 +527,11 @@
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Barral</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Broom_Hover.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
<ClInclude Include="..\Public\State_Hover.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Hover</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Broom_Fly.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Fly</Filter>
|
||||
<ClInclude Include="..\Public\State_Fly.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Fly</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MiniMap_Camera.h">
|
||||
<Filter>02.GameObjects\Cameras\MiniMap_Camera</Filter>
|
||||
@@ -602,6 +602,24 @@
|
||||
<ClInclude Include="..\public\Interaction_Key.h">
|
||||
<Filter>02.GameObjects\UI\Interaction_Key</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrak.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrak</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_FireBreath.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_FireBreath</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_FireBall.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_FireBall</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Pulse.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Pulse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Tucked.h">
|
||||
<Filter>04.Mechanic\State\Movement\Tucked</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_AncientSpell.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_AncientSpell</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\QuestInstance.h">
|
||||
<Filter>04.Mechanic\Quest\QuestInstance</Filter>
|
||||
</ClInclude>
|
||||
@@ -611,6 +629,27 @@
|
||||
<ClInclude Include="..\Public\Quest_Info_Header.h">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Info_Header</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Stupefy.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapElement_Static.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Static</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_FireSweep.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_FireSweep</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Ground.h">
|
||||
<Filter>04.Mechanic\State\Movement\Ground</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Swipe.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Swipe</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Slide.h">
|
||||
<Filter>04.Mechanic\State\Focus\Slide</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Skill.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Skill</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1197,12 +1236,6 @@
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect\Chair">
|
||||
<UniqueIdentifier>{3103c6e1-60cb-438b-a3eb-844b919ccd43}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_Hover">
|
||||
<UniqueIdentifier>{24f6903f-8f6b-46ff-a387-ecb44d673887}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_Fly">
|
||||
<UniqueIdentifier>{f24321bb-6750-4baa-b19a-bf5a3c2a8909}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\MiniMap_Camera">
|
||||
<UniqueIdentifier>{dbf4ff12-e5eb-439a-aa02-e5a424453b08}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1281,6 +1314,51 @@
|
||||
<Filter Include="02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot">
|
||||
<UniqueIdentifier>{6bbfb8f0-c71a-4769-b1e6-efd5d863ba7f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Stupefy">
|
||||
<UniqueIdentifier>{7672784a-86a8-4485-a4de-a979bd0c8f52}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Ranrak">
|
||||
<UniqueIdentifier>{bb981766-6030-4dd9-b92d-f6819a70c93d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Hover">
|
||||
<UniqueIdentifier>{24f6903f-8f6b-46ff-a387-ecb44d673887}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Fly">
|
||||
<UniqueIdentifier>{f24321bb-6750-4baa-b19a-bf5a3c2a8909}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_FireBreath">
|
||||
<UniqueIdentifier>{cbb70230-b830-4554-a678-c571d5a87176}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_FireBall">
|
||||
<UniqueIdentifier>{77fc199c-dd8f-4b36-8869-161a4998c189}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Pulse">
|
||||
<UniqueIdentifier>{70ff75c1-3309-4db7-9f5c-51573046df9e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Movement\Tucked">
|
||||
<UniqueIdentifier>{5fa641cd-bc30-4ab6-a8d4-26a9785ef4ae}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_AncientSpell">
|
||||
<UniqueIdentifier>{c69a2485-7f6e-4e22-81b4-1410fdae9d57}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_FireSweep">
|
||||
<UniqueIdentifier>{2c39ba68-2f23-4bc9-a277-b6e9295c11a0}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Movement\Ground">
|
||||
<UniqueIdentifier>{9e2863cd-1a30-4a27-a076-5e1baff3dee8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Swipe">
|
||||
<UniqueIdentifier>{2fd96fb0-dbc3-4486-afda-82b3b1b63060}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Focus\Slide">
|
||||
<UniqueIdentifier>{ee880571-e18c-4206-80ea-448cadd04d9a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Skill">
|
||||
<UniqueIdentifier>{cef80506-72c7-4bb9-a691-760f0a576eb7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Static">
|
||||
<UniqueIdentifier>{c3b86f00-da19-47ad-a26e-7ff641e2c4d4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1752,11 +1830,11 @@
|
||||
<ClCompile Include="..\Private\Chair_Splesh.cpp">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Chair</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Broom_Hover.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
<ClCompile Include="..\Private\State_Hover.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Hover</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Broom_Fly.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Fly</Filter>
|
||||
<ClCompile Include="..\Private\State_Fly.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Fly</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MiniMap_Camera.cpp">
|
||||
<Filter>02.GameObjects\Cameras\MiniMap_Camera</Filter>
|
||||
@@ -1836,6 +1914,48 @@
|
||||
<ClCompile Include="..\Private\Quest_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Slot</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Stupefy.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrak.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrak</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrak_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrak</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_FireBreath.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_FireBreath</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_FireBall.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_FireBall</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Pulse.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Pulse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Tucked.cpp">
|
||||
<Filter>04.Mechanic\State\Movement\Tucked</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_AncientSpell.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_AncientSpell</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_FireSweep.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_FireSweep</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Ground.cpp">
|
||||
<Filter>04.Mechanic\State\Movement\Ground</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Swipe.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Swipe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Slide.cpp">
|
||||
<Filter>04.Mechanic\State\Focus\Slide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Skill.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Skill</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MapElement_Static.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Static</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -49,6 +49,10 @@ HRESULT CAccio::Initialize(void* pArg)
|
||||
m_pRope_Trail = Get_PartObject<CTrailObject>("Accio_Trail");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
m_pRotate0 = Get_PartObject<CEffectParts>("Rotate0");
|
||||
m_pRotate1 = Get_PartObject<CEffectParts>("Rotate1");
|
||||
|
||||
m_pAccio_PT = Get_PartObject<CEffectParts>("Accio_PT");
|
||||
m_pAccio_Distortion = Get_PartObject<CEffectParts>("Accio_Distortion");
|
||||
|
||||
if (m_pRope_Trail == nullptr)
|
||||
return E_FAIL;
|
||||
@@ -56,10 +60,13 @@ HRESULT CAccio::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pRope_Trail);
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pRotate0);
|
||||
SAFE_ADDREF(m_pRotate1);
|
||||
SAFE_ADDREF(m_pAccio_PT);
|
||||
SAFE_ADDREF(m_pAccio_Distortion);
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity());
|
||||
|
||||
m_fDuration = 5.f;
|
||||
m_fDuration = 6.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -97,14 +104,17 @@ void CAccio::Update(_float fTimeDelta)
|
||||
TrailPos.r[3] += XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed;
|
||||
|
||||
|
||||
|
||||
|
||||
if (m_bHit == true && m_pEnemyCCT != nullptr)
|
||||
{
|
||||
/* 특정 대상과 충돌 했다면*/
|
||||
TrailPos.r[3] = m_pEnemyCCT->Get_Position();
|
||||
|
||||
m_pRotate0->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pEnemyCCT->Get_FootPosition());
|
||||
_vector vPos = m_pEnemyCCT->Get_FootPosition();
|
||||
|
||||
m_pRotate0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pRotate1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pAccio_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, TrailPos);
|
||||
@@ -164,12 +174,15 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
_vector WandPos = pPlayer->Get_WandPos().r[3];
|
||||
|
||||
CEffectParts* pCircle = Get_PartObject<CEffectParts>("Accio_Circle");
|
||||
|
||||
CEffectParts* pSpread_Circle = Get_PartObject<CEffectParts>("Spread_Circle");
|
||||
|
||||
m_pRope_Trail->Set_Visible(true);
|
||||
pCircle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
m_pWandLight->Get_Effect_Info()->isDissolve = false;
|
||||
m_pWandLight->Get_Effect_Info()->isLightDissolve = false;
|
||||
|
||||
pSpread_Circle->Set_Visible(true);
|
||||
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Reset_Trail();
|
||||
@@ -209,6 +222,8 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
m_fAccRotateTime = 0.f;
|
||||
|
||||
m_pRope_Trail->Get_TrailInfo()->fMass = 0.05f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -269,31 +284,42 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
|
||||
CEffectParts* pHit = Get_PartObject<CEffectParts>("Accio_Hit");
|
||||
CEffectParts* pHit0 = Get_PartObject<CEffectParts>("Accio_Hit0");
|
||||
|
||||
|
||||
pHit->Set_Visible(true);
|
||||
pHit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
pHit0->Set_Visible(true);
|
||||
pHit0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
m_pAccio_Distortion->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
CEffectParts* pCircle = Get_PartObject<CEffectParts>("Accio_Circle");
|
||||
CEffectParts* pWandLight = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
CEffectParts* pSpread_Circle = Get_PartObject<CEffectParts>("Spread_Circle");
|
||||
CEffectParts* pAccio_PT = Get_PartObject<CEffectParts>("Accio_PT");
|
||||
|
||||
|
||||
pCircle->Set_Visible(false);
|
||||
pWandLight->Set_Visible(false);
|
||||
pSpread_Circle->Set_Visible(false);
|
||||
|
||||
m_pWandLight->Get_Effect_Info()->isDissolve = true;
|
||||
m_pWandLight->Get_Effect_Info()->isLightDissolve = true;
|
||||
|
||||
m_pRotate0->Set_Visible(true);
|
||||
pAccio_PT->Set_Visible(true);
|
||||
m_pRotate1->Set_Visible(true);
|
||||
|
||||
pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pAccio_PT->Set_Visible(true);
|
||||
m_pAccio_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
|
||||
|
||||
if(m_isDissolve)
|
||||
m_pRope_Trail->SetDissolve(true);
|
||||
|
||||
m_pRope_Trail->Get_TrailInfo()->fMass = 0.1f;
|
||||
|
||||
}
|
||||
|
||||
void CAccio::Free()
|
||||
@@ -303,6 +329,9 @@ void CAccio::Free()
|
||||
SAFE_RELEASE(m_pRope_Trail);
|
||||
SAFE_RELEASE(m_pWandLight);
|
||||
SAFE_RELEASE(m_pRotate0);
|
||||
SAFE_RELEASE(m_pRotate1);
|
||||
SAFE_RELEASE(m_pAccio_PT);
|
||||
SAFE_RELEASE(m_pAccio_Distortion);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
#pragma region STATE
|
||||
#include "State_Broom_Ride.h"
|
||||
#include "State_Broom_Ride_Move.h"
|
||||
#include "State_Broom_Hover.h"
|
||||
#include "State_Broom_Fly.h"
|
||||
#include "State_Hover.h"
|
||||
#include "State_Fly.h"
|
||||
#include "State_Broom_TurboFly.h"
|
||||
#pragma endregion
|
||||
|
||||
@@ -581,7 +581,7 @@ void CBroomRacerAI::Add_FSM()
|
||||
}
|
||||
|
||||
{
|
||||
CState_Broom_Hover::STATE_BROOM_HOVER_DESC Desc{};
|
||||
CState_Hover::STATE_HOVER_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_HoverEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_HoverExitCheck(fTimedelta); };
|
||||
@@ -591,11 +591,11 @@ void CBroomRacerAI::Add_FSM()
|
||||
Attach_Broom();
|
||||
};
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Broom_Hover::Create(&Desc));
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Hover::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Broom_Fly::STATE_BROOM_FLY_DESC Desc{};
|
||||
CState_Fly::STATE_FLY_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_FlyEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_FlyExitCheck(fTimedelta); };
|
||||
@@ -605,7 +605,7 @@ void CBroomRacerAI::Add_FSM()
|
||||
Attach_Broom();
|
||||
};
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Broom_Fly::Create(&Desc));
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Fly::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Broom_Hover.h"
|
||||
#include "State_Broom_Fly.h"
|
||||
#include "State_Hover.h"
|
||||
#include "State_Fly.h"
|
||||
#include "State_Broom_TurboFly.h"
|
||||
#pragma endregion
|
||||
|
||||
@@ -848,25 +848,25 @@ void CBroom::Add_FSM()
|
||||
}
|
||||
|
||||
{
|
||||
CState_Broom_Hover::STATE_BROOM_HOVER_DESC Desc{};
|
||||
CState_Hover::STATE_HOVER_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_HoverEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_HoverExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_Broom_HoverExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Broom_Hover::Create(&Desc));
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Hover::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Broom_Fly::STATE_BROOM_FLY_DESC Desc{};
|
||||
CState_Fly::STATE_FLY_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_FlyEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_FlyExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_Broom_FlyExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Broom_Fly::Create(&Desc));
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Fly::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
@@ -209,6 +209,9 @@ HRESULT CEffectObject::Render_Bloom()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pInstance_ModelCom->Render(i)))
|
||||
{
|
||||
return E_FAIL;
|
||||
@@ -809,7 +812,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -931,6 +934,18 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fModelDistortIntensity", &m_EffectInfo.fModelDistortIntensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskOffset", &m_EffectInfo.vMaskOffset, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (m_pDiffuse_TextureCom != nullptr)
|
||||
{
|
||||
@@ -974,9 +989,6 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
#include "Goblin_Teleport.h"
|
||||
#include "Accio.h"
|
||||
#include "Screen_Wind.h"
|
||||
#include "Stupefy.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -370,6 +371,18 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStupefy* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CStupefy>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ void CGoblin::Update(_float fTimeDelta)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
|
||||
m_pDetection->Set_Active(m_bDetection);
|
||||
//m_pDetection->Set_Active(m_bDetection);
|
||||
|
||||
|
||||
if (m_bDisolve) {
|
||||
@@ -456,9 +456,9 @@ HRESULT CGoblin::Ready_Parts()
|
||||
#pragma endregion
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_Detection>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &PartsDesc, this, &m_pDetection))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEnemy_Detection>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &PartsDesc, this, &m_pDetection))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -326,6 +326,8 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
_int ID = m_pStat->Get_Stat().iObjectID;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,13 +37,15 @@ HRESULT CGoblin_Mage::Behavior_IdleExitCheck()
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO, this);
|
||||
m_bLookAt = true;
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance >= 25.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_IdleExit()
|
||||
@@ -88,9 +90,10 @@ HRESULT CGoblin_Mage::Behavior_IdleBreakExitCheck()
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_IdleBreakExit()
|
||||
@@ -113,13 +116,14 @@ HRESULT CGoblin_Mage::Behavior_MoveExitCheck()
|
||||
|
||||
if (m_fTargetDistance <= 15.f && m_fTargetDistance != 0.f) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_MoveExit()
|
||||
@@ -155,20 +159,24 @@ HRESULT CGoblin_Mage::Behavior_CombatExitCheck(_float fTimeDelta)
|
||||
if (m_fTargetDistance <= 7.f && m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BLINK);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 10.f && m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::SPELL)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SPELL);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 15.f && m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::LIGHTATTACK)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
|
||||
return E_FAIL;
|
||||
}
|
||||
else {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_CombatExit()
|
||||
@@ -189,9 +197,6 @@ void CGoblin_Mage::Behavior_SpellEnter()
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_MAGE_SIDE, this);
|
||||
|
||||
}, 0.1f);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Mage::Behavior_SpellExitCheck(_float fTimeDelta)
|
||||
@@ -221,7 +226,7 @@ HRESULT CGoblin_Mage::Behavior_SpellExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_SpellExit()
|
||||
@@ -261,7 +266,7 @@ HRESULT CGoblin_Mage::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_LightAttackExit()
|
||||
@@ -286,7 +291,7 @@ HRESULT CGoblin_Mage::Behavior_SustainExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_SustainExit()
|
||||
@@ -355,7 +360,7 @@ HRESULT CGoblin_Mage::Behavior_BlinkExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_BlinkExit()
|
||||
@@ -474,23 +479,18 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
{
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
|
||||
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
|
||||
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
|
||||
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
|
||||
|
||||
|
||||
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
|
||||
vUp = XMVector4Normalize(vUp);
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector Force = vUp * fTimeDelta * 15.f;
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
|
||||
|
||||
if (fLength >= 3.5f)
|
||||
if (fLength >= 2.5f)
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta + Force
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta
|
||||
);
|
||||
}
|
||||
else {
|
||||
@@ -514,7 +514,7 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -42,20 +42,22 @@ HRESULT CGoblin::Behavior_IdleExitCheck()
|
||||
m_bLookAt = false;
|
||||
m_bDetection = true;
|
||||
}
|
||||
if ((m_fTargetDistance <= 10.f && m_fTargetDistance != 0.f) || m_pDetection->Get_Step() == true)
|
||||
if ((m_fTargetDistance <= 10.f && m_fTargetDistance != 0.f) /*|| m_pDetection->Get_Step() == true*/)
|
||||
{
|
||||
m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
m_bLookAt = true;
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance >= 25.f)
|
||||
{
|
||||
m_bDetection = false;
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_IdleExit()
|
||||
@@ -100,9 +102,10 @@ HRESULT CGoblin::Behavior_IdleBreakExitCheck()
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_IdleBreakExit()
|
||||
@@ -180,9 +183,12 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
}
|
||||
|
||||
if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 5.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_MoveExit()
|
||||
@@ -215,20 +221,24 @@ HRESULT CGoblin::Behavior_CombatExitCheck(_float fTimeDelta)
|
||||
if (m_fTargetDistance <= 6.f && m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::SWING)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SWING);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance >= 7.f && m_fTargetDistance <= 12.f && m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::THROW)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SKILL);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 15.f && m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BLINK);
|
||||
return E_FAIL;
|
||||
}
|
||||
else {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_CombatExit()
|
||||
@@ -280,7 +290,7 @@ HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
if (m_pFSM->IsEnable(FSMSTATE::SWING) && m_bStep)
|
||||
{
|
||||
_float fDesiredRange = 2.f;
|
||||
_float fDesiredRange = 1.f;
|
||||
_float dist = m_fTargetDistance;
|
||||
|
||||
if (dist > fDesiredRange)
|
||||
@@ -290,11 +300,11 @@ HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
|
||||
vDistance = XMVector4Normalize(vDistance);
|
||||
_float step = dist - fDesiredRange;
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(vDistance * step * fTimeDelta * 1.5f);
|
||||
m_pTransformCom->AccumulateMomentum(vDistance * step * fTimeDelta * 2.f);
|
||||
}
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_SwingExit()
|
||||
@@ -328,7 +338,7 @@ HRESULT CGoblin::Behavior_ThrowExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_ThrowExit()
|
||||
@@ -391,7 +401,7 @@ HRESULT CGoblin::Behavior_BlinkExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_BlinkExit()
|
||||
@@ -429,9 +439,10 @@ HRESULT CGoblin::Behavior_ShuffleExitCheck(_float fTimeDelta)
|
||||
if (fRatio >= 0.3f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_ShuffleExit()
|
||||
@@ -550,23 +561,18 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
{
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
|
||||
vPlayerPos = XMVectorSetY(vPlayerPos,XMVectorGetY(vPlayerPos) + 2.5f);
|
||||
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
|
||||
|
||||
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
|
||||
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
|
||||
|
||||
|
||||
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
|
||||
vUp = XMVector4Normalize(vUp);
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector Force = vUp * fTimeDelta * 15.f;
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
|
||||
|
||||
if (fLength >= 3.5f)
|
||||
if (fLength >= 2.5f)
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta + Force
|
||||
vMonsterPos + vDir * m_fSpeed * fTimeDelta
|
||||
);
|
||||
}
|
||||
else {
|
||||
@@ -590,7 +596,7 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Behavior_HitExit()
|
||||
|
||||
@@ -262,9 +262,9 @@ void CInfoInstance::Event_CallBack(_wstring EventName, void* pArg)
|
||||
}
|
||||
}
|
||||
|
||||
QUESTINFO CInfoInstance::Get_Quest(_int QuestID)
|
||||
QUESTINFO CInfoInstance::Get_Quest(_int QuestType, _int QuestID)
|
||||
{
|
||||
return m_pQuestInfo->Get_Quest(QuestID);
|
||||
return m_pQuestInfo->Get_Quest(QuestType, QuestID);
|
||||
}
|
||||
|
||||
_int CInfoInstance::Get_Quest_Count(_int Index)
|
||||
|
||||
@@ -102,7 +102,7 @@ HRESULT CInstancedProp::Ready_Components(void* pArg)
|
||||
INSTANCE_PROP_DESC* pDesc = static_cast<INSTANCE_PROP_DESC*>(pArg);
|
||||
|
||||
/* Com_VIBuffer_Instance_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->strPrototypeTag,
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, pDesc->strPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pVIBufferInstanceCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
#include "InfoInstance.h"
|
||||
#include "Light_Main.h"
|
||||
#include "Layer.h"
|
||||
#include "Camera_Debug.h"
|
||||
#include "Terrain.h"
|
||||
#include "SkyBox.h"
|
||||
|
||||
CLevel_Field::CLevel_Field(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
@@ -19,6 +22,17 @@ HRESULT CLevel_Field::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_SkyBox())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Background())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Camera())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Markers())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -42,7 +56,7 @@ void CLevel_Field::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Up(DIK_F1))
|
||||
{
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
//m_pGameInstance->Set_LevelToChange();
|
||||
}
|
||||
|
||||
m_pInfoInstance->Update(fTimeDelta);
|
||||
@@ -108,6 +122,58 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Camera()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.vEye = _float3(0.f, 10.f, -10.f);
|
||||
Camera_Desc.vAt = _float3(0.f, 0.f, 0.f);
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_DEBUG;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fMouseSensor = 0.1f;
|
||||
Camera_Desc.iPriority = 53;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
CCamera_Debug* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Debug>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG);
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Layer_SkyBox()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CSkyBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_SKYBOX))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Background()
|
||||
{
|
||||
_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_Fog(10.f, 5.f);
|
||||
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevel_Field::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
{
|
||||
return S_OK;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "Goblin_Spector.h"
|
||||
#include "NPC_Ollivander.h"
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Ranrak.h"
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -272,8 +273,6 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
#if 진우
|
||||
|
||||
#else
|
||||
@@ -566,7 +565,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
{
|
||||
for (_uint i = 0; i < 1; ++i)
|
||||
for (_uint i = 0; i <1; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
@@ -575,7 +574,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
|
||||
for (_uint i = 0; i <1; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Mage>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &i))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin_Mage>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
@@ -585,6 +584,10 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrak>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ HRESULT CLight_Main::Ready_Components()
|
||||
|
||||
_float4 vColor = _float4(0.7f, 0.7f, 0.7f, 0.3f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_FogDensity(5.f);
|
||||
m_pGameInstance->Set_Fog(5.f, 30.f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "Troll.h"
|
||||
#include "NPC_Ollivander.h"
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Ranrak.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -164,6 +165,7 @@
|
||||
#include "Chair_Splesh.h"
|
||||
#include "Barral_Splesh.h"
|
||||
#include "Screen_Wind.h"
|
||||
#include "Stupefy.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -185,6 +187,7 @@
|
||||
#include "Unified.h"
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Chest_Lid.h"
|
||||
#include "MapElement_Static.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -266,20 +269,14 @@ HRESULT CLoader::Loading_For_Logo()
|
||||
{
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dororong"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Logo", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
|
||||
{
|
||||
|
||||
_string strFilePath = pFilePath;
|
||||
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::LOGO), wstrFileName,
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"", ENUM_CLASS(LEVEL::LOGO))))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -335,7 +332,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = false;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isLoad_Background = true;
|
||||
isLoad_Background = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = false;
|
||||
@@ -914,6 +911,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#pragma endregion
|
||||
#if 진우
|
||||
#elif 기무리
|
||||
#elif Bin
|
||||
#elif gimch
|
||||
#else
|
||||
#pragma region UI_ANI
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
||||
@@ -1570,13 +1569,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrak_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region ITEM
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
@@ -1609,6 +1610,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
|
||||
/* For.Prototype_Component_SkyboxModel */
|
||||
@@ -1724,6 +1727,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStupefy>(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1780,6 +1790,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Lightning", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
});
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region UI
|
||||
@@ -1904,10 +1923,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBoss_HpBar>(g_iStaticLevel, CBoss_HpBar::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* For.Prototype_GameObject_Enemy_Detection*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Detection>(g_iStaticLevel, CEnemy_Detection::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
///* For.Prototype_GameObject_Enemy_Detection*/
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CEnemy_Detection>(g_iStaticLevel, CEnemy_Detection::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
/* For.Prototype_GameObject_Spell_Canvas*/
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CSpell_Canvas>(g_iStaticLevel, CSpell_Canvas::Create(m_pDevice, m_pContext))))
|
||||
@@ -2102,105 +2121,105 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
#pragma region MAP_INSTANCE
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin",
|
||||
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_BearBerry_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_BearBerry_A.bin",
|
||||
"../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_OwlPost_Window_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_OwlPost_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Rectangle_Double_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Rectangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Retangle_Double_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Retangle_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WA_Square_Double_C"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleA_L_Square_Double_C.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Quid_Window_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Quid_Window_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Ollivanders_Box_Window"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Ollivanders_Box_Window.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_L_DoubleS_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_L_Double_Single_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_WC_Round_Double_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_WindowsStyleC_Round_Double_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door1a"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Door1a.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_HM_Door2b"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_Door2b.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_OakTree_TallA.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_Shrub_B*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Shrub_B"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Shrub_B"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_GenericShrub_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_BogMyrtle_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_BogMyrtle_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_Dogwood_B"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_Dogwood_B.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA*/
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_ScotsPine_LargeA"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_ScotsPine_LargeA_Master.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
@@ -2232,22 +2251,22 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_Lake"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_Lake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Deep.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_LakeSurFace */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogwart_LakeSurFace"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogwart_LakeSurFace"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Lake/SM_Lake_A_Collision_Shallow.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLake */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLake"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogsmead_NorthLake"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Deep.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogsmead_NorthLakeShallow */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/River/NorthLake/HDA_SM_LakeA_Collision_Shallow.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -2305,6 +2324,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Chest_Lid>(g_iStaticLevel, CMapElement_Chest_Lid::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapElement_Static */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Static>(g_iStaticLevel, CMapElement_Static::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Unified */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Lake>(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -2346,11 +2369,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll>(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Troll */
|
||||
/* For.Prototype_GameObject_Ollivander */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CNPC_Ollivander>(g_iStaticLevel, CNPC_Ollivander::Create(m_pDevice, m_pContext)))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Ranrak */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrak>(g_iStaticLevel, CRanrak::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -2436,12 +2464,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
vector<FOLDER_LOAD*>* pOut = JobMapModels.get();
|
||||
for (_uint i = 0; i < pOut->size(); ++i) {
|
||||
FOLDER_LOAD* pContents = (*pOut)[i];
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, pContents->pModelTag, pContents->pLoadedModel))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint j = 0; j < pContents->pRigidBodyTags.size(); ++j) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[j], pContents->LoadedRigidBody[j]))) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, pContents->pRigidBodyTags[j], pContents->LoadedRigidBody[j]))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
@@ -2467,6 +2495,118 @@ HRESULT CLoader::Loading_For_Field()
|
||||
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region DUNGEON
|
||||
|
||||
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
|
||||
{
|
||||
{/* Cave Wall */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Wall",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Props */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Props",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* ArenaFloor */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ArenaFloor",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/*Sanctum_Dungeon_Center_Structure_AnteChamber */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/AnteChamber",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_Center_Structure_Core */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/Core",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_ConjuredDragonAttackZones */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ConjuredDragonAttackZones",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
|
||||
{/* Sanctum_Dungeon_Rock_Barriers */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Rock_Barriers",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_Rock_SM_Repository_FloatingGround */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/SM_Repository_FloatingGround",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_Rock_SM_Repository_Stage3MoveableRocks */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Stage3MoveableRocks",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_Rock_Interactables */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/BreakingRocks/LG_E",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_Rock_Main */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Sanctum_Dungeon_Rock_Main */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Interactables",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Cavern_Dungeon_Rocks */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Cavern_Dungeon/Mesh/Rocks",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
{ // MapModels
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapModels : jobMapModels)
|
||||
{
|
||||
vector<FOLDER_LOAD*>* pOut = JobMapModels.get();
|
||||
for (_uint i = 0; i < pOut->size(); ++i) {
|
||||
FOLDER_LOAD* pContents = (*pOut)[i];
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::FIELD), pContents->pModelTag, pContents->pLoadedModel))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint j = 0; j < pContents->pRigidBodyTags.size(); ++j) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::FIELD), pContents->pRigidBodyTags[j], pContents->LoadedRigidBody[j]))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
Safe_Delete(pContents);
|
||||
}
|
||||
iIndex++;
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
}
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
||||
|
||||
@@ -127,7 +127,7 @@ HRESULT CLogo::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_Logo_Screen_BG"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_Logo_Screen_BG"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -145,11 +145,11 @@ HRESULT CLogo_Glow::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_NavBarHighlightGlow"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_NavBarHighlightGlow"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_WhiteStarBurst"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_WhiteStarBurst"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom1), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ HRESULT CLogo_Text::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Component<CVIBuffer_Rect>(g_iStaticLevel, &m_pVIBufferCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_HogwartsLegacyLogo_Korean"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::LOGO), TEXT("Prototype_Texture_UI_T_HogwartsLegacyLogo_Korean"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom), nullptr)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ HRESULT CMapElement_Chest::Ready_Components(void* pArg)
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ HRESULT CMapElement_Chest_Lid::Ready_Components(void* pArg)
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ HRESULT CMapElement_Door::Ready_Components(void* pArg)
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ HRESULT CMapElement_Interactable::Ready_Components(void* pArg)
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -111,14 +111,14 @@ HRESULT CMapElement_Lake::Ready_Components(void* pArg)
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->ShallowModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, pDesc->ShallowModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ HRESULT CMapElement_Light::Ready_Components(void* pArg)
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -0,0 +1,239 @@
|
||||
#include "pch.h"
|
||||
#include "MapElement_Static.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
#include "Layer.h"
|
||||
|
||||
CMapElement_Static::CMapElement_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapElement{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CMapElement_Static::CMapElement_Static(const CMapElement_Static& rhs)
|
||||
: CMapElement(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Initialize(void* pArg)
|
||||
{
|
||||
MAPELEMENT_DESC* pDesc = static_cast<MAPELEMENT_DESC*>(pArg);
|
||||
|
||||
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||
{
|
||||
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
|
||||
}
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
_float fMaxScale = max(pDesc->vScale.x, pDesc->vScale.y);
|
||||
fMaxScale = max(fMaxScale, pDesc->vScale.z);
|
||||
|
||||
m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale;
|
||||
|
||||
ReadyForPhysX();
|
||||
ConvertToPhysX();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Static::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Static::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Static::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_fRadius)) {
|
||||
|
||||
m_fCamDepth = XMVectorGetX(XMVector3LengthSq(XMLoadFloat4(m_pGameInstance->Get_CamPosition()) - m_pTransformCom->Get_State(STATE::POSITION)));
|
||||
|
||||
m_iLodIndex = min(m_iMaxLodLevel, (_uint)(m_fCamDepth / (m_fRadius * m_fRadius + 3600.f)));
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
_uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Static::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Static::ReadyForPhysX()
|
||||
{
|
||||
if (true == m_bConverted) {
|
||||
return;
|
||||
}
|
||||
m_bConverted = true;
|
||||
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix()))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMapElement_Static::ConvertToPhysX()
|
||||
{
|
||||
if (true == m_bReadyToCreatePhysX) {
|
||||
return;
|
||||
}
|
||||
m_bReadyToCreatePhysX = true;
|
||||
|
||||
m_RigidBodies.resize(m_iMaxLodLevel + 1);
|
||||
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
|
||||
{
|
||||
CModel* pModel = m_pModelComs[iIndexLOD];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CMapElement_Static* CMapElement_Static::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Static* pInstance = new CMapElement_Static(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMapElement_Static");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMapElement_Static::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMapElement_Static* pInstance = new CMapElement_Static(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMapElement_Static");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMapElement_Static::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
|
||||
SAFE_RELEASE(m_RigidBodies[i][j]);
|
||||
}
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMapElement_Static::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "MapElement_Lake.h"
|
||||
#include "MapElement_Door.h"
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Static.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -143,9 +144,9 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName)
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
|
||||
/*if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType)
|
||||
if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType)
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Static"), &Desc);
|
||||
else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
||||
/*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ void CMapObject_Collision::ConvertToPhysX()
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
@@ -148,7 +148,7 @@ HRESULT CMapObject_Collision::Ready_Components()
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[iIndexLOD],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[iIndexLOD],
|
||||
reinterpret_cast<CComponent**>(&pModel)))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ void CMapObject_Render::ConvertToPhysX()
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies[iIndexLOD].push_back(pRigidBody);
|
||||
@@ -210,7 +210,7 @@ HRESULT CMapObject_Render::Add_LodModel(const _tchar* pModelPrototypeTag)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pModelPrototypeTag,
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, pModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -231,7 +231,7 @@ HRESULT CMapObject_Render::Ready_Components()
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -143,8 +143,6 @@ void CPlayer::Update(_float fTimeDelta)
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta * ease, m_pTransformCom);
|
||||
|
||||
|
||||
|
||||
Play_Event();
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
@@ -324,6 +322,12 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
||||
}
|
||||
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::SHIELD))
|
||||
{
|
||||
m_bShield = true;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (m_isDebugMode == true)
|
||||
return;
|
||||
@@ -336,10 +340,7 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
else {
|
||||
m_fHitDegree = -1.f;
|
||||
}
|
||||
if (m_pFSM->IsEnable(FSMSTATE::SHIELD))
|
||||
{
|
||||
m_bShield = true;
|
||||
}
|
||||
|
||||
|
||||
if(!m_pFSM->IsEnable(FSMSTATE::DODGE) && !m_bShield)
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
@@ -21,16 +21,18 @@
|
||||
#include "State_Dodge.h"
|
||||
#include "State_Jump.h"
|
||||
#include "State_Land.h"
|
||||
#include "State_Slide.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Combat.h"
|
||||
#include "State_LightAttack.h"
|
||||
#include "State_Spell.h"
|
||||
#include "State_AncientSpell.h"
|
||||
#include "State_Shield.h"
|
||||
#include "State_Hit.h"
|
||||
#include "State_Broom_Ride.h"
|
||||
#include "State_Broom_Ride_Move.h"
|
||||
#include "State_Broom_Hover.h"
|
||||
#include "State_Broom_Fly.h"
|
||||
#include "State_Hover.h"
|
||||
#include "State_Fly.h"
|
||||
#include "State_Broom_TurboFly.h"
|
||||
#include "State_Broom_Dismount.h"
|
||||
#pragma endregion
|
||||
@@ -234,6 +236,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
else if (m_pGameInstance->Key_Down(DIK_T)) {
|
||||
m_pInfoInstance->Change_Canvas();
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
@@ -441,6 +446,9 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
@@ -490,6 +498,10 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
return S_OK;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_E))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SLIDE);
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -834,6 +846,46 @@ void CPlayer::Behavior_DodgeExit()
|
||||
m_pFSM->Disable_State(FSMSTATE::DODGE);
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_SlideEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
m_pFSM->Enable_State(FSMSTATE::SLIDE);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SLIDE_START_R];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
|
||||
0.95f);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_SlideExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
if (m_pGameInstance->Key_Up(DIK_E))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SLIDE_STOP_R];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
return S_OK;
|
||||
}
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::SLIDE_STOP_R].first)
|
||||
{
|
||||
if (fRatio >=0.38f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_SlideExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SLIDE);
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_CombatEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
@@ -866,17 +918,22 @@ void CPlayer::Behavior_CombatEnter()
|
||||
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
|
||||
pairAnimInfo = m_Animation[STATEANIM::MAPHELP];
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
if (nullptr != m_pGrapInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
}
|
||||
else if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
SAFE_ADDREF(m_pGrapInteractive);
|
||||
m_pGrapInteractive->Set_KinematicFlag(true);
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
return;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
@@ -927,29 +984,29 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_bLookAt = true; },
|
||||
0.1f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
Throwing_Interactive();
|
||||
},
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGameInstance->SlowMotion(0.1f, 0.35f);
|
||||
},
|
||||
0.1f);
|
||||
|
||||
|
||||
}
|
||||
else if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
SAFE_ADDREF(m_pGrapInteractive);
|
||||
m_pGrapInteractive->Set_KinematicFlag(true);
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
}
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_bLookAt = true; },
|
||||
0.1f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
Throwing_Interactive();
|
||||
},
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGameInstance->SlowMotion(0.1f, 0.35f);
|
||||
},
|
||||
0.1f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1097,6 +1154,10 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
@@ -1191,7 +1252,7 @@ void CPlayer::Behavior_SpellEnter()
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); },
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); }, /* 임시로 바꿔놓음 */
|
||||
fRatio);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
|
||||
@@ -1407,6 +1468,10 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
@@ -1465,17 +1530,66 @@ void CPlayer::Behavior_SpellExit()
|
||||
m_pModelCom->Set_BlendDuration(0.3f);
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_AncientSpellEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_SPELL);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_LIGHTNING_CHARGE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::ANCIENT_LIGHTNING];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
|
||||
0.5f);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_AncientSpellExitCheck()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
m_bLookAt = false;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_bLookAt = false;
|
||||
if (SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_AncientSpellExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::ANCIENT_SPELL);
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_ShieldEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
|
||||
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f);
|
||||
if (!m_bShield)
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
|
||||
0.1f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
|
||||
0.1f);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
@@ -1486,6 +1600,7 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
|
||||
if (m_bShield)
|
||||
{
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Q))
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::PARRY);
|
||||
@@ -1534,10 +1649,11 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
|
||||
m_pGameInstance->SlowMotion(0.8f, 0.3f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
/* Add_Event(pairAnimInfo.first,
|
||||
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
|
||||
0.2f);
|
||||
*/ m_bShield = false;
|
||||
|
||||
m_bShield = false;
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -2239,7 +2355,7 @@ void CPlayer::Throwing_Interactive()
|
||||
{
|
||||
if (nullptr == m_pGrapInteractive) {
|
||||
return;
|
||||
} _vector vDir = {}; _float vDistance = 45.f;
|
||||
} _vector vDir = {}; _float vDistance = 60.f;
|
||||
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component<CRigidBody_Dynamic>();
|
||||
if (nullptr != m_LockOnInfo.pUnit) {
|
||||
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
|
||||
@@ -2387,6 +2503,17 @@ void CPlayer::Add_FSM()
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::DODGE, CState_Dodge::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Slide::STATE_SLIDE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_SlideEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_SlideExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_SlideExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::SLIDE, CState_Slide::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
#pragma region Behavior_Combat_NotFocus
|
||||
{
|
||||
@@ -2422,6 +2549,17 @@ void CPlayer::Add_FSM()
|
||||
m_States.emplace(FSMSTATE::SPELL, CState_Spell::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_AncientSpell::STATE_ANCIENTSPELL_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_AncientSpellEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_AncientSpellExitCheck(); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_AncientSpellExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::ANCIENT_SPELL, CState_AncientSpell::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Shield::STATE_SHIELD_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
@@ -2518,7 +2656,7 @@ void CPlayer::Add_FSM()
|
||||
}
|
||||
|
||||
{
|
||||
CState_Broom_Hover::STATE_BROOM_HOVER_DESC Desc{};
|
||||
CState_Hover::STATE_HOVER_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_HoverEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_HoverExitCheck(fTimedelta); };
|
||||
@@ -2528,11 +2666,11 @@ void CPlayer::Add_FSM()
|
||||
Attach_Broom();
|
||||
};
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Broom_Hover::Create(&Desc));
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Hover::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Broom_Fly::STATE_BROOM_FLY_DESC Desc{};
|
||||
CState_Fly::STATE_FLY_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_FlyEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_FlyExitCheck(fTimedelta); };
|
||||
@@ -2542,7 +2680,7 @@ void CPlayer::Add_FSM()
|
||||
Attach_Broom();
|
||||
};
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Broom_Fly::Create(&Desc));
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Fly::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
@@ -2607,6 +2745,10 @@ void CPlayer::Set_Anim()
|
||||
|
||||
m_Animation[STATEANIM::LAND] = { 259,false };
|
||||
|
||||
m_Animation[STATEANIM::SLIDE_STOP_R] = { 568,false };
|
||||
m_Animation[STATEANIM::SLIDE_START_R] = { 566,false };
|
||||
m_Animation[STATEANIM::SLIDE_LOOP_R] = { 564,true };
|
||||
|
||||
m_Animation[STATEANIM::DODGE] = { 878,false };
|
||||
m_Animation[STATEANIM::DODGE_BLINK] = { 876,true };
|
||||
|
||||
@@ -2637,6 +2779,9 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false };
|
||||
m_Animation[STATEANIM::ANCIENT_THROW] = { 919,false };
|
||||
|
||||
m_Animation[STATEANIM::ANCIENT_LIGHTNING_CHARGE] = { 755,false };
|
||||
m_Animation[STATEANIM::ANCIENT_LIGHTNING] = { 859,false }; // 859
|
||||
|
||||
m_Animation[STATEANIM::SPELL_FAIL] = { 906,false };
|
||||
|
||||
m_Animation[STATEANIM::PARRY_180] = { 947,false };
|
||||
@@ -2711,6 +2856,9 @@ void CPlayer::Set_Anim()
|
||||
|
||||
// 716 아래 앞 왼 오 업
|
||||
// 947
|
||||
|
||||
// 755 기모으기 859
|
||||
//568 566 564 슬라이드 스탑/스타트/루프
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -38,9 +38,10 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
m_pSphereLay = Get_PartObject<CEffectParts>("ProtegoLay");
|
||||
|
||||
SAFE_ADDREF(m_pSphere);
|
||||
|
||||
SAFE_ADDREF(m_pSphereLay);
|
||||
|
||||
m_wstrEffectName = L"Protego";
|
||||
|
||||
@@ -65,11 +66,14 @@ void CProtego::Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
/* 시작 사이즈 러프 */
|
||||
if (m_fSizeAccTime > XM_PIDIV2)
|
||||
return;
|
||||
@@ -80,6 +84,7 @@ void CProtego::Update(_float fTimeDelta)
|
||||
_float3 vSize = _float3(fSize, fSize, fSize);
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
}
|
||||
|
||||
void CProtego::Late_Update(_float fTimeDelta)
|
||||
@@ -98,13 +103,16 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
m_pSphere->Set_Visible(true);
|
||||
m_pSphereLay->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
_float3 vSize = _float3(1.f, 1.f, 1.f);
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
@@ -180,6 +188,7 @@ void CProtego::Free()
|
||||
// SAFE_RELEASE(m_pPhysHitBox);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pSphere);
|
||||
SAFE_RELEASE(m_pSphereLay);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -44,6 +44,8 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
|
||||
}
|
||||
Visible(false);
|
||||
m_pInfoInstance->Set_AcceptQuest(0);
|
||||
m_pInfoInstance->Set_AcceptQuest(1);
|
||||
m_pInfoInstance->Set_AcceptQuest(2);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,9 +95,20 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
QUESTINFO CQuest_Data::Get_Quest(_int QuestID)
|
||||
QUESTINFO CQuest_Data::Get_Quest(_int QuestType, _int QuestID)
|
||||
{
|
||||
return QuestInfos[QuestID];
|
||||
switch (QuestType)
|
||||
{
|
||||
case 0:
|
||||
return QuestInfos[QuestID];
|
||||
case 1:
|
||||
return m_QuestAcceptedInfos[QuestID];
|
||||
case 2:
|
||||
return m_QuestEndInfos[QuestID];
|
||||
default:
|
||||
return QuestInfos[QuestID];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
const vector<QUESTINFO>& CQuest_Data::Get_AllQuest() const
|
||||
@@ -164,18 +175,24 @@ void CQuest_Data::Set_ClearQuest(_int Index)
|
||||
|
||||
void CQuest_Data::Update_AcceptQuest(_int MonsterID)
|
||||
{
|
||||
m_QuestAcceptedInfoObject.erase(remove_if(m_QuestAcceptedInfoObject.begin(), m_QuestAcceptedInfoObject.end(),
|
||||
[MonsterID, this](auto& it) {
|
||||
CQuestInstance* instance = static_cast<CQuestInstance*>(it);
|
||||
if (static_cast<CQuestInstance*>(it)->Update_Objective(MonsterID) == true)
|
||||
{
|
||||
Set_ClearQuest(static_cast<CQuestInstance*>(it)->Get_QuestID());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}),
|
||||
m_QuestAcceptedInfoObject.end()
|
||||
);
|
||||
vector<_int> toRemoveIndex;
|
||||
|
||||
_int index = 0;
|
||||
for (auto* instance : m_QuestAcceptedInfoObject)
|
||||
{
|
||||
if (static_cast<CQuestInstance*>(instance)->Update_Objective(MonsterID))
|
||||
{
|
||||
Set_ClearQuest(static_cast<CQuestInstance*>(instance)->Get_QuestID());
|
||||
toRemoveIndex.push_back(index);
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
for (auto it = toRemoveIndex.rbegin(); it != toRemoveIndex.rend(); ++it)
|
||||
{
|
||||
m_QuestAcceptedInfoObject.erase(m_QuestAcceptedInfoObject.begin() + *it);
|
||||
m_QuestAcceptedInfos.erase(m_QuestAcceptedInfos.begin() + *it);
|
||||
}
|
||||
}
|
||||
|
||||
CQuest_Data* CQuest_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -40,11 +40,11 @@ HRESULT CQuest_Entry_Line::Initialize(void* pArg)
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlphaTime = 5.f;
|
||||
m_vNine_Slice = _float4(0.f, 256.f, 0.f, 64.f);
|
||||
m_fFontX = 928.f;
|
||||
m_fFontX = 948.f;
|
||||
m_fFontY = 520.f;
|
||||
SizeUpX(800.f);
|
||||
SizeUpY(15.f);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(p); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -120,7 +120,7 @@ HRESULT CQuest_Entry_Line::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), TEXT("보 상")) - 22) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("조 건"), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
|
||||
@@ -208,9 +208,12 @@ HRESULT CQuest_Entry_Line::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Entry_Line::Set_Hover(_int Index)
|
||||
void CQuest_Entry_Line::Set_Hover(void* pArg)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
CURRENTQUESTSECETINFO* Desc = static_cast<CURRENTQUESTSECETINFO*>(pArg);
|
||||
|
||||
m_iCurrentQuest = Desc->iQuestCategory;
|
||||
m_iQuest_Index = Desc->iQuestIndex;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
|
||||
@@ -51,7 +51,7 @@ HRESULT CQuest_Info::Initialize(void* pArg)
|
||||
m_fFontY = 500.f;
|
||||
m_iPerQuestIndex = -1;
|
||||
Visible(false);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(p); });
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ HRESULT CQuest_Info::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest ,m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -217,9 +217,12 @@ HRESULT CQuest_Info::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info::Set_Hover(_int Index)
|
||||
void CQuest_Info::Set_Hover(void* pArg)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
CURRENTQUESTSECETINFO* Desc = static_cast<CURRENTQUESTSECETINFO*>(pArg);
|
||||
|
||||
m_iCurrentQuest = Desc->iQuestCategory;
|
||||
m_iQuest_Index = Desc->iQuestIndex;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
|
||||
@@ -48,7 +48,7 @@ HRESULT CQuest_Info_Header::Initialize(void* pArg)
|
||||
m_iColor = 2;
|
||||
SizeUpX(1105.f);
|
||||
SizeUpY(60.f);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(p); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -129,8 +129,8 @@ HRESULT CQuest_Info_Header::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iQuest_Index).pQuestName.c_str(), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str(), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -214,9 +214,12 @@ HRESULT CQuest_Info_Header::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info_Header::Set_Hover(_int Index)
|
||||
void CQuest_Info_Header::Set_Hover(void* pArg)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
CURRENTQUESTSECETINFO* Desc = static_cast<CURRENTQUESTSECETINFO*>(pArg);
|
||||
|
||||
m_iCurrentQuest = Desc->iQuestCategory;
|
||||
m_iQuest_Index = Desc->iQuestIndex;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
|
||||
@@ -42,7 +42,7 @@ HRESULT CQuest_Info_Line::Initialize(void* pArg)
|
||||
m_vNine_Slice = _float4(11.f, 245.f, 0.f, 64.f);
|
||||
SizeUpX(934.f);
|
||||
SizeUpY(15.f);
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(*reinterpret_cast<_int*>(p)); });
|
||||
static_cast<CUIObject*>(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(p); });
|
||||
Visible(false);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -202,9 +202,12 @@ HRESULT CQuest_Info_Line::Ready_Components(void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Info_Line::Set_Hover(_int Index)
|
||||
void CQuest_Info_Line::Set_Hover(void* pArg)
|
||||
{
|
||||
m_iQuest_Index = Index;
|
||||
CURRENTQUESTSECETINFO* Desc = static_cast<CURRENTQUESTSECETINFO*>(pArg);
|
||||
|
||||
m_iCurrentQuest = Desc->iQuestCategory;
|
||||
m_iQuest_Index = Desc->iQuestIndex;
|
||||
if (m_iQuest_Index == -1)
|
||||
{
|
||||
Visible(false);
|
||||
|
||||
@@ -49,12 +49,15 @@ HRESULT CQuest_Slot::Initialize(void* pArg)
|
||||
m_fOffSetX = 0.f;
|
||||
m_fOffSetY = 85;
|
||||
m_iCols = 1;
|
||||
m_fPositionX = -475.f;
|
||||
m_fPositionY = 330.f;
|
||||
SizeUpX(495.f);
|
||||
SizeUpY(80.f);
|
||||
m_pVIBufferCom->Set_Cloned(true);
|
||||
m_pVIBufferCom->Set_Pos(-475.f, 330.f, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Pos(m_fPositionX, m_fPositionY, m_fOffSetX, m_fOffSetY, m_iCols);
|
||||
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
Set_QuestType(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
Visible(true);
|
||||
return S_OK;
|
||||
}
|
||||
@@ -99,8 +102,7 @@ void CQuest_Slot::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
Hover();
|
||||
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_iQuestIndex);
|
||||
static_cast<CUIObject*>(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_Info);
|
||||
|
||||
|
||||
m_fTime += fTimeDelta * m_fTimeMult;
|
||||
@@ -139,19 +141,73 @@ HRESULT CQuest_Slot::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
m_pGameInstance->Render_Text(m_Fonts[i].pFontSizeName.c_str(), m_Fonts[i].pQuestName.c_str(), m_Fonts[i].m_fFontSize);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Slot::Font_Size()
|
||||
{
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
m_fFontY = 190 + i * 85.f;
|
||||
if (i == m_iQuestIndex)
|
||||
if (m_Index == -1)
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size30"), m_pInfoInstance->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX - 10.f + m_fX, m_fFontY - 10.F - m_fY));
|
||||
m_Fonts[i].pFontSizeName = TEXT("Font_size20");
|
||||
m_Fonts[i].m_fFontSize = _float2(m_fFontX + m_fX, m_fFontY - m_fY);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(i).pQuestName.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY));
|
||||
if (i == m_Index)
|
||||
{
|
||||
m_Fonts[i].pFontSizeName = TEXT("Font_size30");
|
||||
m_Fonts[i].m_fFontSize = _float2(m_fFontX - 10.f + m_fX, m_fFontY - 10.f - m_fY);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Fonts[i].pFontSizeName = TEXT("Font_size20");
|
||||
m_Fonts[i].m_fFontSize = _float2(m_fFontX + m_fX, m_fFontY - m_fY);
|
||||
}
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CQuest_Slot::Font_Setting(_int Index)
|
||||
{
|
||||
m_Fonts.clear();
|
||||
FontInfo Fonts;
|
||||
|
||||
for (_int i = 0; i < Index; ++i)
|
||||
{
|
||||
m_fFontY = 190 + i * 85.f;
|
||||
Fonts.pFontSizeName = TEXT("Font_size20");
|
||||
Fonts.pQuestName = m_pInfoInstance->Get_Quest(m_Info.iQuestCategory, i).pQuestName.c_str();
|
||||
Fonts.m_fFontSize = _float2(m_fFontX + m_fX, m_fFontY - m_fY);
|
||||
|
||||
m_Fonts.push_back(Fonts);
|
||||
}
|
||||
}
|
||||
|
||||
_int CQuest_Slot::Mousechack(POINT Mouse)
|
||||
{
|
||||
for (_int i = 0; i < m_iQuestCount; ++i)
|
||||
{
|
||||
RECT Box = {
|
||||
long(m_fPositionX - m_fSizeX * 0.5f),
|
||||
long((m_fPositionY - (i * m_fOffSetY)) - m_fSizeY * 0.5f),
|
||||
long(m_fPositionX + m_fSizeX * 0.5f),
|
||||
long((m_fPositionY + (i * m_fOffSetY)) + m_fSizeY * 0.5f) };
|
||||
|
||||
if (PtInRect(&Box, Mouse))
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
_vector CQuest_Slot::Get_WorldPostion()
|
||||
@@ -258,9 +314,14 @@ void CQuest_Slot::Hover()
|
||||
fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
|
||||
fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
|
||||
|
||||
m_iQuestIndex = m_pVIBufferCom->Set_Mouse_Hover(fMouse);
|
||||
POINT Mouse{};
|
||||
Mouse.x = _long(fMouse.x);
|
||||
Mouse.y = _long(fMouse.y);
|
||||
|
||||
m_Index = Mousechack(Mouse);
|
||||
|
||||
if (m_iQuestIndex != -1)
|
||||
m_pVIBufferCom->Set_Hover(m_Index);
|
||||
if (m_Index != -1)
|
||||
{
|
||||
m_bHover = true;
|
||||
}
|
||||
@@ -268,23 +329,28 @@ void CQuest_Slot::Hover()
|
||||
{
|
||||
m_bHover = false;
|
||||
}
|
||||
Font_Size();
|
||||
}
|
||||
|
||||
|
||||
void CQuest_Slot::Set_QuestType(_int Index)
|
||||
{
|
||||
switch (Index)
|
||||
{
|
||||
case 0:
|
||||
m_Info.iQuestCategory = ENUM_CLASS(QUESTSTATE::NONE);
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::NONE));
|
||||
m_pVIBufferCom->Set_Draw(-1);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
m_Info.iQuestCategory = ENUM_CLASS(QUESTSTATE::ACCEPTED);
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::ACCEPTED));
|
||||
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
m_Info.iQuestCategory = ENUM_CLASS(QUESTSTATE::CLEARED);
|
||||
m_iQuestCount = m_pInfoInstance->Get_Quest_Count(ENUM_CLASS(QUESTSTATE::CLEARED));
|
||||
m_pVIBufferCom->Set_Draw(m_iQuestCount);
|
||||
break;
|
||||
@@ -292,6 +358,7 @@ void CQuest_Slot::Set_QuestType(_int Index)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
Font_Setting(m_iQuestCount);
|
||||
}
|
||||
|
||||
CQuest_Slot* CQuest_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
|
||||
@@ -0,0 +1,474 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrak.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "CallBack_Troll_HitReport.h"
|
||||
#include "EffectParts.h"
|
||||
#include "EffectPool.h"
|
||||
#include "Layer.h"
|
||||
#include "TrailObject.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Combat.h"
|
||||
#include "State_Hit.h"
|
||||
#include "Troll_State_Rush.h"
|
||||
#include "State_Throw.h"
|
||||
#pragma endregion
|
||||
|
||||
CRanrak::CRanrak(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CRanrak::CRanrak(const CRanrak& Prototype)
|
||||
: CMonster(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Parts()))
|
||||
return E_FAIL;
|
||||
|
||||
Add_FSM();
|
||||
|
||||
Set_Anim();
|
||||
|
||||
{
|
||||
CFSM::FSM_DESC FSMDesc{};
|
||||
FSMDesc.pStates = &m_States;
|
||||
FSMDesc.pStateMask = &m_iStateMask;
|
||||
|
||||
m_pFSM->Bind_States(FSMDesc);
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, 0.f, 4.f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, 0.f, 4.f, 1.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CRanrak::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Up(DIK_H))
|
||||
{
|
||||
m_ePhase = ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND);
|
||||
m_pFSM->Change_State(FSMSTATE::LAND);
|
||||
}
|
||||
if (m_pGameInstance->Key_Up(DIK_Y))
|
||||
{
|
||||
m_ePhase = ENUM_CLASS(RANRAK_PHASE::PHASE_AIR);
|
||||
m_pFSM->Change_State(FSMSTATE::HOVER);
|
||||
}
|
||||
if (m_pGameInstance->Key_Up(DIK_I))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SKILL);
|
||||
}
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Play_Event();
|
||||
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
{ // 세트
|
||||
m_pCallBack_HitReport->BeginFrame();
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_pCallBack_HitReport->Set_CurrentSlop();
|
||||
}
|
||||
m_vStunTimer.x = 0.f;
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (0.f == m_vStunTimer.x) {
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
//m_pCharacter_Controller->Move(fTimeDelta);
|
||||
}
|
||||
m_vStunTimer.x += fTimeDelta;
|
||||
m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose());
|
||||
if (m_vStunTimer.y < m_vStunTimer.x) {
|
||||
m_pRigidBody->ConvertToCCT(*m_pCharacter_Controller);
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANRAK_SKILL::END); i++)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
void CRanrak::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose());
|
||||
}
|
||||
|
||||
if (true == m_bLookAt) {
|
||||
m_pTransformCom->LookAt_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f);
|
||||
}
|
||||
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vTargetPos) - Get_WorldPostion();
|
||||
vDir = XMVector4Normalize(vDir);
|
||||
_vector vLook = XMVector3Normalize(
|
||||
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
float dot = XMVectorGetX(XMVector3Dot(vLook, vDir));
|
||||
dot = max(-1.f, min(1.f, dot));
|
||||
|
||||
float angle = acosf(dot);
|
||||
m_fDegree = XMConvertToDegrees(angle);
|
||||
|
||||
m_fCross = XMVectorGetY(XMVector3Cross(vLook, vDir));
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Render()
|
||||
{
|
||||
if (!m_bVisible)
|
||||
return S_OK;
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
|
||||
if (true == m_bDrawOutLine) {
|
||||
iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
|
||||
}
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Render_Disolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bDrawOutLine) {
|
||||
Render_OutLine();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CRanrak::Get_LockOnPos()
|
||||
{
|
||||
if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
|
||||
return m_pCharacter_Controller->Get_Position();
|
||||
}
|
||||
else if (nullptr != m_pRigidBody) {
|
||||
return m_pRigidBody->Get_Position();
|
||||
}
|
||||
return Get_WorldPostion();
|
||||
}
|
||||
|
||||
void CRanrak::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (true == m_bDead) {
|
||||
return;
|
||||
}
|
||||
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
pair<_float, _float> damagePair = {};
|
||||
|
||||
if (pEffect_Container != nullptr)
|
||||
{
|
||||
_uint iSkillType = pEffect_Container->Get_SkillType();
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC_THROW)));
|
||||
}
|
||||
|
||||
CMapElement_Interactable* pProps = dynamic_cast<CMapElement_Interactable*>(pOther);
|
||||
|
||||
if (pProps != nullptr)
|
||||
{
|
||||
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
|
||||
}
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
return;
|
||||
}
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
}
|
||||
|
||||
void CRanrak::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
|
||||
Desc.fSpeedPerSec = 10.f;
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
__super::Ready_Components(&Desc);
|
||||
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrak_Model");
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
{ // CCT
|
||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANRAK);
|
||||
Desc.pTransform = m_pTransformCom;
|
||||
Desc.eBodyType = ACTOR::CAPSULE;
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.12f };
|
||||
Desc.fRadius = 1.2f;
|
||||
Desc.fHeight = 1.5f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create();
|
||||
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create();
|
||||
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
|
||||
Desc.fWalkableSlope = 45.f;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANRAK);
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Ready_Parts()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrak* CRanrak::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrak* pInstance = new CRanrak(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrak");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CRanrak::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrak* pInstance = new CRanrak(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrak");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrak::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
if (nullptr != m_pCallBack_Behavior) {
|
||||
m_pCallBack_Behavior->Finalize();
|
||||
}
|
||||
if (nullptr != m_pCallBack_HitReport) {
|
||||
m_pCallBack_HitReport->Finalize();
|
||||
}
|
||||
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CRanrak::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Ranrak")) {
|
||||
__super::Describe_Entity();
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -0,0 +1,948 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrak.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Player.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
#include "State_IdleBreak.h"
|
||||
#include "State_Land.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Ground.h"
|
||||
#include "State_Combat.h"
|
||||
#include "State_Hover.h"
|
||||
#include "State_Fly.h"
|
||||
#include "State_FireBreath.h"
|
||||
#include "State_FireSweep.h"
|
||||
#include "State_FireBall.h"
|
||||
#include "State_Swipe.h"
|
||||
#include "State_Skill.h"
|
||||
#include "State_Pulse.h"
|
||||
#include "State_Tucked.h"
|
||||
#include "State_Hit.h"
|
||||
#include "State_Dead.h"
|
||||
#pragma endregion
|
||||
|
||||
|
||||
void CRanrak::Behavior_IdleEnter()
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::IDLE);
|
||||
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::HOVER_LOOP];
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_IdleExitCheck()
|
||||
{
|
||||
if (m_fTargetDistance <= 30.f && m_fTargetDistance !=0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_IdleExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_IdleBreakEnter()
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::IDLEBREAK);
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_IdleBreakExitCheck()
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_IdleBreakExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::IDLEBREAK);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_MoveEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::MOVE);
|
||||
m_bLookAt = true;
|
||||
m_pFSM->Enable_State(FSMSTATE::JOG);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_fTargetDistance <= 30.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_MoveExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_CombatEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::COMBAT);
|
||||
m_bLookAt = true;
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_CombatExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_fTargetDistance > 40.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance > 35.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (m_fTargetDistance <= 30.f && m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBREATH)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::FIREBREATH);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 30.f && m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBALL)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::FIREBALL);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 30.f && m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIRESWEEP)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::FIRESWEEP);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 30.f && m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::SWIPE)] <= 0.f && m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SWIPE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 30.f && m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::PULSE)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::PULSE);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 30.f && m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::TUCKED)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::TUCKED);
|
||||
return E_FAIL;
|
||||
}
|
||||
else {
|
||||
if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_AIR)) {
|
||||
m_pFSM->Change_State(FSMSTATE::HOVER);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND)) {
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::TUCKED| FSMSTATE::PULSE))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::LAND);
|
||||
}
|
||||
else {
|
||||
m_pFSM->Change_State(FSMSTATE::GROUND);
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_CombatExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_GroundEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::GROUND);
|
||||
m_bLookAt = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::IDLE_G];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_GroundExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_fTargetDistance <= 30.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_GroundExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::GROUND);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_HoverEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::HOVER);
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HOVER_DASH_LEFT];
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HOVER_DASH_RIGHT];
|
||||
break;
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_HoverExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_HoverExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::HOVER);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FlyEnter()
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_FlyExitCheck(_float fTimeDelta)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FlyExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FLY);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FireBreathEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::FIREBREATH);
|
||||
if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_AIR))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBREATH)]; },
|
||||
0.9f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); },
|
||||
0.9f);
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_G];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBREATH)];
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_FireBreathExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FireBreathExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FIREBREATH);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FireSweepEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::FIRESWEEP);
|
||||
if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_AIR))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_WINDUP_A];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIRESWEEP)]; },
|
||||
0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); },
|
||||
0.95f);
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIRESWEEP)];
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_FireSweepExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FireSweepExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FIRESWEEP);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FireBallEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::FIREBALL);
|
||||
if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_AIR))
|
||||
{
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
|
||||
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL1_A];
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_A];
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
|
||||
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL1_G];
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_G];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBALL)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::FIREBALL)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_FireBallExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_FireBallExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FIREBALL);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_SwipeEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::SWIPE);
|
||||
if (m_ePhase == ENUM_CLASS(RANRAK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
|
||||
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::GROUND_SWIPE_L];
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::GROUND_SWIPE_R];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::SWIPE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_SwipeExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_SwipeExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SWIPE);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_SkillEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::SKILL);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_SkillExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::HOVER);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_SkillExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SKILL);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_PulseEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::PULSE);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::PULSE];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::PULSE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_PulseExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_PulseExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::PULSE);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_TuckedEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::TUCKED);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUCKED];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::TUCKED)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::TUCKED)];
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
m_fTuckedTime += fTimeDelta;
|
||||
if (m_fTuckedTime >= 5.f && iCurrAnimIndex == m_Animation[STATEANIM::TUCKED].first)
|
||||
{
|
||||
m_fTuckedTime = 0.f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_TuckedExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_LandEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::LAND);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_LandExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::GROUND);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_LandExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::LAND);
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_HitEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::HIT);
|
||||
|
||||
m_bLookAt = false;
|
||||
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD];
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
{
|
||||
if (m_fHitDegree >= 90.f)
|
||||
{
|
||||
_int iRandIndex = m_pGameInstance->Real_Random_Int(0, 3);
|
||||
switch (iRandIndex)
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD];
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD2];
|
||||
break;
|
||||
case 2:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD3];
|
||||
break;
|
||||
case 3:
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_BWD4];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (m_fHitDegree >= 45.f) {
|
||||
|
||||
if (m_fHitCross > 0.f) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_L];
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_R];
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_FWD];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS];
|
||||
break;
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_HitExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||
m_bLookAt = true;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_DeadEnter()
|
||||
{
|
||||
m_bLookAt = false;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::DEAD);
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
_bool bStrongerKnockDown = { false };
|
||||
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case STATEANIM::KNOCKDOWN_FWD:
|
||||
bStrongerKnockDown = true;
|
||||
break;
|
||||
case STATEANIM::TUMBLE2:
|
||||
bStrongerKnockDown = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_float fabsRadius = fabsf(m_fHitRadius);
|
||||
_uint iState = { UINT_MAX };
|
||||
|
||||
if (fabsRadius > 135.f) {
|
||||
iState = STATEANIM::DEAD_FWD;
|
||||
}
|
||||
else if (fabsRadius < 45.f) {
|
||||
iState = STATEANIM::DEAD_BWD;
|
||||
}
|
||||
else {
|
||||
if (m_fHitRadius < 0.f) {
|
||||
iState = STATEANIM::DEAD_L;
|
||||
}
|
||||
else {
|
||||
iState = STATEANIM::DEAD_R;
|
||||
}
|
||||
}
|
||||
pairAnimInfo = m_Animation[iState + bStrongerKnockDown];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CRanrak::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
|
||||
return E_PENDING;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrak::Behavior_DeadExit()
|
||||
{
|
||||
m_bDead = true;
|
||||
}
|
||||
|
||||
|
||||
void CRanrak::Add_FSM()
|
||||
{
|
||||
#pragma region Behavior_Movement_NotFocus
|
||||
{
|
||||
CState_Idle::STATE_IDLE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_IdleExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_IdleBreak::STATE_IDLEBREAK_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_IdleBreakEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleBreakExitCheck(); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_IdleBreakExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::IDLEBREAK, CState_IdleBreak::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Move::STATE_MOVE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Ground::STATE_GROUND_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_GroundEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_GroundExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_GroundExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::GROUND, CState_Ground::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Hover
|
||||
|
||||
{
|
||||
CState_Hover::STATE_HOVER_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_HoverEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HoverExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_HoverExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::HOVER, CState_Hover::Create(&Desc));
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Fly
|
||||
|
||||
{
|
||||
CState_Fly::STATE_FLY_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_FlyEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FlyExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_FlyExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FLY, CState_Fly::Create(&Desc));
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
#pragma region Behavior_Combat_NotFocus
|
||||
{
|
||||
CState_Combat::STATE_COMBAT_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_CombatExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc));
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
CState_FireBreath::STATE_FIREBREATH_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_FireBreathEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FireBreathExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_FireBreathExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FIREBREATH, CState_FireBreath::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_FireSweep::STATE_FIRESWEEP_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_FireSweepEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FireSweepExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_FireSweepExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FIRESWEEP, CState_FireSweep::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_FireBall::STATE_FIREBALL_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_FireBallEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FireBallExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_FireBallExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::FIREBALL, CState_FireBall::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Swipe::STATE_SWIPE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_SwipeEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_SwipeExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_SwipeExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::SWIPE, CState_Swipe::Create(&Desc));
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
CState_Skill::STATE_SKILL_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_SkillEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_SkillExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_SkillExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::SKILL, CState_Skill::Create(&Desc));
|
||||
}
|
||||
{
|
||||
CState_Pulse::STATE_PULSE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_PulseEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_PulseExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_PulseExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::PULSE, CState_Pulse::Create(&Desc));
|
||||
}
|
||||
|
||||
{
|
||||
CState_Tucked::STATE_TUCKED_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_TuckedEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_TuckedExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_TuckedExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::TUCKED, CState_Tucked::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Land
|
||||
{
|
||||
CState_Land::STATE_LAND_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_LandEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_LandExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_LandExit(); };
|
||||
m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
|
||||
|
||||
#pragma region Hit
|
||||
{
|
||||
CState_Hit::STATE_HIT_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Dead
|
||||
{
|
||||
CState_Dead::STATE_DEAD_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_DeadEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
m_bDead = true;
|
||||
}
|
||||
};
|
||||
Desc.vDeadTimer.x = FLT_EPSILON5;
|
||||
Desc.vDeadTimer.y = 2.f;
|
||||
m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
|
||||
void CRanrak::Set_Anim()
|
||||
{
|
||||
m_Animation[STATEANIM::IDLE_G] = { 52,true };
|
||||
m_Animation[STATEANIM::IDLE_BREAK1] = { 27,false };
|
||||
m_Animation[STATEANIM::IDLE_BREAK2] = { 28,false };
|
||||
|
||||
m_Animation[STATEANIM::HOVER_LOOP] = { 29,true };
|
||||
m_Animation[STATEANIM::HOVER_DASH_BWD] = { 23,false };
|
||||
m_Animation[STATEANIM::HOVER_DASH_FWD] = { 24,false };
|
||||
m_Animation[STATEANIM::HOVER_DASH_LEFT] = { 25,false };
|
||||
m_Animation[STATEANIM::HOVER_DASH_RIGHT] = { 26,false };
|
||||
|
||||
m_Animation[STATEANIM::FIREBREATH_A] = { 9,false };
|
||||
m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A] = { 10,false };
|
||||
m_Animation[STATEANIM::FIREBREATH_WINDUP_A] = { 11,false };
|
||||
|
||||
m_Animation[STATEANIM::FIRESWEEP_A] = { 15,false };
|
||||
m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A] = { 16,false };
|
||||
m_Animation[STATEANIM::FIRESWEEP_WINDUP_A] = { 17,false };
|
||||
|
||||
m_Animation[STATEANIM::FIREBALL1_A] = { 0,false };
|
||||
m_Animation[STATEANIM::FIREBALL2_A] = { 1,false };
|
||||
|
||||
m_Animation[STATEANIM::GROUND_SWIPE_L] = { 3,false };
|
||||
m_Animation[STATEANIM::GROUND_SWIPE_R] = { 4,false };
|
||||
|
||||
m_Animation[STATEANIM::FIREBREATH_G] = { 6,false };
|
||||
|
||||
m_Animation[STATEANIM::FIRESWEEP_G] = { 7,false };
|
||||
|
||||
m_Animation[STATEANIM::FIREBALL1_G] = { 2,false };
|
||||
m_Animation[STATEANIM::FIREBALL2_G] = { 5,false };
|
||||
|
||||
m_Animation[STATEANIM::PULSE] = { 33,false };
|
||||
|
||||
m_Animation[STATEANIM::TUCKED] = { 21,true };
|
||||
m_Animation[STATEANIM::FLY_TO_HOVER] = { 22,false };
|
||||
|
||||
m_Animation[STATEANIM::LAND] = { 32,false };
|
||||
|
||||
m_Animation[STATEANIM::SKILL] = { 12,false };
|
||||
|
||||
//12
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_AncientSpell.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_AncientSpell::CState_AncientSpell()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_AncientSpell::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_AncientSpell::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_AncientSpell::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_AncientSpell::Initialize(STATE_ANCIENTSPELL_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_AncientSpell* CState_AncientSpell::Create(STATE_ANCIENTSPELL_DESC* pDesc)
|
||||
{
|
||||
CState_AncientSpell* pInstance = new CState_AncientSpell;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_AncientSpell::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_AncientSpell::Describe_Entity()
|
||||
{
|
||||
}
|
||||
+10
-10
@@ -1,19 +1,19 @@
|
||||
#include "pch.h"
|
||||
#include "State_Broom_Hover.h"
|
||||
#include "State_FireBall.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Broom_Hover::CState_Broom_Hover()
|
||||
CState_FireBall::CState_FireBall()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Broom_Hover::Enter()
|
||||
void CState_FireBall::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Broom_Hover::Update(_float fTimeDelta)
|
||||
HRESULT CState_FireBall::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
@@ -27,12 +27,12 @@ HRESULT CState_Broom_Hover::Update(_float fTimeDelta)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Broom_Hover::Exit()
|
||||
void CState_FireBall::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Broom_Hover::Initialize(STATE_BROOM_HOVER_DESC* pDesc)
|
||||
HRESULT CState_FireBall::Initialize(STATE_FIREBALL_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
@@ -45,20 +45,20 @@ HRESULT CState_Broom_Hover::Initialize(STATE_BROOM_HOVER_DESC* pDesc)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Broom_Hover* CState_Broom_Hover::Create(STATE_BROOM_HOVER_DESC* pDesc)
|
||||
CState_FireBall* CState_FireBall::Create(STATE_FIREBALL_DESC* pDesc)
|
||||
{
|
||||
CState_Broom_Hover* pInstance = new CState_Broom_Hover;
|
||||
CState_FireBall* pInstance = new CState_FireBall;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Broom_Hover::Free()
|
||||
void CState_FireBall::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Broom_Hover::Describe_Entity()
|
||||
void CState_FireBall::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_FireBreath.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_FireBreath::CState_FireBreath()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_FireBreath::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_FireBreath::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_FireBreath::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_FireBreath::Initialize(STATE_FIREBREATH_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_FireBreath* CState_FireBreath::Create(STATE_FIREBREATH_DESC* pDesc)
|
||||
{
|
||||
CState_FireBreath* pInstance = new CState_FireBreath;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_FireBreath::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_FireBreath::Describe_Entity()
|
||||
{
|
||||
}
|
||||
+10
-10
@@ -1,19 +1,19 @@
|
||||
#include "pch.h"
|
||||
#include "State_Broom_Fly.h"
|
||||
#include "State_FireSweep.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Broom_Fly::CState_Broom_Fly()
|
||||
CState_FireSweep::CState_FireSweep()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Broom_Fly::Enter()
|
||||
void CState_FireSweep::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Broom_Fly::Update(_float fTimeDelta)
|
||||
HRESULT CState_FireSweep::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
@@ -27,12 +27,12 @@ HRESULT CState_Broom_Fly::Update(_float fTimeDelta)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Broom_Fly::Exit()
|
||||
void CState_FireSweep::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Broom_Fly::Initialize(STATE_BROOM_FLY_DESC* pDesc)
|
||||
HRESULT CState_FireSweep::Initialize(STATE_FIRESWEEP_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
@@ -45,20 +45,20 @@ HRESULT CState_Broom_Fly::Initialize(STATE_BROOM_FLY_DESC* pDesc)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Broom_Fly* CState_Broom_Fly::Create(STATE_BROOM_FLY_DESC* pDesc)
|
||||
CState_FireSweep* CState_FireSweep::Create(STATE_FIRESWEEP_DESC* pDesc)
|
||||
{
|
||||
CState_Broom_Fly* pInstance = new CState_Broom_Fly;
|
||||
CState_FireSweep* pInstance = new CState_FireSweep;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Broom_Fly::Free()
|
||||
void CState_FireSweep::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Broom_Fly::Describe_Entity()
|
||||
void CState_FireSweep::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Fly.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Fly::CState_Fly()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Fly::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Fly::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Fly::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Fly::Initialize(STATE_FLY_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Fly* CState_Fly::Create(STATE_FLY_DESC* pDesc)
|
||||
{
|
||||
CState_Fly* pInstance = new CState_Fly;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Fly::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Fly::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
#include "pch.h"
|
||||
#include "State_Ground.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Ground::CState_Ground()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Ground::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Ground::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Ground::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Ground::Initialize(STATE_GROUND_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Ground* CState_Ground::Create(STATE_GROUND_DESC* pDesc)
|
||||
{
|
||||
CState_Ground* pInstance = new CState_Ground;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Ground::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Ground::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Hover.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Hover::CState_Hover()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Hover::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Hover::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Hover::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Hover::Initialize(STATE_HOVER_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Hover* CState_Hover::Create(STATE_HOVER_DESC* pDesc)
|
||||
{
|
||||
CState_Hover* pInstance = new CState_Hover;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Hover::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Hover::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Pulse.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Pulse::CState_Pulse()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Pulse::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Pulse::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Pulse::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Pulse::Initialize(STATE_PULSE_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Pulse* CState_Pulse::Create(STATE_PULSE_DESC* pDesc)
|
||||
{
|
||||
CState_Pulse* pInstance = new CState_Pulse;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Pulse::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Pulse::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Skill.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Skill::CState_Skill()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Skill::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Skill::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Skill::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Skill::Initialize(STATE_SKILL_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Skill* CState_Skill::Create(STATE_SKILL_DESC* pDesc)
|
||||
{
|
||||
CState_Skill* pInstance = new CState_Skill;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Skill::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Skill::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Slide.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Slide::CState_Slide()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Slide::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Slide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (FAILED(__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Slide::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Slide::Initialize(STATE_SLIDE_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Slide* CState_Slide::Create(STATE_SLIDE_DESC* pDesc)
|
||||
{
|
||||
CState_Slide* pInstance = new CState_Slide;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Slide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Slide::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Swipe.h"
|
||||
#include "Unit.h"
|
||||
|
||||
|
||||
CState_Swipe::CState_Swipe()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Swipe::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Swipe::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Swipe::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Swipe::Initialize(STATE_SWIPE_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Swipe* CState_Swipe::Create(STATE_SWIPE_DESC* pDesc)
|
||||
{
|
||||
CState_Swipe* pInstance = new CState_Swipe;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Swipe::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Swipe::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "pch.h"
|
||||
#include "State_Tucked.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Unit.h"
|
||||
|
||||
CState_Tucked::CState_Tucked()
|
||||
:CState_Root()
|
||||
{
|
||||
}
|
||||
|
||||
void CState_Tucked::Enter()
|
||||
{
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
HRESULT CState_Tucked::Update(_float fTimeDelta)
|
||||
{
|
||||
if (nullptr != m_funcPriorityUpdate) {
|
||||
m_funcPriorityUpdate(fTimeDelta);
|
||||
}
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CState_Tucked::Exit()
|
||||
{
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
HRESULT CState_Tucked::Initialize(STATE_TUCKED_DESC* pDesc)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CState_Tucked* CState_Tucked::Create(STATE_TUCKED_DESC* pDesc)
|
||||
{
|
||||
CState_Tucked* pInstance = new CState_Tucked;
|
||||
if (FAILED(pInstance->Initialize(pDesc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CState_Tucked::Free()
|
||||
{
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
void CState_Tucked::Describe_Entity()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,295 @@
|
||||
#include "pch.h"
|
||||
#include "Stupefy.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CStupefy::CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CStupefy::CStupefy(const CStupefy& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stupefy")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::STUPEFY);
|
||||
|
||||
m_wstrEffectName = L"Stupefy";
|
||||
|
||||
m_pProjectile0 = Get_PartObject<CEffectParts>("Stupefy_PJ0");
|
||||
SAFE_ADDREF(m_pProjectile0);
|
||||
|
||||
m_pProjectile1 = Get_PartObject<CEffectParts>("Stupefy_PJ1");
|
||||
SAFE_ADDREF(m_pProjectile1);
|
||||
|
||||
m_pStupefy_PJ_PT = Get_PartObject<CEffectParts>("Stupefy_PJ_PT");
|
||||
SAFE_ADDREF(m_pStupefy_PJ_PT);
|
||||
|
||||
m_fDuration = 4.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CStupefy::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pStupefy_PJ_PT->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CStupefy::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
m_pStupefy_PJ_PT->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CStupefy::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion());
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
|
||||
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
|
||||
CEffectParts* pStupefy_PJ0 = Get_PartObject<CEffectParts>("Stupefy_PJ0");
|
||||
CEffectParts* pStupefy_PJ1 = Get_PartObject<CEffectParts>("Stupefy_PJ1");
|
||||
CEffectParts* pWand_Distortion = Get_PartObject<CEffectParts>("Wand_Distortion");
|
||||
|
||||
CEffectParts* pStupefy_Light_Long = Get_PartObject<CEffectParts>("Stupefy_Light_Long");
|
||||
CEffectParts* pBodyFlare = Get_PartObject<CEffectParts>("BodyFlare");
|
||||
|
||||
CEffectParts* pStupefy_Smoke = Get_PartObject<CEffectParts>("Stupefy_Smoke");
|
||||
|
||||
pStupefy_PJ0->Set_Visible(true);
|
||||
pStupefy_PJ1->Set_Visible(true);
|
||||
pWand_Distortion->Set_Visible(true);
|
||||
pStupefy_Light_Long->Set_Visible(true);
|
||||
pBodyFlare->Set_Visible(true);
|
||||
pStupefy_Smoke->Set_Visible(true);
|
||||
m_pStupefy_PJ_PT->Set_Visible(true);
|
||||
|
||||
_vector vDirection = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
/*완드 포지션*/
|
||||
|
||||
_vector vWandPos = pWand->Get_WorldPostion();
|
||||
|
||||
pStupefy_PJ0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
pStupefy_PJ1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
|
||||
m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
//
|
||||
/*몸통 포지션*/
|
||||
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position() + vDirection * -0.1f;
|
||||
|
||||
pStupefy_Light_Long->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
pBodyFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
pWand_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
/*발 포지션*/
|
||||
|
||||
_vector vPlayerFootPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
pStupefy_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f));
|
||||
|
||||
|
||||
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
|
||||
_vector vStartPos = vWandPos;
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
|
||||
m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
if (nullptr != m_Info.pUnit) {
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
}
|
||||
else {
|
||||
// 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
_float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos));
|
||||
|
||||
CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component<CTransform>();
|
||||
CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component<CTransform>();
|
||||
|
||||
_vector vUp = XMVector3Normalize(vDirection) * fLength;
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight));
|
||||
_vector vPos = vPlayerPos;
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CStupefy::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CStupefy* CStupefy::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CStupefy* pInstance = new CStupefy(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CStupefy");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CStupefy::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CStupefy* pInstance = new CStupefy(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CStupefy");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CStupefy::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
CEffectParts* pStupefy_Hit_PT = Get_PartObject<CEffectParts>("Stupefy_Hit_PT");
|
||||
CEffectParts* pStupefy_Circle0 = Get_PartObject<CEffectParts>("Stupefy_Circle0");
|
||||
CEffectParts* pHitFlare = Get_PartObject<CEffectParts>("HitFlare");
|
||||
|
||||
|
||||
pStupefy_Hit_PT->Set_Visible(true);
|
||||
pStupefy_Hit_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pStupefy_Circle0->Set_Visible(true);
|
||||
pStupefy_Circle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pHitFlare->Set_Visible(true);
|
||||
pHitFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
|
||||
m_pProjectile0->Set_Visible(false);
|
||||
m_pProjectile1->Set_Visible(false);
|
||||
|
||||
/*맞는순간 위로 올리기*/
|
||||
m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f));
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CStupefy::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pProjectile0);
|
||||
SAFE_RELEASE(m_pProjectile1);
|
||||
SAFE_RELEASE(m_pStupefy_PJ_PT);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CStupefy::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CStupefy::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -402,6 +402,8 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
_int ID = m_pStat->Get_Stat().iObjectID;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
|
||||
return;
|
||||
}
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
@@ -106,9 +106,10 @@ HRESULT CTroll::Behavior_IdleBreakExitCheck()
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()){
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_IdleBreakExit()
|
||||
@@ -201,9 +202,12 @@ HRESULT CTroll::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
|
||||
|
||||
if (m_fTargetDistance <= 6.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_MoveExit()
|
||||
@@ -237,29 +241,35 @@ HRESULT CTroll::Behavior_CombatExitCheck(_float fTimeDelta)
|
||||
if (m_fTargetDistance <= 6.f && (m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] <= 0.f))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SLAM);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 6.f && (m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] <= 0.f))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BACKHAND_SWING);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 6.f && (m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SWING)] <= 0.f))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SWING);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 15.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::THROWROCK)] <= 0.f)
|
||||
else if (m_fTargetDistance <= 15.f &&m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::THROWROCK)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::THROW_ROCK);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 18.f && m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::RUSH)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::RUSH);
|
||||
return E_FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_CombatExit()
|
||||
@@ -326,8 +336,9 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta)
|
||||
{
|
||||
m_bLookAt = true;
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_RushExit()
|
||||
@@ -391,8 +402,9 @@ HRESULT CTroll::Behavior_ThrowExitCheck(_float fTimeDelta)
|
||||
{
|
||||
m_bLookAt = true;
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_ThrowExit()
|
||||
|
||||
@@ -88,7 +88,7 @@ HRESULT CUnified::Ready_Components(void* pArg)
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_GameObject_SM_HW_HogwartsShell_B"),
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, TEXT("Prototype_GameObject_SM_HW_HogwartsShell_B"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -40,6 +40,9 @@ class CAccio final : public CEffect_Container
|
||||
class CTrailObject* m_pRope_Trail = { nullptr };
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CEffectParts* m_pRotate0 = { nullptr };
|
||||
class CEffectParts* m_pRotate1 = { nullptr };
|
||||
class CEffectParts* m_pAccio_PT = { nullptr };
|
||||
class CEffectParts* m_pAccio_Distortion = { nullptr };
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 타게팅 된 위치
|
||||
@@ -50,9 +53,9 @@ class CAccio final : public CEffect_Container
|
||||
CCharacter_Controller* m_pEnemyCCT = { nullptr };
|
||||
|
||||
_float m_fAccRotateTime = {};
|
||||
_float m_fTurnSpeed = { 65.f };
|
||||
_float m_fRange = { 1.f };
|
||||
_float m_fAttenuation = { 65.f };
|
||||
_float m_fTurnSpeed = { 55.f };
|
||||
_float m_fRange = { 0.7f };
|
||||
_float m_fAttenuation = { 85.f };
|
||||
_bool m_isDissolve = { true };
|
||||
_bool m_isReverse = { false };
|
||||
_int m_iLoopTime = { 5 };
|
||||
|
||||
@@ -181,8 +181,8 @@ namespace Client
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float2 vPadding0 = {};
|
||||
_float fModelDistortIntensity = {};
|
||||
_float vPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
@@ -202,13 +202,15 @@ namespace Client
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vRimLightColor = {};
|
||||
|
||||
_float4 vPadding4 = {};
|
||||
_float2 vMaskOffset = {};
|
||||
_float2 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isRimLight = {};
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isPadding4 = {};
|
||||
|
||||
}EFFECT_INFO;
|
||||
|
||||
typedef struct tagTrailInfo
|
||||
|
||||
@@ -36,7 +36,7 @@ class CGoblin final : public CMonster
|
||||
private:
|
||||
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CEnemy_Detection* m_pDetection = { nullptr };
|
||||
//CEnemy_Detection* m_pDetection = { nullptr };
|
||||
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
|
||||
@@ -37,7 +37,7 @@ class CGoblin_Mage final : public CMonster
|
||||
private:
|
||||
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CEnemy_Detection* m_pDetection = { nullptr };
|
||||
//CEnemy_Detection* m_pDetection = { nullptr };
|
||||
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
|
||||
@@ -67,7 +67,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
|
||||
#pragma endregion
|
||||
#pragma region QuestINFO
|
||||
QUESTINFO Get_Quest(_int QuestID);
|
||||
QUESTINFO Get_Quest(_int QuestType, _int QuestID);
|
||||
_int Get_Quest_Count(_int Index);
|
||||
const vector<QUESTINFO>& Get_AllQuest() const;
|
||||
const vector<QUESTINFO>& Get_ClearQuest() const;
|
||||
|
||||
@@ -22,6 +22,9 @@ class CLevel_Field final : public CLevel
|
||||
virtual HRESULT Initialize() override;
|
||||
HRESULT Initialize(void* pArg);
|
||||
HRESULT Ready_Lights();
|
||||
HRESULT Ready_Camera();
|
||||
HRESULT Ready_Layer_SkyBox();
|
||||
HRESULT Ready_Background();
|
||||
HRESULT Ready_Markers();
|
||||
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Camera();
|
||||
|
||||
@@ -35,6 +35,8 @@ class CMapElement abstract : public CGameObject
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
_uint m_iMaxLodLevel = {};
|
||||
_uint m_iLodIndex = {};
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "MapElement.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMapElement_Static : public CMapElement
|
||||
{
|
||||
private:
|
||||
CMapElement_Static(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMapElement_Static(const CMapElement_Static& rhs);
|
||||
virtual ~CMapElement_Static() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
_bool m_bReadyToCreatePhysX = { false };
|
||||
_bool m_bConverted = { false };
|
||||
_float m_fRadius = {};
|
||||
|
||||
vector<vector<CRigidBody_Static*>> m_RigidBodies;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
void ReadyForPhysX();
|
||||
void ConvertToPhysX();
|
||||
|
||||
public:
|
||||
static CMapElement_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -160,6 +160,10 @@ class CPlayer final : public CUnit
|
||||
HRESULT Behavior_DodgeExitCheck(_float fTimeDelta);
|
||||
void Behavior_DodgeExit();
|
||||
|
||||
void Behavior_SlideEnter();
|
||||
HRESULT Behavior_SlideExitCheck(_float fTimeDelta);
|
||||
void Behavior_SlideExit();
|
||||
|
||||
void Behavior_CombatEnter();
|
||||
HRESULT Behavior_CombatExitCheck();
|
||||
void Behavior_CombatExit();
|
||||
@@ -171,6 +175,10 @@ class CPlayer final : public CUnit
|
||||
void Behavior_SpellEnter();
|
||||
HRESULT Behavior_SpellExitCheck();
|
||||
void Behavior_SpellExit();
|
||||
|
||||
void Behavior_AncientSpellEnter();
|
||||
HRESULT Behavior_AncientSpellExitCheck();
|
||||
void Behavior_AncientSpellExit();
|
||||
|
||||
void Behavior_ShieldEnter();
|
||||
HRESULT Behavior_ShieldExitCheck();
|
||||
|
||||
@@ -31,6 +31,7 @@ class CProtego final : public CEffect_Container
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pSphere = { nullptr };
|
||||
class CEffectParts* m_pSphereLay = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
_float m_fSizeAccTime = {};
|
||||
_float m_fAmountSize = {};
|
||||
|
||||
@@ -25,7 +25,7 @@ class CQuest_Data final : public CBase
|
||||
void Update_AcceptQuest(_int MonsterIndex = -1);
|
||||
|
||||
public:
|
||||
QUESTINFO Get_Quest(_int QuestID);
|
||||
QUESTINFO Get_Quest(_int QuestType, _int QuestID);
|
||||
_int Get_Count(_int Index);
|
||||
const vector<QUESTINFO>& Get_AllQuest() const;
|
||||
const vector<QUESTINFO>& Get_ClearQuest() const;
|
||||
|
||||
@@ -32,7 +32,7 @@ class CQuest_Entry_Line final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
void Set_Hover(void* pArg);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
@@ -41,6 +41,7 @@ class CQuest_Entry_Line final : public CElementObject
|
||||
|
||||
_int m_iColor = { false };
|
||||
_int m_iQuest_Index{};
|
||||
_int m_iCurrentQuest{};
|
||||
|
||||
public:
|
||||
static CQuest_Entry_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -32,7 +32,7 @@ class CQuest_Info final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
void Set_Hover(void* pArg);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
@@ -46,7 +46,9 @@ class CQuest_Info final : public CElementObject
|
||||
_float m_fOriginPerviewSize{};
|
||||
_float m_fPreviewOffSet{};
|
||||
_float4 m_vHeaderBack{};
|
||||
|
||||
_int m_iQuest_Index{};
|
||||
_int m_iCurrentQuest{};
|
||||
|
||||
_int m_iPerQuestIndex{};
|
||||
public:
|
||||
|
||||
@@ -32,7 +32,7 @@ class CQuest_Info_Header final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
void Set_Hover(void* pArg);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
@@ -42,6 +42,7 @@ class CQuest_Info_Header final : public CElementObject
|
||||
|
||||
_int m_iColor = true;
|
||||
_int m_iQuest_Index{};
|
||||
_int m_iCurrentQuest{};
|
||||
public:
|
||||
static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -32,7 +32,7 @@ class CQuest_Info_Line final : public CElementObject
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Hover(_int Index);
|
||||
void Set_Hover(void* pArg);
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
@@ -41,7 +41,7 @@ class CQuest_Info_Line final : public CElementObject
|
||||
|
||||
_int m_iColor = { false };
|
||||
_int m_iQuest_Index{};
|
||||
|
||||
_int m_iCurrentQuest{};
|
||||
public:
|
||||
static CQuest_Info_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -13,6 +13,12 @@ NS_BEGIN(Client)
|
||||
|
||||
class CQuest_Slot final : public CElementObject
|
||||
{
|
||||
struct FontInfo
|
||||
{
|
||||
_wstring pFontSizeName;
|
||||
_wstring pQuestName;
|
||||
_float2 m_fFontSize{};
|
||||
};
|
||||
private:
|
||||
CQuest_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CQuest_Slot(const CQuest_Slot& rhs);
|
||||
@@ -37,6 +43,10 @@ class CQuest_Slot final : public CElementObject
|
||||
|
||||
private:
|
||||
void Hover();
|
||||
void Font_Size();
|
||||
void Font_Setting(_int Index);
|
||||
|
||||
_int Mousechack(POINT Mouse);
|
||||
|
||||
public:
|
||||
void Set_QuestType(_int Index);
|
||||
@@ -46,14 +56,20 @@ class CQuest_Slot final : public CElementObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
CURRENTQUESTSECETINFO m_Info;
|
||||
_float m_fOffSetX{};
|
||||
_float m_fOffSetY{};
|
||||
_uint m_iCols{};
|
||||
_int m_iColor{};
|
||||
|
||||
_int m_iQuestIndex{};
|
||||
_int m_iCurrentQeustClick{};
|
||||
_int m_iQuestCount{};
|
||||
|
||||
_float m_fPositionX{};
|
||||
_float m_fPositionY{};
|
||||
|
||||
_int m_Index{};
|
||||
vector<FontInfo> m_Fonts;
|
||||
public:
|
||||
static CQuest_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Monster.h"
|
||||
#include "CallBack_Monster_Behavior.h"
|
||||
#include "CallBack_Monster_HitReport.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrak final : public CMonster
|
||||
{
|
||||
enum class RANRAK_SKILL
|
||||
{
|
||||
FIREBREATH,
|
||||
FIRESWEEP,
|
||||
FIREBALL,
|
||||
SWIPE,
|
||||
PULSE,
|
||||
TUCKED,
|
||||
END
|
||||
};
|
||||
|
||||
enum class RANRAK_PHASE
|
||||
{
|
||||
PHASE_AIR,
|
||||
PHASE_GROUND,
|
||||
END
|
||||
};
|
||||
private:
|
||||
CRanrak(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrak(const CRanrak& Prototype);
|
||||
virtual ~CRanrak() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
virtual _vector Get_LockOnPos() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
|
||||
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
||||
|
||||
private:
|
||||
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
_float2 m_vStunTimer = { 0.f, 4.f };
|
||||
_uint iIndex;
|
||||
DAMAGE_INFO m_DamageInfo;
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CRanrak* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
private:
|
||||
virtual void Add_FSM();
|
||||
virtual void Set_Anim();
|
||||
|
||||
_int m_ePhase = ENUM_CLASS(RANRAK_PHASE::PHASE_AIR);
|
||||
|
||||
_float m_fSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::END)] = {};
|
||||
_float m_fMaxSkillCoolTime[ENUM_CLASS(RANRAK_SKILL::END)] = { 40.f,40.f ,15.f,40.f,40.f,40.f };
|
||||
|
||||
_float m_fDegree = {};
|
||||
_float m_fCross = {};
|
||||
_float m_fTuckedTime = {};
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
void Behavior_IdleExit();
|
||||
|
||||
void Behavior_IdleBreakEnter();
|
||||
HRESULT Behavior_IdleBreakExitCheck();
|
||||
void Behavior_IdleBreakExit();
|
||||
|
||||
void Behavior_MoveEnter();
|
||||
HRESULT Behavior_MoveExitCheck(_float fTimeDelta);
|
||||
void Behavior_MoveExit();
|
||||
|
||||
void Behavior_CombatEnter();
|
||||
HRESULT Behavior_CombatExitCheck(_float fTimeDelta);
|
||||
void Behavior_CombatExit();
|
||||
|
||||
void Behavior_GroundEnter();
|
||||
HRESULT Behavior_GroundExitCheck(_float fTimeDelta);
|
||||
void Behavior_GroundExit();
|
||||
|
||||
void Behavior_HoverEnter();
|
||||
HRESULT Behavior_HoverExitCheck(_float fTimeDelta);
|
||||
void Behavior_HoverExit();
|
||||
|
||||
void Behavior_FlyEnter();
|
||||
HRESULT Behavior_FlyExitCheck(_float fTimeDelta);
|
||||
void Behavior_FlyExit();
|
||||
|
||||
void Behavior_FireBreathEnter();
|
||||
HRESULT Behavior_FireBreathExitCheck(_float fTimeDelta);
|
||||
void Behavior_FireBreathExit();
|
||||
|
||||
void Behavior_FireSweepEnter();
|
||||
HRESULT Behavior_FireSweepExitCheck(_float fTimeDelta);
|
||||
void Behavior_FireSweepExit();
|
||||
|
||||
void Behavior_FireBallEnter();
|
||||
HRESULT Behavior_FireBallExitCheck(_float fTimeDelta);
|
||||
void Behavior_FireBallExit();
|
||||
|
||||
void Behavior_SwipeEnter();
|
||||
HRESULT Behavior_SwipeExitCheck(_float fTimeDelta);
|
||||
void Behavior_SwipeExit();
|
||||
|
||||
void Behavior_SkillEnter();
|
||||
HRESULT Behavior_SkillExitCheck(_float fTimeDelta);
|
||||
void Behavior_SkillExit();
|
||||
|
||||
void Behavior_PulseEnter();
|
||||
HRESULT Behavior_PulseExitCheck(_float fTimeDelta);
|
||||
void Behavior_PulseExit();
|
||||
|
||||
void Behavior_TuckedEnter();
|
||||
HRESULT Behavior_TuckedExitCheck(_float fTimeDelta);
|
||||
void Behavior_TuckedExit();
|
||||
|
||||
void Behavior_LandEnter();
|
||||
HRESULT Behavior_LandExitCheck(_float fTimeDelta);
|
||||
void Behavior_LandExit();
|
||||
|
||||
void Behavior_HitEnter();
|
||||
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
|
||||
void Behavior_HitExit();
|
||||
|
||||
void Behavior_DeadEnter();
|
||||
HRESULT Behavior_DeadExitCheck(_float fTimeDelta);
|
||||
void Behavior_DeadExit();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_AncientSpell final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagAncientSpell : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_ANCIENTSPELL_DESC;
|
||||
private:
|
||||
CState_AncientSpell();
|
||||
virtual ~CState_AncientSpell() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_ANCIENTSPELL_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_AncientSpell* Create(STATE_ANCIENTSPELL_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
+7
-7
@@ -4,16 +4,16 @@
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Broom_Fly final : public CState_Root
|
||||
class CState_FireBall final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagBroomFly : public CState_Root::STATE_ROOT_DESC {
|
||||
typedef struct tagFireBall : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_BROOM_FLY_DESC;
|
||||
}STATE_FIREBALL_DESC;
|
||||
private:
|
||||
CState_Broom_Fly();
|
||||
virtual ~CState_Broom_Fly() = default;
|
||||
CState_FireBall();
|
||||
virtual ~CState_FireBall() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
@@ -25,10 +25,10 @@ class CState_Broom_Fly final : public CState_Root
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_BROOM_FLY_DESC* pDesc);
|
||||
HRESULT Initialize(STATE_FIREBALL_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Broom_Fly* Create(STATE_BROOM_FLY_DESC* pDesc);
|
||||
static CState_FireBall* Create(STATE_FIREBALL_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
+7
-7
@@ -4,16 +4,16 @@
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Broom_Hover final : public CState_Root
|
||||
class CState_FireBreath final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagBroomHover : public CState_Root::STATE_ROOT_DESC {
|
||||
typedef struct tagFireBreath : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_BROOM_HOVER_DESC;
|
||||
}STATE_FIREBREATH_DESC;
|
||||
private:
|
||||
CState_Broom_Hover();
|
||||
virtual ~CState_Broom_Hover() = default;
|
||||
CState_FireBreath();
|
||||
virtual ~CState_FireBreath() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
@@ -25,10 +25,10 @@ class CState_Broom_Hover final : public CState_Root
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_BROOM_HOVER_DESC* pDesc);
|
||||
HRESULT Initialize(STATE_FIREBREATH_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Broom_Hover* Create(STATE_BROOM_HOVER_DESC* pDesc);
|
||||
static CState_FireBreath* Create(STATE_FIREBREATH_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_FireSweep final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagFireSweep : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_FIRESWEEP_DESC;
|
||||
private:
|
||||
CState_FireSweep();
|
||||
virtual ~CState_FireSweep() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_FIRESWEEP_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_FireSweep* Create(STATE_FIRESWEEP_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Fly final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagFly : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_FLY_DESC;
|
||||
private:
|
||||
CState_Fly();
|
||||
virtual ~CState_Fly() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_FLY_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Fly* Create(STATE_FLY_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Ground final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagGround : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_GROUND_DESC;
|
||||
private:
|
||||
CState_Ground();
|
||||
virtual ~CState_Ground() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_GROUND_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Ground* Create(STATE_GROUND_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Hover final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagHover : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_HOVER_DESC;
|
||||
private:
|
||||
CState_Hover();
|
||||
virtual ~CState_Hover() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_HOVER_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Hover* Create(STATE_HOVER_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Pulse final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagPulse : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_PULSE_DESC;
|
||||
private:
|
||||
CState_Pulse();
|
||||
virtual ~CState_Pulse() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_PULSE_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Pulse* Create(STATE_PULSE_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Skill final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagSkill : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_SKILL_DESC;
|
||||
private:
|
||||
CState_Skill();
|
||||
virtual ~CState_Skill() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_SKILL_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Skill* Create(STATE_SKILL_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Slide final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagSlide : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_SLIDE_DESC;
|
||||
public:
|
||||
CState_Slide();
|
||||
virtual ~CState_Slide() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_SLIDE_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Slide* Create(STATE_SLIDE_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Swipe final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagSwipe : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_SWIPE_DESC;
|
||||
private:
|
||||
CState_Swipe();
|
||||
virtual ~CState_Swipe() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_SWIPE_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Swipe* Create(STATE_SWIPE_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "State_Root.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CState_Tucked final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagTucked : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
}STATE_TUCKED_DESC;
|
||||
public:
|
||||
CState_Tucked();
|
||||
virtual ~CState_Tucked() = default;
|
||||
|
||||
public:
|
||||
virtual void Enter();
|
||||
virtual HRESULT Update(_float fTimeDelta);
|
||||
virtual void Exit();
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_TUCKED_DESC* pDesc);
|
||||
|
||||
public:
|
||||
static CState_Tucked* Create(STATE_TUCKED_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
virtual void Describe_Entity();
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,55 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CStupefy final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CStupefy(const CStupefy& rhs);
|
||||
virtual ~CStupefy() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CEffectParts* m_pProjectile0 = {};
|
||||
class CEffectParts* m_pProjectile1 = {};
|
||||
class CEffectParts* m_pStupefy_PJ_PT = {};
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
|
||||
_float m_fLinearSpeed = 0.65f;
|
||||
_float3 m_vCameraLook = {};
|
||||
public:
|
||||
static CStupefy* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -34,6 +34,7 @@ class CTrailObject final : public CPartObject
|
||||
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
|
||||
|
||||
void SetDissolve(_bool isDissolve) { m_TrailInfo.isDissolve = true; }
|
||||
TRAIL_INFO* Get_TrailInfo() { return &m_TrailInfo; }
|
||||
|
||||
private:
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user