-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnomalyBase.cpp
More file actions
60 lines (46 loc) · 1.15 KB
/
AnomalyBase.cpp
File metadata and controls
60 lines (46 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "AnomalyBase.h"
// 정적 변수 초기화
int32 AAnomalyBase::UnfixedAnamolyCount = 0;
AAnomalyBase::AAnomalyBase()
{
PrimaryActorTick.bCanEverTick = true;
}
void AAnomalyBase::BeginPlay()
{
Super::BeginPlay();
UnfixedAnamolyCount = 0;
}
void AAnomalyBase::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}
FString AAnomalyBase::GetCurrentAnomalyInfo() const
{
if (CurrentAnomaly.IsActive)
{
UE_LOG(LogTemp, Error, TEXT("위치: %s, 종류: %s"), *CurrentAnomaly.Place, *CurrentAnomaly.Type);
return TEXT("현재 활성화된 이상 현상.");
}
else
{
return TEXT("현재 활성화된 이상 현상이 없습니다.");
}
}
void AAnomalyBase::ResetCurrentAnomaly()
{
CurrentAnomaly.IsActive = false;
CurrentAnomaly.Place = TEXT("");
CurrentAnomaly.Type = TEXT("");
}
FString AAnomalyBase::GetAnomalyLocation() const
{
return CurrentAnomaly.Place;
}
FString AAnomalyBase::GetAnomalyType() const
{
return CurrentAnomaly.Type;
}
int32 AAnomalyBase::GetUnfixedAnamolyCount()
{
return UnfixedAnamolyCount;
}