# austinar59/nomansland architecture

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

- Interactive diagram: https://gitdiagram.com/austinar59/nomansland
- Repository: https://github.com/austinar59/nomansland

## Overview

This appears to be a Godot strategy game centered on a battlefield map, provinces, and combat units, with interfaces for selecting and buying units and displaying battle outcomes. A likely player workflow is to interact with the map, manage units, and reach victory or defeat. The tree identifies these product areas but provides no README or source excerpts, so relationships below are dashed and unverified; they are inferred from component names, not inspected runtime calls.

Main entry points: [`scn/map.tscn`](https://github.com/austinar59/nomansland/blob/main/scn/map.tscn) (Map scene), [`gsc/units/unit.gd`](https://github.com/austinar59/nomansland/blob/main/gsc/units/unit.gd) (Unit behavior), [`scn/battle_field_prototype.tscn`](https://github.com/austinar59/nomansland/blob/main/scn/battle_field_prototype.tscn) (Battlefield scene), [`gsc/battlefield_state_manager.gd`](https://github.com/austinar59/nomansland/blob/main/gsc/battlefield_state_manager.gd) (Battlefield manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_map["Map and territory"]
  node_map_scene["Map scene<br/>[map.tscn]"]
  node_country["Country data<br/>[country.gd]"]
  node_province_data["Province data<br/>[province_data.gd]"]
  node_province_list["Province list<br/>[province_list.gd]"]
  node_map_shader["Map shader<br/>[map.gdshader]"]
end

subgraph group_battle["Battle and units"]
  node_battle_scene["Battlefield scene"]
  node_battle_manager["Battlefield manager"]
  node_enemy_ai["Enemy AI"]
  node_unit_data["Unit data<br/>[unit_data.gd]"]
  node_unit_base["Unit behavior<br/>[unit.gd]"]
  node_soldier["Basic soldier<br/>[basic_soldier.gd]"]
  node_light_tank["Light tank<br/>[light_tank.gd]"]
  node_heavy_tank["Heavy tank<br/>[heavy_tank.gd]"]
  node_bullet["Bullet<br/>[bullet.gd]"]
  node_heavy_bullet["Heavy bullet<br/>[heavy_bullet.gd]"]
end

subgraph group_flow["Game flow"]
  node_stop_go["Stop/go control<br/>[stop_go_control.gd]"]
  node_victory["Victory screen"]
  node_defeat["Defeat screen"]
end

subgraph group_interface["Player interface"]
  node_battle_menu["Battlefield unit menu"]
  node_selection_mode["Selection mode panel"]
  node_buy_panel["Buy unit panel"]
  node_select_panel["Select unit panel"]
  node_province_panel["Province panel"]
  node_click_area["Clickable area"]
  node_top_info["Top information<br/>[top_info.gd]"]
  node_battle_info["Battle information"]
end

node_player(("Player"))

node_player -.->|"interacts with"| node_map_scene
node_map_scene -.->|"uses territory"| node_province_data
node_map_scene -.->|"renders with"| node_map_shader
node_player -.->|"enters battle"| node_battle_scene
node_battle_scene -.->|"manages state"| node_battle_manager
node_battle_manager -.->|"coordinates"| node_enemy_ai
node_battle_scene -.->|"hosts units"| node_unit_base
node_unit_base -.->|"uses stats"| node_unit_data
node_unit_base -.->|"specializes as"| node_soldier
node_unit_base -.->|"specializes as"| node_light_tank
node_unit_base -.->|"specializes as"| node_heavy_tank
node_light_tank -.->|"fires"| node_bullet
node_heavy_tank -.->|"fires"| node_heavy_bullet
node_player -.->|"selects through"| node_click_area
node_click_area -.->|"opens"| node_province_panel
node_player -.->|"manages units"| node_battle_menu
node_battle_menu -.->|"offers selection"| node_selection_mode
node_battle_menu -.->|"offers purchase"| node_buy_panel
node_battle_menu -.->|"offers selection"| node_select_panel
node_player -.->|"controls battle"| node_stop_go
node_battle_manager -.->|"ends in victory"| node_victory
node_battle_manager -.->|"ends in defeat"| node_defeat
node_map_scene -.->|"shows country data"| node_country
node_map_scene -.->|"uses province list"| node_province_list
node_battle_scene -.->|"shows battle information"| node_battle_info
node_map_scene -.->|"shows information"| node_top_info

click node_map_scene "https://github.com/austinar59/nomansland/blob/main/scn/map.tscn"
click node_country "https://github.com/austinar59/nomansland/blob/main/gsc/country.gd"
click node_province_data "https://github.com/austinar59/nomansland/blob/main/gsc/province_data.gd"
click node_province_list "https://github.com/austinar59/nomansland/blob/main/gsc/province_list.gd"
click node_map_shader "https://github.com/austinar59/nomansland/blob/main/gsc/shader/map.gdshader"
click node_battle_scene "https://github.com/austinar59/nomansland/blob/main/scn/battle_field_prototype.tscn"
click node_battle_manager "https://github.com/austinar59/nomansland/blob/main/gsc/battlefield_state_manager.gd"
click node_enemy_ai "https://github.com/austinar59/nomansland/blob/main/gsc/ai/enemy_ai_management.gd"
click node_unit_data "https://github.com/austinar59/nomansland/blob/main/gsc/unit_data.gd"
click node_unit_base "https://github.com/austinar59/nomansland/blob/main/gsc/units/unit.gd"
click node_soldier "https://github.com/austinar59/nomansland/blob/main/gsc/units/basic_soldier.gd"
click node_light_tank "https://github.com/austinar59/nomansland/blob/main/gsc/units/light_tank.gd"
click node_heavy_tank "https://github.com/austinar59/nomansland/blob/main/gsc/units/heavy_tank.gd"
click node_bullet "https://github.com/austinar59/nomansland/blob/main/gsc/units/weapons/bullet.gd"
click node_heavy_bullet "https://github.com/austinar59/nomansland/blob/main/gsc/units/weapons/heavy_bullet.gd"
click node_stop_go "https://github.com/austinar59/nomansland/blob/main/gsc/stop_go_control.gd"
click node_victory "https://github.com/austinar59/nomansland/blob/main/gsc/victory_container.gd"
click node_defeat "https://github.com/austinar59/nomansland/blob/main/defeat_container.gd"
click node_battle_menu "https://github.com/austinar59/nomansland/blob/main/gsc/battlefield_units_menu.gd"
click node_selection_mode "https://github.com/austinar59/nomansland/blob/main/gsc/bottom_unit_selection_mode_panel.gd"
click node_buy_panel "https://github.com/austinar59/nomansland/blob/main/gsc/buy_unit_panel_container.gd"
click node_select_panel "https://github.com/austinar59/nomansland/blob/main/gsc/select_unit_panel_container.gd"
click node_province_panel "https://github.com/austinar59/nomansland/blob/main/gsc/province_panel_container.gd"
click node_click_area "https://github.com/austinar59/nomansland/blob/main/gsc/player_clickable_area.gd"
click node_top_info "https://github.com/austinar59/nomansland/blob/main/gsc/top_info.gd"
click node_battle_info "https://github.com/austinar59/nomansland/blob/main/gsc/top_info_battlefield.gd"

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_map_scene,node_country,node_province_data,node_province_list,node_map_shader toneBlue
class node_battle_scene,node_battle_manager,node_enemy_ai,node_unit_data,node_unit_base,node_soldier,node_light_tank,node_heavy_tank,node_bullet,node_heavy_bullet toneAmber
class node_stop_go,node_victory,node_defeat toneMint
class node_battle_menu,node_selection_mode,node_buy_panel,node_select_panel,node_province_panel,node_click_area,node_top_info,node_battle_info toneRose
class node_player toneIndigo
```

## Components

### Map and territory

- [Map scene](https://github.com/austinar59/nomansland/blob/main/scn/map.tscn): `scn/map.tscn`
- [Country data](https://github.com/austinar59/nomansland/blob/main/gsc/country.gd): `gsc/country.gd`
- [Province data](https://github.com/austinar59/nomansland/blob/main/gsc/province_data.gd): `gsc/province_data.gd`
- [Province list](https://github.com/austinar59/nomansland/blob/main/gsc/province_list.gd): `gsc/province_list.gd`
- [Map shader](https://github.com/austinar59/nomansland/blob/main/gsc/shader/map.gdshader): `gsc/shader/map.gdshader`

### Battle and units

- [Battlefield scene](https://github.com/austinar59/nomansland/blob/main/scn/battle_field_prototype.tscn): `scn/battle_field_prototype.tscn`
- [Battlefield manager](https://github.com/austinar59/nomansland/blob/main/gsc/battlefield_state_manager.gd): `gsc/battlefield_state_manager.gd`
- [Enemy AI](https://github.com/austinar59/nomansland/blob/main/gsc/ai/enemy_ai_management.gd): `gsc/ai/enemy_ai_management.gd`
- [Unit data](https://github.com/austinar59/nomansland/blob/main/gsc/unit_data.gd): `gsc/unit_data.gd`
- [Unit behavior](https://github.com/austinar59/nomansland/blob/main/gsc/units/unit.gd): `gsc/units/unit.gd`
- [Basic soldier](https://github.com/austinar59/nomansland/blob/main/gsc/units/basic_soldier.gd): `gsc/units/basic_soldier.gd`
- [Light tank](https://github.com/austinar59/nomansland/blob/main/gsc/units/light_tank.gd): `gsc/units/light_tank.gd`
- [Heavy tank](https://github.com/austinar59/nomansland/blob/main/gsc/units/heavy_tank.gd): `gsc/units/heavy_tank.gd`
- [Bullet](https://github.com/austinar59/nomansland/blob/main/gsc/units/weapons/bullet.gd): `gsc/units/weapons/bullet.gd`
- [Heavy bullet](https://github.com/austinar59/nomansland/blob/main/gsc/units/weapons/heavy_bullet.gd): `gsc/units/weapons/heavy_bullet.gd`

### Game flow

- [Stop/go control](https://github.com/austinar59/nomansland/blob/main/gsc/stop_go_control.gd): `gsc/stop_go_control.gd`
- [Victory screen](https://github.com/austinar59/nomansland/blob/main/gsc/victory_container.gd): `gsc/victory_container.gd`
- [Defeat screen](https://github.com/austinar59/nomansland/blob/main/defeat_container.gd): `defeat_container.gd`

### Player interface

- [Battlefield unit menu](https://github.com/austinar59/nomansland/blob/main/gsc/battlefield_units_menu.gd): `gsc/battlefield_units_menu.gd`
- [Selection mode panel](https://github.com/austinar59/nomansland/blob/main/gsc/bottom_unit_selection_mode_panel.gd): `gsc/bottom_unit_selection_mode_panel.gd`
- [Buy unit panel](https://github.com/austinar59/nomansland/blob/main/gsc/buy_unit_panel_container.gd): `gsc/buy_unit_panel_container.gd`
- [Select unit panel](https://github.com/austinar59/nomansland/blob/main/gsc/select_unit_panel_container.gd): `gsc/select_unit_panel_container.gd`
- [Province panel](https://github.com/austinar59/nomansland/blob/main/gsc/province_panel_container.gd): `gsc/province_panel_container.gd`
- [Clickable area](https://github.com/austinar59/nomansland/blob/main/gsc/player_clickable_area.gd): `gsc/player_clickable_area.gd`
- [Top information](https://github.com/austinar59/nomansland/blob/main/gsc/top_info.gd): `gsc/top_info.gd`
- [Battle information](https://github.com/austinar59/nomansland/blob/main/gsc/top_info_battlefield.gd): `gsc/top_info_battlefield.gd`

### Other components

- **Player**

## Connections

- Player → Map scene: interacts with
- Map scene → Province data: uses territory
- Map scene → Map shader: renders with
- Player → Battlefield scene: enters battle
- Battlefield scene → Battlefield manager: manages state
- Battlefield manager → Enemy AI: coordinates
- Battlefield scene → Unit behavior: hosts units
- Unit behavior → Unit data: uses stats
- Unit behavior → Basic soldier: specializes as
- Unit behavior → Light tank: specializes as
- Unit behavior → Heavy tank: specializes as
- Light tank → Bullet: fires
- Heavy tank → Heavy bullet: fires
- Player → Clickable area: selects through
- Clickable area → Province panel: opens
- Player → Battlefield unit menu: manages units
- Battlefield unit menu → Selection mode panel: offers selection
- Battlefield unit menu → Buy unit panel: offers purchase
- Battlefield unit menu → Select unit panel: offers selection
- Player → Stop/go control: controls battle
- Battlefield manager → Victory screen: ends in victory
- Battlefield manager → Defeat screen: ends in defeat
- Map scene → Country data: shows country data
- Map scene → Province list: uses province list
- Battlefield scene → Battle information: shows battle information
- Map scene → Top information: shows information
