KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
AMiniOwlBot 클래스 참조

#include <MiniOwlBot.h>

+ AMiniOwlBot에 대한 상속 다이어그램 :
+ AMiniOwlBot에 대한 협력 다이어그램:

Public 멤버 함수

 AMiniOwlBot ()
 
virtual void Tick (float DeltaSeconds) override
 
void UpdateLocation (float DeltaTime)
 
void UpdateText (const FString &text)
 

Protected 멤버 함수

virtual void BeginPlay () override
 

Protected 속성

TObjectPtr< class UStaticMeshComponent > meshComp
 
TObjectPtr< class USceneComponent > rootSceneComp
 
TObjectPtr< class UWidgetComponent > speechWidget
 

Private 멤버 함수

void MulticastRPC_UpdateText (const FString &text)
 
void ServerRPC_UpdateText (const FString &text)
 

Private 속성

float amplitude = 10.f
 
float angle = 28.f
 
float frequency = 0.4f
 
TObjectPtr< class APlayerActorparentObj
 
float radius = 280.f
 
float speed = 20.f
 
float time = 0.f
 

상세한 설명

MiniOwlBot.h 파일의 10 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ AMiniOwlBot()

AMiniOwlBot::AMiniOwlBot ( )

MiniOwlBot.cpp 파일의 15 번째 라인에서 정의되었습니다.

16{
17 rootSceneComp = CreateDefaultSubobject<USceneComponent>(TEXT("rootSceneComp"));
18 SetRootComponent(rootSceneComp);
19
20 speechWidget = CreateDefaultSubobject<UWidgetComponent>(TEXT("speechWidget"));
21 speechWidget->SetupAttachment(rootSceneComp);
22 speechWidget->SetRelativeLocation(FVector(0.f, 0.f, 40.f));
23 speechWidget->SetWidgetSpace(EWidgetSpace::Screen);
24 speechWidget->SetDrawAtDesiredSize(true);
25 speechWidget->SetVisibility(false);
26 ConstructorHelpers::FClassFinder<UTutorSpeechWidget> speechWidgetClassRef(TEXT("/Game/CustomContents/UI/Widgets/OwlTutorBot/WBP_TutorSpeechWidget.WBP_TutorSpeechWidget_C"));
27 if (speechWidgetClassRef.Succeeded())
28 {
29 speechWidget->SetWidgetClass(speechWidgetClassRef.Class);
30 }
31
32 meshComp = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("meshComp"));
33 meshComp->SetupAttachment(rootSceneComp);
34 meshComp->SetCollisionProfileName(TEXT("NoCollision"));
35 meshComp->CanCharacterStepUpOn = ECB_No;
36 ConstructorHelpers::FObjectFinder<UStaticMesh> meshRef(TEXT("/Script/Engine.StaticMesh'/Game/CustomContents/Character/Asset/MiniOwl/MiniOwlbot.MiniOwlbot'"));
37 if (meshRef.Succeeded())
38 {
39 meshComp->SetStaticMesh(meshRef.Object);
40 }
41}
TObjectPtr< class USceneComponent > rootSceneComp
Definition MiniOwlBot.h:25
TObjectPtr< class UStaticMeshComponent > meshComp
Definition MiniOwlBot.h:31
TObjectPtr< class UWidgetComponent > speechWidget
Definition MiniOwlBot.h:28

다음을 참조함 : meshComp, rootSceneComp, speechWidget.

멤버 함수 문서화

◆ BeginPlay()

void AMiniOwlBot::BeginPlay ( )
overrideprotectedvirtual

MiniOwlBot.cpp 파일의 44 번째 라인에서 정의되었습니다.

45{
46 Super::BeginPlay();
47}

◆ MulticastRPC_UpdateText()

void AMiniOwlBot::MulticastRPC_UpdateText ( const FString &  text)
private

◆ ServerRPC_UpdateText()

void AMiniOwlBot::ServerRPC_UpdateText ( const FString &  text)
private

다음에 의해서 참조됨 : UpdateText().

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ Tick()

void AMiniOwlBot::Tick ( float  DeltaSeconds)
overridevirtual

MiniOwlBot.cpp 파일의 50 번째 라인에서 정의되었습니다.

51{
52 Super::Tick(DeltaTime);
53}

◆ UpdateLocation()

void AMiniOwlBot::UpdateLocation ( float  DeltaTime)

MiniOwlBot.cpp 파일의 54 번째 라인에서 정의되었습니다.

55{
56 time += DeltaTime;
57
58 // up down
59 FVector targetPos = FVector::ZeroVector;
60 targetPos.Z = amplitude * FMath::Sin(time * frequency * 2 * PI);
61
62 SetActorRelativeLocation(targetPos);
63}
float amplitude
Definition MiniOwlBot.h:47
float frequency
Definition MiniOwlBot.h:48

다음을 참조함 : amplitude, frequency, time.

◆ UpdateText()

void AMiniOwlBot::UpdateText ( const FString &  text)

MiniOwlBot.cpp 파일의 65 번째 라인에서 정의되었습니다.

66{
68}
void ServerRPC_UpdateText(const FString &text)

다음을 참조함 : ServerRPC_UpdateText().

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ amplitude

float AMiniOwlBot::amplitude = 10.f
private

MiniOwlBot.h 파일의 47 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UpdateLocation().

◆ angle

float AMiniOwlBot::angle = 28.f
private

MiniOwlBot.h 파일의 46 번째 라인에서 정의되었습니다.

◆ frequency

float AMiniOwlBot::frequency = 0.4f
private

MiniOwlBot.h 파일의 48 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UpdateLocation().

◆ meshComp

TObjectPtr<class UStaticMeshComponent> AMiniOwlBot::meshComp
protected

MiniOwlBot.h 파일의 31 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : AMiniOwlBot().

◆ parentObj

TObjectPtr<class APlayerActor> AMiniOwlBot::parentObj
private

MiniOwlBot.h 파일의 54 번째 라인에서 정의되었습니다.

◆ radius

float AMiniOwlBot::radius = 280.f
private

MiniOwlBot.h 파일의 45 번째 라인에서 정의되었습니다.

◆ rootSceneComp

TObjectPtr<class USceneComponent> AMiniOwlBot::rootSceneComp
protected

MiniOwlBot.h 파일의 25 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : AMiniOwlBot().

◆ speechWidget

TObjectPtr<class UWidgetComponent> AMiniOwlBot::speechWidget
protected

MiniOwlBot.h 파일의 28 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : AMiniOwlBot().

◆ speed

float AMiniOwlBot::speed = 20.f
private

MiniOwlBot.h 파일의 49 번째 라인에서 정의되었습니다.

◆ time

float AMiniOwlBot::time = 0.f
private

MiniOwlBot.h 파일의 50 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UpdateLocation().


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: