CARLA
 
载入中...
搜索中...
未找到
WalkerBase.h
浏览该文件的文档.
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
13UCLASS()
14class CARLA_API AWalkerBase : public ACharacter
15{
16
17 GENERATED_BODY()
18
19 AWalkerBase(const FObjectInitializer &ObjectInitializer);
20public:
21
22 UPROPERTY(Category="Walker Base", BlueprintReadWrite, EditAnywhere)
23 bool bAlive = true;
24
25 UPROPERTY(Category="Walker Base", BlueprintReadWrite, EditAnywhere)
26 float AfterLifeSpan = 10.0f;
27
28 UPROPERTY(Category="Walker Base", BlueprintReadWrite, EditAnywhere)
29 bool bUsesWheelChair = false;
30
31 UFUNCTION(BlueprintCallable)
32 void StartDeathLifeSpan()
33 {
34 SetLifeSpan(AfterLifeSpan);
35 }
36};