# umersyed60/ue5_battleblaster architecture

> Architecture diagram of the GitHub repository umersyed60/ue5_battleblaster, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/umersyed60/ue5_battleblaster
- Repository: https://github.com/umersyed60/ue5_battleblaster

## Overview

Battle Blaster is an Unreal third-person tank combat game. The player aims and fires at turrets; projectiles apply damage, destruction feeds the victory/defeat flow, and the game mode displays messages before advancing or restarting the level. The graph also captures the documented enemy-AI and effects capabilities. Source excerpts establish the player, projectile, and game-mode calls; some damage, enemy firing, and level behavior is supported only by the README, so those links are documented rather than inferred from unsampled code.

Main entry points: [`Source/BattleBlaster/Tank.cpp`](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/Tank.cpp) (Player Tank), [`Source/BattleBlaster/BattleBlasterGameMode.cpp`](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BattleBlasterGameMode.cpp) (Game Mode), [`Source/BattleBlaster/BasicPawn.cpp`](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BasicPawn.cpp) (Shared Pawn), [`Source/BattleBlaster/Projectile.cpp`](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/Projectile.cpp) (Projectile)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_combatants["Combatants"]
  node_player["Player Tank<br/>[Tank.cpp]"]
  node_pawn["Shared Pawn<br/>[BasicPawn.cpp]"]
  node_turret["Enemy Turret<br/>[EnemyTurret.cpp]"]
end

subgraph group_combat["Combat Systems"]
  node_projectile["Projectile<br/>[Projectile.cpp]"]
  node_health["Health Component"]
  node_input["Input Actions"]
end

subgraph group_gameflow["Game Flow"]
  node_game_mode["Game Mode"]
  node_game_instance["Game Instance"]
  node_levels["Game Levels"]
end

subgraph group_presentation["Presentation"]
  node_screen_message["Screen Messages<br/>[ScreenMessage.cpp]"]
  node_blueprints["Gameplay Blueprints"]
  node_effects["Combat Effects<br/>[BasicPawn.cpp]"]
end

node_player_actor(("Player"))

node_player_actor -->|"controls"| node_player
node_input -->|"binds actions"| node_player
node_player -->|"inherits behavior"| node_pawn
node_player -->|"aims turret"| node_pawn
node_player -->|"fires through"| node_pawn
node_pawn -->|"spawns"| node_projectile
node_turret -.->|"fires"| node_projectile
node_game_mode -->|"assigns target"| node_turret
node_projectile -->|"applies damage"| node_health
node_health -.->|"reports deaths"| node_game_mode
node_game_mode -->|"updates messages"| node_screen_message
node_game_mode -->|"enables controls"| node_player
node_game_mode -->|"requests transition"| node_game_instance
node_game_instance -.->|"loads levels"| node_levels
node_pawn -->|"plays destruction"| node_effects
node_blueprints -.->|"configures widget"| node_screen_message

click node_player "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/Tank.cpp"
click node_pawn "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BasicPawn.cpp"
click node_turret "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/EnemyTurret.cpp"
click node_projectile "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/Projectile.cpp"
click node_health "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/HealthComponent.cpp"
click node_input "https://github.com/umersyed60/ue5_battleblaster/tree/main/Content/Input"
click node_game_mode "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BattleBlasterGameMode.cpp"
click node_game_instance "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BattleBlasterGameInstance.cpp"
click node_levels "https://github.com/umersyed60/ue5_battleblaster/tree/main/Content/MyStuff"
click node_screen_message "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/ScreenMessage.cpp"
click node_blueprints "https://github.com/umersyed60/ue5_battleblaster/tree/main/Content/Blueprints"
click node_effects "https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BasicPawn.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_player,node_pawn,node_turret toneBlue
class node_projectile,node_health,node_input toneAmber
class node_game_mode,node_game_instance,node_levels toneMint
class node_screen_message,node_blueprints,node_effects toneRose
class node_player_actor toneIndigo
```

## Components

### Combatants

- [Player Tank](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/Tank.cpp): `Source/BattleBlaster/Tank.cpp`
- [Shared Pawn](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BasicPawn.cpp): `Source/BattleBlaster/BasicPawn.cpp`
- [Enemy Turret](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/EnemyTurret.cpp): `Source/BattleBlaster/EnemyTurret.cpp`

### Combat Systems

- [Projectile](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/Projectile.cpp): `Source/BattleBlaster/Projectile.cpp`
- [Health Component](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/HealthComponent.cpp): `Source/BattleBlaster/HealthComponent.cpp`
- [Input Actions](https://github.com/umersyed60/ue5_battleblaster/tree/main/Content/Input): `Content/Input`

### Game Flow

- [Game Mode](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BattleBlasterGameMode.cpp): `Source/BattleBlaster/BattleBlasterGameMode.cpp`
- [Game Instance](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BattleBlasterGameInstance.cpp): `Source/BattleBlaster/BattleBlasterGameInstance.cpp`
- [Game Levels](https://github.com/umersyed60/ue5_battleblaster/tree/main/Content/MyStuff): `Content/MyStuff`

### Presentation

- [Screen Messages](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/ScreenMessage.cpp): `Source/BattleBlaster/ScreenMessage.cpp`
- [Gameplay Blueprints](https://github.com/umersyed60/ue5_battleblaster/tree/main/Content/Blueprints): `Content/Blueprints`
- [Combat Effects](https://github.com/umersyed60/ue5_battleblaster/blob/main/Source/BattleBlaster/BasicPawn.cpp): `Source/BattleBlaster/BasicPawn.cpp`

### Other components

- **Player**

## Connections

- Player → Player Tank: controls (evidence: `README.md`)
- Input Actions → Player Tank: binds actions (evidence: `Source/BattleBlaster/Tank.cpp`)
- Player Tank → Shared Pawn: inherits behavior
- Player Tank → Shared Pawn: aims turret (evidence: `Source/BattleBlaster/Tank.cpp`)
- Player Tank → Shared Pawn: fires through (evidence: `Source/BattleBlaster/BasicPawn.cpp`)
- Shared Pawn → Projectile: spawns (evidence: `Source/BattleBlaster/BasicPawn.cpp`)
- Enemy Turret → Projectile: fires (evidence: `README.md`)
- Game Mode → Enemy Turret: assigns target (evidence: `Source/BattleBlaster/BattleBlasterGameMode.cpp`)
- Projectile → Health Component: applies damage (evidence: `README.md`)
- Health Component → Game Mode: reports deaths
- Game Mode → Screen Messages: updates messages (evidence: `Source/BattleBlaster/BattleBlasterGameMode.cpp`)
- Game Mode → Player Tank: enables controls (evidence: `Source/BattleBlaster/BattleBlasterGameMode.cpp`)
- Game Mode → Game Instance: requests transition (evidence: `Source/BattleBlaster/BattleBlasterGameMode.cpp`)
- Game Instance → Game Levels: loads levels (evidence: `README.md`)
- Shared Pawn → Combat Effects: plays destruction (evidence: `Source/BattleBlaster/BasicPawn.cpp`)
- Gameplay Blueprints → Screen Messages: configures widget
