Space Plunder
Loading...
Searching...
No Matches
UHackingWidget Class Reference

#include <HackingWidget.h>

Inheritance diagram for UHackingWidget:
UMiniGameWidget IMiniGame

Public Member Functions

virtual void Reset () override
 
virtual void ProgressSelect () override
 
virtual bool StartMiniGame (const int32 Level) override
 
- Public Member Functions inherited from UMiniGameWidget
virtual void Start () override
 
virtual EMiniGameStatus Select () override
 
virtual float GetRetryDelay () const override
 
virtual float GetRoundTime () const override
 
virtual EMiniGameStatus GetResult () const override
 
void SetComplete (const bool bValue)
 
void SetResult (const EMiniGameStatus Status)
 
void SetIntroComplete ()
 
bool GetShouldShowIntro () const
 
void StartIntro ()
 
void OnProgressSelect ()
 
bool ReceiveStartMiniGame (const int32 Level)
 
void StartMiniGameEvent (const int32 Level)
 
void MiniGamePassed ()
 
void MiniGameComplete (const EMiniGameStatus Status)
 

Protected Member Functions

virtual void NativeConstruct () override
 
virtual void NativePreConstruct () override
 
virtual bool Initialize () override
 
- Protected Member Functions inherited from UMiniGameWidget
virtual void RoundOver ()
 

Protected Attributes

class UProgressBar * HackingProgress
 
- Protected Attributes inherited from UMiniGameWidget
bool bHasIntro = true
 
bool bTimedMiniGame = true
 
float RoundTime = 5.0f
 
int32 Attempts = 3
 
int32 Levels = 3
 
bool bSkippable = false
 
bool bCanRetry = false
 
float RetryDelay = 5.0f
 
bool bComplete = false
 
bool bShowIntro = true
 
bool bIntroPlaying = false
 
bool bWaiting = false
 
TEnumAsByte< EMiniGameStatusResult = EMiniGameStatus::InProgress
 
int32 CurrentLevel = 1
 
int32 CurrentAttempt = 1
 

Member Function Documentation

◆ Initialize()

bool UHackingWidget::Initialize ( )
overrideprotectedvirtual
9{
10 const bool Success = Super::Initialize();
11 if(!Success) return false;
12 if (!ensure(HackingProgress != nullptr)) return false;
13 return true;
14}
class UProgressBar * HackingProgress
Definition HackingWidget.h:35

◆ NativeConstruct()

void UHackingWidget::NativeConstruct ( )
overrideprotectedvirtual

Reimplemented from UMiniGameWidget.

17{
18 Super::NativeConstruct();
19}

◆ NativePreConstruct()

void UHackingWidget::NativePreConstruct ( )
overrideprotectedvirtual

Reimplemented from UMiniGameWidget.

22{
23 Super::NativePreConstruct();
24 if(HackingProgress != nullptr)
25 {
26 HackingProgress->SetPercent(0.0f);
27 }
28}

◆ ProgressSelect()

void UHackingWidget::ProgressSelect ( )
overridevirtual

Reimplemented from UMiniGameWidget.

38{
39 Super::ProgressSelect();
40
41}

◆ Reset()

void UHackingWidget::Reset ( )
overridevirtual

Reimplemented from UMiniGameWidget.

32{
33 Super::Reset();
34
35}

◆ StartMiniGame()

bool UHackingWidget::StartMiniGame ( const int32 Level)
overridevirtual

Reimplemented from UMiniGameWidget.

44{
45 return Super::StartMiniGame(Level);
46}

Member Data Documentation

◆ HackingProgress

class UProgressBar* UHackingWidget::HackingProgress
protected

The documentation for this class was generated from the following files: