Modular Turret C++ Plugin
Version 3
Turret C++ Unreal engine 4 plugin
|
Public Member Functions | |
bool | DoSwitchTeam (const FMortarTeamProperties &DesiredTeam) |
FMortarTeamProperties | GetDefaultTeamInfo () const |
FMortarTeamProperties | GetTeamInfo () const |
void | ResetTeamInfo () |
void | SetDefaultTeamInfo (const FMortarTeamProperties &DefaultTeamProperties) |
void | SetTeamInfo (const FMortarTeamProperties &DesiredTeam) |
UMortarTeamComponent () | |
Static Public Member Functions | |
static EMortarAgentAttitude::Type | GetAttitude (const uint8 &ATeamID, const uint8 &BTeamID) |
Public Attributes | |
FTeamChangeEvent | OnTeamChange |
Static Public Attributes | |
static uint8 | NeutralTeamID |
Private Attributes | |
FMortarTeamProperties | DefaultTeamInfo |
FMortarTeamProperties | TeamInfo |
Generic Actor Component That can be assigned to any Actor Each Actor then can have a team id,name and color and also team
UMortarTeamComponent::UMortarTeamComponent | ( | ) |
bool UMortarTeamComponent::DoSwitchTeam | ( | const FMortarTeamProperties & | DesiredTeam | ) |
Tries to switches the team for the player. This will be possible only when Current Team ID is neutral
[in] | DesiredTeam | Team Properties to Set |
|
static |
Static Function to Find Attitude of Two players and returns the attitude
[in] | ATeamID | - Team ID of Player A |
[in] | BTeamID | - Team ID of Player B |
FMortarTeamProperties UMortarTeamComponent::GetDefaultTeamInfo | ( | ) | const |
Returns Default Team Properties
FMortarTeamProperties UMortarTeamComponent::GetTeamInfo | ( | ) | const |
Returns Current Team Properties
void UMortarTeamComponent::ResetTeamInfo | ( | ) |
Resets Team Information to Default
void UMortarTeamComponent::SetDefaultTeamInfo | ( | const FMortarTeamProperties & | DefaultTeamProperties | ) |
Sets Default Information For a team which can be used later
[in] | DefaultTeamProperties | Default Team Properties to Set |
void UMortarTeamComponent::SetTeamInfo | ( | const FMortarTeamProperties & | DesiredTeam | ) |
Sets Information For a team
[in] | DesiredTeam | Team Properties to Set |
|
private |
Default Team ID - This is The Team information used after every Respawn. So if a player of Team A dies then it will switch back to the default Team after respawning TeamID - Should Be unique and other than 0 which is neutral. Different TeamID means They are enemies.Same TeamID means they are friends TeamName - Each Team Can have a name which can be used in blueprint for different purposes TeamColor - Color For each Team
|
static |
This will be the neutral team id.
FTeamChangeEvent UMortarTeamComponent::OnTeamChange |
Team Change Event That Will be Broadcasted as soon as Team changes from Neutral to Desired Team in SwitchTeam
|
private |
Current Team ID - This is The Team information for Current Spawn. TeamID - Should Be unique and other than 0 which is neutral. Different TeamID means They are enemies.Same TeamID means they are friends TeamName - Each Team Can have a name which can be used in blueprint for different purposes TeamColor - Color For each Team