|
KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
|
Speak Stage 시스템 더 자세히 ...
#include <ASpeakStageActor.h>
ASpeakStageActor에 대한 상속 다이어그램 :
ASpeakStageActor에 대한 협력 다이어그램:Public 멤버 함수 | |
| ASpeakStageActor () | |
| 생성자 | |
| void | EndStage () |
| 현재 플레이어의 스테이지를 강제로 종료합니다. | |
| FString | GetCurrentQuestion () const |
| FORCEINLINE class ALingoPlayerState * | GetCurrentSpeaker () const |
| FORCEINLINE int32 | GetCurrentStepIndex () const |
| virtual void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| Replication 설정 | |
| int32 | GetTotalQuestions () const |
| int32 | GetTotalQuestionsCount () |
| bool | IsMyTurn (class ALingoPlayerState *lingo_player_state) |
| void | NotifyAnswerComplete (class ALingoPlayerState *Player) |
| 플레이어 답변 완료 알림 (Server에서 호출됨) | |
| void | StartStageForPlayer (class ALingoPlayerState *Player) |
| 특정 플레이어에 대해 Speak Stage를 시작합니다. | |
Public 속성 | |
| FOnSpeakerChangedDelegate | OnSpeakerChanged |
| 현재 발화자가 변경될 때 호출되는 이벤트입니다. | |
Protected 멤버 함수 | |
| void | Multicast_NotifySpeakQuestStarted (const FString &PlayerName) |
| 모든 클라이언트에게 SpeakQuest 시작 알림 전송 (Multicast RPC) | |
| void | OnRep_CurrentSpeaker () |
| currentSpeaker 복제 알림 | |
Protected 속성 | |
| TObjectPtr< class ALingoPlayerState > | CurrentSpeaker |
| 현재 발화 권한을 가진 플레이어. nullptr이면 스테이지가 비어있음을 의미. | |
| int32 | CurrentStepIndex |
| 현재 진행 단계 (질문 인덱스) | |
Private 멤버 함수 | |
| void | AdvanceStep () |
| 다음 질문으로 진행합니다. | |
Speak Stage 시스템
한 번에 한 명의 플레이어와 순차적 음성 대화를 진행하는 액터.
핵심 기능:
ASpeakStageActor.h 파일의 22 번째 라인에서 정의되었습니다.
| ASpeakStageActor::ASpeakStageActor | ( | ) |
생성자
ASpeakStageActor.cpp 파일의 16 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, CurrentStepIndex.
|
private |
다음 질문으로 진행합니다.
모든 질문 완료 시 EndStage()를 호출합니다.
ASpeakStageActor.cpp 파일의 134 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, CurrentStepIndex, EndStage(), ULingoGameHelper::GetPlayerNameFromState(), GetTotalQuestionsCount(), PRINTLOG.
다음에 의해서 참조됨 : NotifyAnswerComplete().
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:| void ASpeakStageActor::EndStage | ( | ) |
현재 플레이어의 스테이지를 강제로 종료합니다.
currentSpeaker를 nullptr로 만들고 상태를 초기화합니다.
ASpeakStageActor.cpp 파일의 165 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, CurrentStepIndex, ULingoGameHelper::GetPlayerNameFromState(), OnSpeakerChanged, PRINTLOG.
다음에 의해서 참조됨 : AdvanceStep().
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:| FString ASpeakStageActor::GetCurrentQuestion | ( | ) | const |
ASpeakStageActor.cpp 파일의 112 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, CurrentStepIndex.
다음에 의해서 참조됨 : ANPCExaminer::GetCurrentQuestion().
이 함수를 호출하는 함수들에 대한 그래프입니다.:
|
inline |
ASpeakStageActor.h 파일의 35 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UMainWidget::CanShowSpeakWidget().
이 함수를 호출하는 함수들에 대한 그래프입니다.:
|
inline |
ASpeakStageActor.h 파일의 38 번째 라인에서 정의되었습니다.
|
overridevirtual |
Replication 설정
ASpeakStageActor.cpp 파일의 30 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, CurrentStepIndex.
| int32 ASpeakStageActor::GetTotalQuestions | ( | ) | const |
ASpeakStageActor.cpp 파일의 103 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker.
다음에 의해서 참조됨 : USpeakWidget::UpdateSpeakStage().
이 함수를 호출하는 함수들에 대한 그래프입니다.:| int32 ASpeakStageActor::GetTotalQuestionsCount | ( | ) |
ASpeakStageActor.cpp 파일의 127 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker.
다음에 의해서 참조됨 : AdvanceStep().
이 함수를 호출하는 함수들에 대한 그래프입니다.:| bool ASpeakStageActor::IsMyTurn | ( | class ALingoPlayerState * | lingo_player_state | ) |
ASpeakStageActor.cpp 파일의 191 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker.
|
protected |
모든 클라이언트에게 SpeakQuest 시작 알림 전송 (Multicast RPC)
| PlayerName | [in] Quest를 시작한 플레이어 이름 |
다음에 의해서 참조됨 : StartStageForPlayer().
이 함수를 호출하는 함수들에 대한 그래프입니다.:| void ASpeakStageActor::NotifyAnswerComplete | ( | class ALingoPlayerState * | Player | ) |
플레이어 답변 완료 알림 (Server에서 호출됨)
| Player | [in] 답변을 완료한 플레이어 |
ASpeakStageActor.cpp 파일의 90 번째 라인에서 정의되었습니다.
다음을 참조함 : AdvanceStep(), CurrentSpeaker.
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
|
protected |
currentSpeaker 복제 알림
ASpeakStageActor.cpp 파일의 42 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, OnSpeakerChanged.
| void ASpeakStageActor::StartStageForPlayer | ( | class ALingoPlayerState * | Player | ) |
특정 플레이어에 대해 Speak Stage를 시작합니다.
(서버에서만 호출)
| Player | [in] 스테이지를 시작할 플레이어의 PlayerState. |
ASpeakStageActor.cpp 파일의 51 번째 라인에서 정의되었습니다.
다음을 참조함 : CurrentSpeaker, CurrentStepIndex, ULingoGameHelper::GetPlayerNameFromState(), Multicast_NotifySpeakQuestStarted(), OnSpeakerChanged, PRINTLOG.
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
|
protected |
현재 발화 권한을 가진 플레이어. nullptr이면 스테이지가 비어있음을 의미.
ASpeakStageActor.h 파일의 98 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ASpeakStageActor(), AdvanceStep(), EndStage(), GetCurrentQuestion(), GetLifetimeReplicatedProps(), GetTotalQuestions(), GetTotalQuestionsCount(), IsMyTurn(), NotifyAnswerComplete(), OnRep_CurrentSpeaker(), StartStageForPlayer().
|
protected |
현재 진행 단계 (질문 인덱스)
ASpeakStageActor.h 파일의 102 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ASpeakStageActor(), AdvanceStep(), EndStage(), GetCurrentQuestion(), GetLifetimeReplicatedProps(), StartStageForPlayer().
| FOnSpeakerChangedDelegate ASpeakStageActor::OnSpeakerChanged |
현재 발화자가 변경될 때 호출되는 이벤트입니다.
ASpeakStageActor.h 파일의 93 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : EndStage(), OnRep_CurrentSpeaker(), AWheatly::SetSpeakStageActor(), StartStageForPlayer().