Space Plunder
Loading...
Searching...
No Matches
DoubleDoorActor.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "DoubleDoorActor.generated.h"
8
9UCLASS()
10class INTERACTION_API ADoubleDoorActor : public AOpenableDoorActor
11{
12 GENERATED_BODY()
13
14public:
16
17protected:
18 virtual void BeginPlay() override;
19 virtual void OnConstruction(const FTransform& Transform) override;
20
21 virtual void DisableDoor(const bool bDisable = true) override;
22
23 virtual void OpenDoor(const bool bOpen) override;
24 virtual void OpenSecondaryDoor(const bool bOpen);
25
26 virtual void OpenDoorInstantly() override;
27
28 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category="Door|Secondary|Components")
29 UStaticMeshComponent* SecondaryDoorComponent;
30
31
32 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Door|Secondary|State")
33 bool bSecondaryDoorBroken = false;
34 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Door|Secondary|State")
35 bool bSecondaryDoorOpen = false;
36 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Door|Secondary|State")
37 bool bSecondaryDoorMoving = false;
38
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Door|Secondary|Location")
40 FVector TargetSecondaryLocation;
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Door|Secondary|Location")
42 FRotator TargetSecondaryRotation;
43
44
45private:
46
47 UFUNCTION()
48 void OnSecondaryDoorOpened();
49 UFUNCTION()
50 void OnSecondaryDoorClosed();
51 void OpenSecondaryDoor();
52 void CloseSecondaryDoor();
53
54 void MoveSecondaryDoor(const bool bOpen);
55
56 void OpenSecondaryDoorInstantly();
57
58
59
60 UPROPERTY(VisibleAnywhere, Category="Door|SecondaryLocation")
61 FVector SecondaryDoorStartLocation;
62 UPROPERTY(VisibleAnywhere, Category="Door|Secondary|Location")
63 FRotator SecondaryDoorStartRotation;
64
65 FTimerHandle RetrySecondaryDoorOpen;
66 FTimerHandle RetrySecondaryDoorClose;
67
68
69
70};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition DoubleDoorActor.h:11
Definition OpenableDoorActor.h:17