Space Plunder
Loading...
Searching...
No Matches
RoomWithDoorsActor.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"
6#include "OpenableDoorActor.h"
8#include "RoomWithDoorsActor.generated.h"
9
13UCLASS()
14class INTERACTION_API ARoomWithDoorsActor : public ABaseRoomActor
15{
16 GENERATED_BODY()
17
18public:
20
21 UFUNCTION(BlueprintCallable, Category="Room")
22 int32 GetNumOfDoors() const{return DoorActors.Num();};
24 UFUNCTION(BlueprintCallable, Category="Room")
25 bool GetAllDoorsLocked() const;
27 UFUNCTION(BlueprintCallable, Category="Room")
28 bool GetAllDoorsUnlocked() const;
29
30 UFUNCTION(BlueprintCallable, Category="Room")
31 void SetAllDoorsLocked(const bool bLocked);
32 UFUNCTION(BlueprintImplementableEvent, Category="Room")
33 void OnSetAllDoorsLocked(const bool bLocked);
34
35protected:
36 virtual void BeginPlay() override;
37
38 UFUNCTION()
39 void DoorOpened(const int32 Index, const bool bOpened);
40 UFUNCTION(BlueprintImplementableEvent, Category="Room")
41 void OnDoorOpened(const int32 Index, const bool bOpened);
42
43 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Room")
44 TArray<AOpenableDoorActor*> DoorActors;
45 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Room")
46 TArray<AActor*> ConnectingRooms;
47
48};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13
Definition BaseRoomActor.h:14
Definition OpenableDoorActor.h:17
Definition RoomWithDoorsActor.h:15