diff --git a/README.md b/README.md index 7b07bfb..4692cd2 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,38 @@ Qt6/C++ port of [C-evo](http://c-evo.org/), an open-source Civilization-like turn-based strategy game originally written in Object Pascal (Lazarus/Delphi). +## Why C++/Qt? + +- **Modern, actively maintained toolkit.** Qt6 is cross-platform (Linux/ + Windows/macOS), still receives regular releases, and has a much larger + contributor/tooling ecosystem than Lazarus/FreePascal's LCL - easier to + find help, IDE support, and third-party libraries going forward. +- **C++ is a closer semantic match than it looks.** Object Pascal's classes, + units, and manual-memory-management style map onto C++ far more directly + than onto a garbage-collected or heavily-macro'd language would - most of + this port is a faithful, almost line-by-line translation rather than a + rewrite, which keeps behavior (and bugs!) traceable back to the original + source instead of hiding a parallel reimplementation effort. +- **Qt already has the pieces the original hand-rolled.** The original ships + its own `TButtonN`/DPI-scaling/graphic-set machinery (`ScreenTools.pas`, + `CevoComponents`) because VCL/LCL didn't give it what it needed; Qt's + `QPainter`/`QImage`/high-DPI support cover most of that natively, so this + port's `Dpi::` namespace is a thin, mechanical adapter layer instead of a + from-scratch UI framework. +- **Qt's class hierarchy mirrors VCL/LCL closely.** `TApplication` -> + `QApplication`, `TButton` -> `QPushButton`, `TForm` -> `QWidget`, and so + on - the two frameworks grew from the same late-90s/2000s component-based + GUI toolkit lineage, so porting a dialog is mostly a mechanical rename + rather than a conceptual redesign. +- **One codebase, no Pascal-dialect split.** The original already forks + between Delphi and Lazarus/FreePascal (see `Switches.inc`) to support both + toolchains; standardizing on one modern, single-vendor-neutral stack + removes that whole axis of complexity going forward. +- **Native performance, no VM/interpreter.** Same deployment model as the + original (a single native binary), so none of the simulation-heavy game + logic (map generation, AI turns) needed to be redesigned around a managed + runtime's constraints. + ## Status The game is feature-complete for single-player/hotseat play, ported @@ -24,7 +56,12 @@ incrementally: CityScreen, CityType, ClientTools, Diagram, Diplomacy, Draft, Enhance, Help, IsoEngine, KeyBindings, MessgEx, NatStat, Nego, Rates, Select, TechTree, Term, Tribes, UnitStat, Wonders) - fully - ported. + ported, including every in-game dialog's real localized text (no + placeholder English guesses left) and a full-text Help search. + `Help.pas` is split across `Help.cpp`/`Help.Prepare.cpp`/ + `Help.Paint.cpp` (it's ~2300 lines in the original) and renders real + per-topic icons (advances/improvements/terrain/features/governments/ + special units) plus embedded illustrations, not placeholder text. - `Back.pas`, `Direct.pas`, `Inp.pas`, `NoTerm.pas`, `Settings.pas`, `Start.pas` (the splash/AI-init/new-game setup screens) - ported. The "Start new game -> random map" quick-start page additionally @@ -38,10 +75,14 @@ Known, deliberate gaps (not planned unless someone wants to tackle them): - The in-game Help system's Credits page doesn't scan `Graphics/`/`Sounds/` for per-asset `*.credits.txt` files (a real filesystem-scanning credit roll in the original); the AI-credits and author/localization sections - are intact. Everything else in Help (advances, improvements, terrain, - features, special units, governments, terrain jobs, and all the + are intact. A couple of its cosmetic pixel effects are simplified too + (the wonder-illustration watermark blend is a plain icon blit instead of + the original's sky-detecting fade; the terrain-tile icon is a single + representative sprite instead of 2-layer edge-blended compositing). + Everything else in Help (advances, improvements, terrain, features, + special units, governments, terrain jobs, search, and all the concept/quickstart/hotkeys/about hypertext pages with their inline - links) is fully ported. + links and illustrations) is fully ported. ## Build