commit
This commit is contained in:
@@ -174,6 +174,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\Dialogue_Font.h" />
|
||||
<ClInclude Include="..\public\NPCInteraction.h" />
|
||||
<ClInclude Include="..\public\PointLight.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
<ClInclude Include="..\Public\State_FireBall.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
@@ -417,6 +418,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\Dialogue_Font.cpp" />
|
||||
<ClCompile Include="..\private\NPCInteraction.cpp" />
|
||||
<ClCompile Include="..\private\PointLight.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
|
||||
@@ -742,13 +742,16 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Breath</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CamPosition_AI.h">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
|
||||
</ClInclude>
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Dialogue_Data.h">
|
||||
<Filter>04.Mechanic\Dialogue\Dialogue_Data</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1550,13 +1553,16 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Breath">
|
||||
<UniqueIdentifier>{a3b5e707-dbb3-47da-a77b-b0ca62b89e99}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\CameraPosition\AI">
|
||||
<UniqueIdentifier>{a24f4687-f540-44e5-ae47-fe176c4c9042}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Dialogue\Dialogue_Data">
|
||||
<UniqueIdentifier>{b03591a7-a14e-425a-8a3f-2a6a054c884a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point">
|
||||
<UniqueIdentifier>{a94e24d2-0f61-4263-b834-bfdf9f6c06ae}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2246,13 +2252,16 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Breath</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CamPosition_AI.cpp">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Dialogue_Data.cpp">
|
||||
<Filter>04.Mechanic\Dialogue\Dialogue_Data</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -207,7 +207,8 @@ HRESULT CEffectObject::Render_Bloom()
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL BloomPass = {};
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD
|
||||
|| m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
|
||||
{
|
||||
BloomPass = SHADER_PASS_INSTANCE_MODEL::BLOOM_NOWORLD;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "Avadakedavra.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -582,8 +583,17 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_POINT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Point* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Point>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -605,7 +615,7 @@ HRESULT CEffectPool::Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPr
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg)
|
||||
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg, CEffect_Container** ppOut)
|
||||
{
|
||||
if (pOwner == nullptr)
|
||||
return S_OK;
|
||||
@@ -620,6 +630,11 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg
|
||||
m_ActiveEffectList.push_back(pSkill);
|
||||
Safe_AddRef(pSkill);
|
||||
|
||||
if (nullptr != ppOut) {
|
||||
*ppOut = pSkill;
|
||||
SAFE_ADDREF(pSkill);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -569,10 +569,28 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_isCollisionEnter = false;
|
||||
|
||||
m_bHit = false;
|
||||
m_isStop = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
void CEffect_Container::Setting_Pos(_fvector vPos)
|
||||
{
|
||||
for (auto& iter : m_PartObjects)
|
||||
{
|
||||
CTransform* pTransform = iter.second->Get_Component<CTransform>();
|
||||
|
||||
if (pTransform == nullptr)
|
||||
continue;
|
||||
|
||||
pTransform->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
m_isStop = true;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffect_Container::Ready_Components(void* pArg)
|
||||
{
|
||||
CTransform::TRANSFORM_DESC TransformDesc = {};
|
||||
|
||||
@@ -183,6 +183,7 @@
|
||||
#include "MageSide.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -2001,7 +2002,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Point>(g_iStaticLevel, CRanrok_Point::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -522,7 +522,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
_vector CurPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
_float Speed = 40.f;
|
||||
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
@@ -565,7 +565,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta,2.5f);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * Speed * fTimeDelta);
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Load_RanrokPos(const _char* pFilePath)
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Point.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Point::CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Point::CRanrok_Point(const CRanrok_Point& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::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_wstrEffectName = L"RanrokPoint";
|
||||
|
||||
|
||||
m_pGooRod_0 = Get_PartObject<CEffectParts>("GooRod_0");
|
||||
m_pSmoke = Get_PartObject<CEffectParts>("Smoke");
|
||||
m_pSpread_PT = Get_PartObject<CEffectParts>("Spread_PT");
|
||||
|
||||
SAFE_ADDREF(m_pGooRod_0);
|
||||
SAFE_ADDREF(m_pSmoke);
|
||||
SAFE_ADDREF(m_pSpread_PT);
|
||||
|
||||
m_fDuration = 30.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Point::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Point::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
if (m_isStop == false)
|
||||
{
|
||||
/* 초기 방향 */
|
||||
|
||||
XMStoreFloat3(&m_vLook, m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
|
||||
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
m_pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pGooRod_0->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
m_pSpread_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Point::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
/* 초기 방향 */
|
||||
XMStoreFloat3(&m_vLook, m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
|
||||
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
|
||||
m_pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pSpread_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pGooRod_0->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
m_pSmoke->Set_Visible(true);
|
||||
m_pGooRod_0->Set_Visible(true);
|
||||
m_pSpread_PT->Set_Visible(true);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Point* CRanrok_Point::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Point* pInstance = new CRanrok_Point(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Point");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Point::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Point* pInstance = new CRanrok_Point(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Point");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Point::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);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Point::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
SAFE_RELEASE(m_pGooRod_0);
|
||||
SAFE_RELEASE(m_pSmoke);
|
||||
SAFE_RELEASE(m_pSpread_PT);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Point::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Point::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -659,6 +659,12 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
//}
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_bVisible = false;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_POINT, this, nullptr, &m_pRanrok_Point);
|
||||
}, 0.1f);
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
@@ -685,9 +691,13 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
|
||||
void CRanrok::Behavior_TuckedExit()
|
||||
{
|
||||
/* 이펙트를 서서히 사라지게 하기위해 도착 이후에 나오는 이펙트를 아래로 떨굼 */
|
||||
m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
SAFE_RELEASE(m_pRanrok_Point);
|
||||
|
||||
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
m_bTucked = false;
|
||||
m_bVisible = true;
|
||||
}
|
||||
|
||||
void CRanrok::Behavior_LandEnter()
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Client
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, END};
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WBEND};
|
||||
enum class SHADER_PASS_UIEDITOR {
|
||||
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
|
||||
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
|
||||
@@ -70,7 +70,7 @@ namespace Client
|
||||
|
||||
/*란록*/
|
||||
|
||||
RANROK_FIREBALL, RANROK_BREATH,
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@ class CEffectPool final : public CGameObject
|
||||
virtual HRESULT Render() override;
|
||||
public:
|
||||
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function<class CEffect_Container*(_uint , _uint)> AddPrototypeEvent);
|
||||
HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr);
|
||||
HRESULT Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg = nullptr, CEffect_Container** ppOut = nullptr);
|
||||
#ifdef _DEBUG
|
||||
HRESULT Reset_Pool();
|
||||
#endif
|
||||
|
||||
@@ -59,6 +59,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
public:
|
||||
HRESULT Load_Directory(const _char* pPath);
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
|
||||
void Setting_Pos(_fvector vPos);
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
HRESULT Load_Data(const _char* pPath);
|
||||
HRESULT Create_Effect();
|
||||
@@ -88,6 +89,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_wstring m_wstrEffectName = {};
|
||||
_bool m_bHit = { false };
|
||||
_bool m_isLoop = {};
|
||||
_bool m_isStop = {};
|
||||
|
||||
_float m_fAccTime = {};
|
||||
_float m_fPreAccTime = {};
|
||||
|
||||
@@ -113,6 +113,8 @@ class CRanrok final : public CMonster
|
||||
_float m_fAroundTime = {};
|
||||
_float m_fRushTime = {};
|
||||
|
||||
class CEffect_Container* m_pRanrok_Point = { nullptr };
|
||||
_float m_fTuckedSpeed = { 75.f };
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
|
||||
@@ -39,7 +39,7 @@ class CRanrok_FireBall final : public CEffect_Container
|
||||
class CEffectParts* m_pFireBall_Tail = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.3f;
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Point final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Point(const CRanrok_Point& rhs);
|
||||
virtual ~CRanrok_Point() = 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:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pGooRod_0 = { nullptr };
|
||||
class CEffectParts* m_pSmoke = { nullptr };
|
||||
class CEffectParts* m_pSpread_PT = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Point* 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
|
||||
Reference in New Issue
Block a user