LEAP Documentation 40220
Documentation for the LEAP project
ProjectXGameModeAllOutWarfare.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2021. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "ProjectXGameModeAllOutWarfare.generated.h"
8
10class ACommandCenter;
11class ACapturePoint;
13
17UCLASS()
19{
20 GENERATED_BODY()
21
22public:
23 virtual void InitGame(const FString& MapName, const FString& Options, FString& ErrorMessage) override;
24 virtual void InitGameState() override;
25 int32 GetNumberOfCheckPoints() const { return NumberOfCapturePointCheckpoints; }
27
28protected:
29 virtual void CollectGamePlayObjects() override;
30 virtual void CalculateTimeOutWinCondition() override;
31
32 UFUNCTION()
33 virtual void OnShieldGeneratorDestroyed(AShieldGenerator* ShieldGenerator);
34 UFUNCTION()
35 virtual void OnCommandCenterDestroyed(ACommandCenter* CommandCenter);
36 UFUNCTION()
37 virtual void OnCapturePointOwnerChanged(int32 NewOwner, ACapturePoint* Point);
38 UFUNCTION()
39 virtual void OnCapturePointAttacked(int32 TeamTakingPoint, ACapturePoint* Point);
40
41 /* The number of subpoints in the capture points where players received XP */
42 UPROPERTY(EditDefaultsOnly, Category = GameMode, meta = (AllowPrivateAccess = true, ClampMin = 0))
43 uint8 NumberOfCapturePointCheckpoints;
44
45 /*The rate per player that bases are captured*/
46 UPROPERTY(EditDefaultsOnly, Category = GameMode, meta = (AllowPrivateAccess = true))
48
49private:
50
51};
Definition: CapturePoint.h:77
float PerPlayerCaptureRate
Definition: CapturePoint.h:291
Definition: CommandCenter.h:20
Definition: ProjectXGameModeAllOutWarfare.h:19
float GetPlayerCaptureRate() const
Definition: ProjectXGameModeAllOutWarfare.h:26
int32 GetNumberOfCheckPoints() const
Definition: ProjectXGameModeAllOutWarfare.h:25
Definition: ProjectXGameMode.h:115
Definition: ProjectXGameStateAllOutWarfare.h:55
Definition: ShieldGenerator.h:30
FShieldGeneratorEventSignature OnShieldGeneratorDestroyed
Definition: ShieldGenerator.h:57