# forestms1/hogwartslegacyclone_team architecture

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

- Interactive diagram: https://gitdiagram.com/forestms1/hogwartslegacyclone_team
- Repository: https://github.com/forestms1/hogwartslegacyclone_team

## Overview

This repository is a Windows 3D action-RPG clone built on a custom C++ engine. The principal player workflow is third-person exploration and NPC interaction, followed by spell combat against enemies and bosses, with HUD and encounter feedback. Distinct content branches include world/level loading, AI and boss behavior, broom flight, and the physics-based Summoner’s Court minigame; internal layers provide rendering, physics, animation, audio, effects, and scripting. README capabilities guide the domain map; many source relationships are not shown in the sampled excerpts, so uncertain links are omitted or marked unverified.

Main entry points: [`Client/Private/Player.cpp`](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player.cpp) (Player), [`Client/Private/LevelHogwartWorld.cpp`](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/LevelHogwartWorld.cpp) (World Levels), [`Client/Private/Player_SkillStateBase.cpp`](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player_SkillStateBase.cpp) (Spell Combat), [`Client/Private/Monster.cpp`](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Monster.cpp) (Enemy AI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Gameplay"]
  node_player["Player<br/>[Player.cpp]"]
  node_spells["Spell Combat"]
  node_enemies["Enemy AI<br/>[Monster.cpp]"]
  node_bosses["Boss Encounters<br/>[EnderDragon.cpp]"]
  node_npc["NPC Interaction<br/>[WorldNpc.cpp]"]
  node_flight["Broom Flight<br/>[Player_Broom.cpp]"]
  node_court["Court Minigame"]
  node_ui["Game UI<br/>[UIManager.cpp]"]
end

subgraph group_content["World Content"]
  node_world["World Levels"]
  node_cinematic["Cinematics"]
end

subgraph group_engine["Engine Runtime"]
  node_engine["Game Framework"]
  node_physics["Physics<br/>[PhysXManager.cpp]"]
  node_animation["Animation"]
  node_render["Rendering<br/>[Renderer.cpp]"]
  node_lighting["Lighting<br/>[LightManager.cpp]"]
  node_effects["Particles"]
  node_audio["Sound<br/>[SoundManager.cpp]"]
  node_lua["Lua Scripting"]
end

subgraph group_tools["Tools"]
  node_mapeditor["Map Editor"]
end

node_actor(("Player"))

node_actor -.->|"controls"| node_player
node_player -.->|"explores"| node_world
node_player -.->|"interacts"| node_npc
node_player -.->|"casts"| node_spells
node_spells -.->|"fights"| node_enemies
node_enemies -.->|"includes"| node_bosses
node_player -.->|"rides"| node_flight
node_player -.->|"plays"| node_court
node_world -.->|"presents"| node_ui
node_player -.->|"updates"| node_ui
node_player -.->|"animates"| node_animation
node_enemies -.->|"animates"| node_animation
node_court -.->|"uses physics"| node_physics
node_world -.->|"hosts"| node_cinematic
node_cinematic -.->|"uses sound"| node_audio
node_spells -.->|"spawns effects"| node_effects
node_engine -.->|"renders"| node_render
node_render -.->|"uses lighting"| node_lighting
node_mapeditor -->|"edits terrain"| node_world
node_actor -.->|"authors"| node_mapeditor

click node_player "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player.cpp"
click node_spells "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player_SkillStateBase.cpp"
click node_enemies "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Monster.cpp"
click node_bosses "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/EnderDragon.cpp"
click node_npc "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/WorldNpc.cpp"
click node_flight "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player_Broom.cpp"
click node_court "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/AccioActivity_Base.cpp"
click node_ui "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/UIManager.cpp"
click node_world "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/LevelHogwartWorld.cpp"
click node_cinematic "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/CinematicEditor.cpp"
click node_engine "https://github.com/forestms1/hogwartslegacyclone_team/tree/develop/Engine/Public"
click node_physics "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/PhysXManager.cpp"
click node_animation "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/AnimationObject.cpp"
click node_render "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/Renderer.cpp"
click node_lighting "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/LightManager.cpp"
click node_effects "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/ParticleManager.cpp"
click node_audio "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/SoundManager.cpp"
click node_lua "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/LuaBindingsEngine.cpp"
click node_mapeditor "https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/MapEditor/Private/TerrainBrushController.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_spells,node_enemies,node_bosses,node_npc,node_flight,node_court,node_ui toneBlue
class node_world,node_cinematic toneAmber
class node_engine,node_physics,node_animation,node_render,node_lighting,node_effects,node_audio,node_lua toneMint
class node_mapeditor toneRose
class node_actor toneIndigo
```

## Components

### Gameplay

- [Player](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player.cpp): `Client/Private/Player.cpp`
- [Spell Combat](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player_SkillStateBase.cpp): `Client/Private/Player_SkillStateBase.cpp`
- [Enemy AI](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Monster.cpp): `Client/Private/Monster.cpp`
- [Boss Encounters](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/EnderDragon.cpp): `Client/Private/EnderDragon.cpp`
- [NPC Interaction](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/WorldNpc.cpp): `Client/Private/WorldNpc.cpp`
- [Broom Flight](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/Player_Broom.cpp): `Client/Private/Player_Broom.cpp`
- [Court Minigame](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/AccioActivity_Base.cpp): `Client/Private/AccioActivity_Base.cpp`
- [Game UI](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/UIManager.cpp): `Client/Private/UIManager.cpp`

### World Content

- [World Levels](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/LevelHogwartWorld.cpp): `Client/Private/LevelHogwartWorld.cpp`
- [Cinematics](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Client/Private/CinematicEditor.cpp): `Client/Private/CinematicEditor.cpp`

### Engine Runtime

- [Game Framework](https://github.com/forestms1/hogwartslegacyclone_team/tree/develop/Engine/Public): `Engine/Public`
- [Physics](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/PhysXManager.cpp): `Engine/Private/PhysXManager.cpp`
- [Animation](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/AnimationObject.cpp): `Engine/Private/AnimationObject.cpp`
- [Rendering](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/Renderer.cpp): `Engine/Private/Renderer.cpp`
- [Lighting](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/LightManager.cpp): `Engine/Private/LightManager.cpp`
- [Particles](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/ParticleManager.cpp): `Engine/Private/ParticleManager.cpp`
- [Sound](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/SoundManager.cpp): `Engine/Private/SoundManager.cpp`
- [Lua Scripting](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/Engine/Private/LuaBindingsEngine.cpp): `Engine/Private/LuaBindingsEngine.cpp`

### Tools

- [Map Editor](https://github.com/forestms1/hogwartslegacyclone_team/blob/develop/MapEditor/Private/TerrainBrushController.cpp): `MapEditor/Private/TerrainBrushController.cpp`

### Other components

- **Player**

## Connections

- Player → Player: controls
- Player → World Levels: explores
- Player → NPC Interaction: interacts
- Player → Spell Combat: casts
- Spell Combat → Enemy AI: fights
- Enemy AI → Boss Encounters: includes
- Player → Broom Flight: rides
- Player → Court Minigame: plays
- World Levels → Game UI: presents
- Player → Game UI: updates
- Player → Animation: animates
- Enemy AI → Animation: animates
- Court Minigame → Physics: uses physics
- World Levels → Cinematics: hosts
- Cinematics → Sound: uses sound
- Spell Combat → Particles: spawns effects
- Game Framework → Rendering: renders
- Rendering → Lighting: uses lighting
- Map Editor → World Levels: edits terrain (evidence: `MapEditor/Private/TerrainBrushController.cpp`)
- Player → Map Editor: authors
