Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
USectionGateStateCommand 클래스 참조

#include <SectionGateStateCommand.h>

USectionGateStateCommand에 대한 상속 다이어그램 :
Inheritance graph
USectionGateStateCommand에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

void Initialize (ASectionGate *InSectionGate, EGateState InPreviousState, EGateState InTargetState)
 
virtual bool Process () override
 
virtual void Undo () override
 

Private 속성

TWeakObjectPtr< ASectionGateSectionGate
 
EGateState PreviousState = EGateState::Unlocked
 
EGateState TargetState = EGateState::Unlocked
 

멤버 함수 문서화

◆ Initialize()

void USectionGateStateCommand::Initialize ( ASectionGate InSectionGate,
EGateState  InPreviousState,
EGateState  InTargetState 
)
7{
8 SectionGate = InSectionGate;
9 PreviousState = InPreviousState;
10 TargetState = InTargetState;
11}
TWeakObjectPtr< ASectionGate > SectionGate
Definition SectionGateStateCommand.h:21
EGateState TargetState
Definition SectionGateStateCommand.h:23
EGateState PreviousState
Definition SectionGateStateCommand.h:22

◆ Process()

bool USectionGateStateCommand::Process ( )
overridevirtual

UCommandBase(으)로부터 재구현되었습니다.

15{
16 ASectionGate* SectionGatePtr = SectionGate.Get();
17
18 if (SectionGatePtr == nullptr)
19 {
20 return false;
21 }
22
23 SectionGatePtr->ApplyGateState(TargetState);
24 return true;
25}
Definition SectionGate.h:34
void ApplyGateState(EGateState NewState, bool bForce=false)
Definition SectionGate.cpp:73
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ Undo()

void USectionGateStateCommand::Undo ( )
overridevirtual

UCommandBase(으)로부터 재구현되었습니다.

29{
30 ASectionGate* SectionGatePtr = SectionGate.Get();
31
32 if (SectionGatePtr == nullptr)
33 {
34 return;
35 }
36
37 SectionGatePtr->ApplyGateState(PreviousState);
38}
이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ PreviousState

EGateState USectionGateStateCommand::PreviousState = EGateState::Unlocked
private

◆ SectionGate

TWeakObjectPtr<ASectionGate> USectionGateStateCommand::SectionGate
private

◆ TargetState

EGateState USectionGateStateCommand::TargetState = EGateState::Unlocked
private

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