How watabou/towngeneratoros works
The repository is the Medieval Fantasy City Generator, a Haxe/OpenFL application. The apparent user-to-result workflow is city-generation interaction followed by presentation of a town scene, with mapping, building geometry, and ward types as domain layers. The README confirms the product but gives no implementation details; source excerpts were unavailable, so the links below are tentative and shown as dashed rather than asserted calls.
Main entry points: TownScene.hx Town Scene · CityMap.hx City Map · Model.hx Building Model · Main.hx Application Entry
Components 24
Application
- Application Entry
Source/com/watabou/towngenerator/Main.hx - State Manager
Source/com/watabou/towngenerator/StateManager.hx - Town Scene
Source/com/watabou/towngenerator/TownScene.hx
Town Generation
- City Map
Source/com/watabou/towngenerator/mapping/CityMap.hx - Map Brush
Source/com/watabou/towngenerator/mapping/Brush.hx - Map Palette
Source/com/watabou/towngenerator/mapping/Palette.hx - Patch View
Source/com/watabou/towngenerator/mapping/PatchView.hx - Ward Types
Source/com/watabou/towngenerator/wards - Building Model
Source/com/watabou/towngenerator/building/Model.hx - Building Topology
Source/com/watabou/towngenerator/building/Topology.hx - Shape Cutter
Source/com/watabou/towngenerator/building/Cutter.hx - Curtain Wall
Source/com/watabou/towngenerator/building/CurtainWall.hx - Building Patch
Source/com/watabou/towngenerator/building/Patch.hx
Geometry
- Graph Geometry
Source/com/watabou/geom/Graph.hx - Voronoi Geometry
Source/com/watabou/geom/Voronoi.hx - Polygon Geometry
Source/com/watabou/geom/Polygon.hx - Spline Geometry
Source/com/watabou/geom/Spline.hx
Display
- Display Engine
Source/com/watabou/coogee/Game.hx - Texture Atlas
Source/com/watabou/coogee/Atlas.hx - Movie Clip
Source/com/watabou/coogee/MovieClip.hx - Bitmap Text
Source/com/watabou/coogee/BitmapText.hx - Nine Patch
Source/com/watabou/coogee/NinePatch.hx - Interface Controls
Source/com/watabou/towngenerator/ui
Other components
- User
Connections 23
- User → Application Entry: starts app
- Application Entry → State Manager: manages state
- State Manager → Town Scene: selects scene
- Town Scene → City Map: presents map
- City Map → Ward Types: uses wards
- City Map → Map Brush: uses brush
- City Map → Map Palette: uses palette
- City Map → Patch View: renders patches
- Ward Types → Building Model: defines buildings
- Building Model → Building Topology: uses topology
- Building Model → Shape Cutter: uses cutter
- Building Model → Curtain Wall: uses walls
- Building Model → Building Patch: uses patches
- City Map → Graph Geometry: uses geometry
- City Map → Voronoi Geometry: uses geometry
- Building Model → Polygon Geometry: uses geometry
- Building Model → Spline Geometry: uses geometry
- Town Scene → Display Engine: renders through
- Town Scene → Interface Controls: shows controls
- Town Scene → Texture Atlas: uses assets
- Town Scene → Movie Clip: displays clips
- Town Scene → Bitmap Text: displays labels
- Town Scene → Nine Patch: draws panels