CARLA
WalkerBase.h
Go to the documentation of this file.
1 // Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include "GameFramework/Character.h"
10 
11 #include "WalkerBase.generated.h"
12 
13 UCLASS()
14 class CARLA_API AWalkerBase : public ACharacter
15 {
16 
17  GENERATED_BODY()
18 
19 public:
20 
21  UPROPERTY(Category="Walker Base", BlueprintReadWrite, EditAnywhere)
22  bool bAlive = true;
23 
24  UPROPERTY(Category="Walker Base", BlueprintReadWrite, EditAnywhere)
25  float AfterLifeSpan = 10.0f;
26 
27  UFUNCTION(BlueprintCallable)
28  void StartDeathLifeSpan()
29  {
30  SetLifeSpan(AfterLifeSpan);
31  }
32 };