DeskSim v2 0.1
Train simulator prototype created for Lokførerskolen
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ATrainTriggerBox Class Reference

Base class containing some common functionality to be extended. More...

#include <TrainTriggerBox.h>

Inheritance diagram for ATrainTriggerBox:
ATrainSignalTriggerBox ATrainStatusTriggerBox

Public Member Functions

 ATrainTriggerBox ()
 Sets default values.
 
virtual void Tick (float DeltaTime)
 Called every frame. More...
 
virtual void OnOverlapBegin (class AActor *OverlappedActor, class AActor *OtherActor)
 Runs when overlapping begins. More...
 
virtual void OnOverlapEnd (class AActor *OverlappedActor, class AActor *OtherActor)
 Runs when overlapping ends. More...
 

Public Attributes

TSubclassOf< ACentralSignalControllerCentralControllerClass
 Contains the class of the controller.
 
ACentralSignalControllerCentralController
 Reference to the controller.
 
ATrainTrain
 Reference to the overlapping train.
 
ESignalType SignalType
 
FName SignalID
 

Protected Member Functions

virtual void BeginPlay ()
 Called when the game starts or when spawned. More...
 
virtual void EndPlay (EEndPlayReason::Type EndPlayReason)
 Called when game stops or when despawned. More...
 

Detailed Description

Base class containing some common functionality to be extended.

Class needs to be extended with additional functionality to be used. Current functionality is just storing some common variables, such as the central controller and overlapping train.

Member Function Documentation

◆ BeginPlay()

void ATrainTriggerBox::BeginPlay ( )
protectedvirtual

Called when the game starts or when spawned.

Reimplemented in ATrainSignalTriggerBox, and ATrainStatusTriggerBox.

◆ EndPlay()

void ATrainTriggerBox::EndPlay ( EEndPlayReason::Type  EndPlayReason)
protectedvirtual

Called when game stops or when despawned.

Reimplemented in ATrainSignalTriggerBox, and ATrainStatusTriggerBox.

◆ OnOverlapBegin()

void ATrainTriggerBox::OnOverlapBegin ( class AActor *  OverlappedActor,
class AActor *  OtherActor 
)
virtual

Runs when overlapping begins.

Reimplemented in ATrainSignalTriggerBox, and ATrainStatusTriggerBox.

◆ OnOverlapEnd()

void ATrainTriggerBox::OnOverlapEnd ( class AActor *  OverlappedActor,
class AActor *  OtherActor 
)
virtual

Runs when overlapping ends.

Reimplemented in ATrainSignalTriggerBox, and ATrainStatusTriggerBox.

◆ Tick()

void ATrainTriggerBox::Tick ( float  DeltaTime)
virtual

Called every frame.

Reimplemented in ATrainSignalTriggerBox, and ATrainStatusTriggerBox.


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