[Modifty] 수
This commit is contained in:
@@ -83,10 +83,11 @@ void CDialogue_Choice::Text(_wstring pText)
|
||||
m_pText = pText;
|
||||
}
|
||||
|
||||
void CDialogue_Choice::Type(_int Index, _int Type)
|
||||
void CDialogue_Choice::Type(_int Index, _int Type, _int QeustID)
|
||||
{
|
||||
m_ChoiceInfo.iChoice = Index;
|
||||
m_ChoiceInfo.iType = Type;
|
||||
m_ChoiceInfo.QuestID = QeustID;
|
||||
}
|
||||
|
||||
void CDialogue_Choice::Reset()
|
||||
|
||||
@@ -89,15 +89,11 @@ void CDialogue_Font::Update(_float fTimeDelta)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
|
||||
m_bRace = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace);
|
||||
ReSet();
|
||||
MapMove();
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(NPCTEXTTYPE::BATTLE):
|
||||
m_bBattle = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle);
|
||||
ReSet();
|
||||
MapMove();
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -436,7 +432,45 @@ void CDialogue_Font::ReSet()
|
||||
m_DialoguInfo.push_back((*it));
|
||||
it = m_pCurrentDialogue.erase(it);
|
||||
}
|
||||
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bChoiceText);
|
||||
if (m_pNpc->Get_NpcID() == 4)
|
||||
{
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Change"));
|
||||
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, 0.f);
|
||||
m_bCurrentInteract = false;
|
||||
m_bNpcInteract = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
NPCINTERACT Interact{};
|
||||
Interact.bInteract = false;
|
||||
Interact.fAlpha = 1.f;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
|
||||
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
void CDialogue_Font::MapMove()
|
||||
{
|
||||
m_pNpc->Set_NextID(m_iTextID);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
|
||||
m_bChoiceText = false;
|
||||
m_bCurrentChoiceText = false;
|
||||
m_bRace = false;
|
||||
m_bBattle = false;
|
||||
vector<_int> Dummy;
|
||||
m_NextLevel.swap(Dummy);
|
||||
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
|
||||
{
|
||||
(*it)->Set_Hover(false);
|
||||
(*it)->Visible(false);
|
||||
m_DialoguInfo.push_back((*it));
|
||||
it = m_pCurrentDialogue.erase(it);
|
||||
}
|
||||
NPCINTERACT Interact{};
|
||||
Interact.bInteract = false;
|
||||
Interact.fAlpha = 1.5f;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
|
||||
m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1, Interact.fAlpha);
|
||||
}
|
||||
|
||||
void CDialogue_Font::Quest_Complete()
|
||||
@@ -449,11 +483,6 @@ void CDialogue_Font::NextText()
|
||||
m_pCurrentDialogue[0]->Visible(false);
|
||||
m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
|
||||
m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
|
||||
if (m_bChoiceText == true)
|
||||
{
|
||||
ReSet();
|
||||
}
|
||||
|
||||
NpcDialogue();
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ void CDialogue_Panel::Setting_Choice(DIALOGUECHOICEINFO Choice)
|
||||
pChoice->Visible(true);
|
||||
pChoice->Set_Hover(true);
|
||||
pChoice->Text(Choice.pText);
|
||||
pChoice->Type(m_iChoiceCount, Choice.eType);
|
||||
pChoice->Type(m_iChoiceCount, Choice.eType, Choice.QuestID);
|
||||
|
||||
m_CurrentChoices.push_back(pChoice);
|
||||
}
|
||||
@@ -138,6 +138,7 @@ void CDialogue_Panel::ReSet_Choice()
|
||||
|
||||
void CDialogue_Panel::Change_Map()
|
||||
{
|
||||
|
||||
m_pInfoInstance->Load_DADA_INT();
|
||||
m_pGameInstance->Setting_Volumetirc(
|
||||
3.f,
|
||||
@@ -208,11 +209,6 @@ void CDialogue_Panel::Change_Map()
|
||||
|
||||
void CDialogue_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_J))
|
||||
{
|
||||
Change_Map();
|
||||
}
|
||||
|
||||
if (!__super::Chack_Visible())
|
||||
{
|
||||
return;
|
||||
@@ -233,20 +229,24 @@ void CDialogue_Panel::Update(_float fTimeDelta)
|
||||
m_fTime += fTimeDelta;
|
||||
}
|
||||
|
||||
if (m_fTime >= 1.f)
|
||||
if (m_fTime >= 1.5f)
|
||||
{
|
||||
if(m_bBroomRace == true)
|
||||
if (m_bBroomRace == true)
|
||||
{
|
||||
m_bBroomRace = false;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("BROOMRACENPCINTERACT"));
|
||||
}
|
||||
else if (m_bBttle == true)
|
||||
}
|
||||
|
||||
if (m_fTime >= 0.8f)
|
||||
{
|
||||
if (m_bBttle == true)
|
||||
{
|
||||
m_bBttle = false;
|
||||
Change_Map();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ HRESULT CInteraction_Key::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
m_fSize = _float3(1.f, 1.f, 1.f);
|
||||
m_fAlpha = 1.f;
|
||||
m_fAlpha = 1.f;]
|
||||
m_vUV = ComputeUV('Z');
|
||||
m_fViewPort = _float2(_float(g_iWinSizeX), _float(g_iWinSizeY));
|
||||
return S_OK;
|
||||
|
||||
@@ -152,6 +152,8 @@ _int CQuest_Data::Get_Count(_int Index)
|
||||
|
||||
_int CQuest_Data::Set_AcceptQuest(_int Index)
|
||||
{
|
||||
if (Index == -1)
|
||||
return -1;
|
||||
if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED))
|
||||
{
|
||||
return 1;
|
||||
|
||||
@@ -86,7 +86,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
|
||||
static_cast<CCanvasObject*>(m_pSpell_Canvas)->Visible(false);
|
||||
static_cast<CCanvasObject*>(m_pQuest_Canvas)->Visible(false);
|
||||
static_cast<CCanvasObject*>(m_pSpellLearn_Canvas)->Visible(false);
|
||||
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(false);
|
||||
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(true);
|
||||
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(true);
|
||||
static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
|
||||
if (m_bRace == false)
|
||||
@@ -331,11 +331,6 @@ void CUI_Manager::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bBattle == true)
|
||||
{
|
||||
if (m_fAlpha >= 1.f)
|
||||
Change_Map();
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_M) && m_pGameInstance->Key_Pressing(DIK_L))
|
||||
Set_Enviroment();
|
||||
|
||||
@@ -36,7 +36,7 @@ class CDialogue_Choice final : public CElementObject
|
||||
void Mouse_Hover();
|
||||
void Up();
|
||||
void Text(_wstring pText);
|
||||
void Type(_int Index, _int Type);
|
||||
void Type(_int Index, _int Type, _int QeustID);
|
||||
void Reset();
|
||||
|
||||
private:
|
||||
|
||||
@@ -63,7 +63,7 @@ class CDialogue_Font final : public CGameObject
|
||||
void SpellLearn();
|
||||
void Quest();
|
||||
void ReSet();
|
||||
|
||||
void MapMove();
|
||||
void Quest_Complete();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -96,7 +96,6 @@ class CDialogue_Font final : public CGameObject
|
||||
_bool m_bBattle = { false };
|
||||
|
||||
_float m_fTime{};
|
||||
|
||||
public:
|
||||
static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -38,6 +38,7 @@ class CInteraction_Key final : public CGameObject
|
||||
|
||||
_bool m_bActive = { false };
|
||||
_bool m_bAtteckTrigger = { false };
|
||||
_bool m_bCurrentTarget = { false };
|
||||
|
||||
_float3 m_fSize{};
|
||||
_float m_fAlpha{};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<Name Flow="0" Trigger="DIALOGUE_END">
|
||||
<Anim state="BROWSE_START" index="51" loop="false"/>
|
||||
</Name>
|
||||
|
||||
|
||||
<Name Flow="1" Trigger="ANIM_END">
|
||||
<Anim state="BROWSE_END" index="50" loop="false"/>
|
||||
</Name>
|
||||
@@ -16,8 +16,8 @@
|
||||
<Anim state="CROUCH" index="18" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="4" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
<Name Flow="4" Trigger="DIALOGUE_END">
|
||||
<Anim state="CROUCH" index="18" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="5" Trigger="ARRIVE_POS">
|
||||
@@ -25,31 +25,35 @@
|
||||
</Name>
|
||||
|
||||
<Name Flow="6" Trigger="ARRIVE_POS">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="7" Trigger="DIALOGUE_END">
|
||||
<Anim state="HELLO" index="19" loop="true"/>
|
||||
<Name Flow="7" Trigger="ARRIVE_POS">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="8" Trigger="DIALOGUE_END">
|
||||
<Anim state="HELLO" index="19" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="9" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="9" Trigger="ANIM_END">
|
||||
<Name Flow="10" Trigger="ANIM_END">
|
||||
<Anim state="FINGERSNAP" index="16" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="10" Trigger="DIALOGUE_END">
|
||||
<Name Flow="11" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="11" Trigger="ANIM_END">
|
||||
<Name Flow="12" Trigger="ANIM_END">
|
||||
<Anim state="CROUCHALERT" index="17" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="12" Trigger="DIALOGUE_END">
|
||||
<Name Flow="13" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
</Dialogue>
|
||||
</Dialogue>
|
||||
@@ -24,16 +24,15 @@
|
||||
<Pos x="-52.44" y="-28.42" z="-55.25"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="4">
|
||||
<Position>
|
||||
<Pos x="-0.871" y="-17.706" z="-47.309"/>
|
||||
<Pos x="-52.44" y="-28.42" z="-55.25"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="5">
|
||||
<Position>
|
||||
<Pos x="1.529" y="-14.610" z="-35.171"/>
|
||||
<Pos x="-0.871" y="-17.706" z="-47.309"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
@@ -54,13 +53,13 @@
|
||||
<Pos x="1.529" y="-14.610" z="-35.171"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
|
||||
<Name Flow="9">
|
||||
<Position>
|
||||
<Pos x="1.529" y="-14.610" z="-35.171"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
|
||||
<Name Flow="10">
|
||||
<Position>
|
||||
<Pos x="1.529" y="-14.610" z="-35.171"/>
|
||||
@@ -78,9 +77,13 @@
|
||||
<Pos x="1.529" y="-14.610" z="-35.171"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="13">
|
||||
<Position>
|
||||
<Pos x="1.529" y="-14.610" z="-35.171"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
</ElfPosData>
|
||||
</ElfPosInfo>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<StatInfo>
|
||||
<STAT_PLAYER Name="Aria" OBJECTID="-1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_PLAYER Name="Aria" OBJECTID="-1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10000000" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN Name="고블린 전사" OBJECTID="0" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN_ASSASSIN Name="고블린 암살자" OBJECTID="1" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="1" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="2" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||
|
||||
Reference in New Issue
Block a user