How baanista/solarwars works
SolarWars is an SFML/TGUI space-simulation application. Its visible entry point creates and runs a Launcher; the domain model represents a galaxy of solar systems and celestial objects, with generation helpers for random or Solar-like systems and orbital setup. The excerpts establish the entry call and generation behavior, while several runtime implementations are only indexed or unsampled, so their interactions are not drawn as confirmed calls.
Main entry points: solarsystem.hpp Solar System · celestial.hpp Celestial Body · spaceobject.cpp Space Object · systemGenerators.cpp System Generators
Components 12
Application
- Program Entry
src/Main.cpp - Launcher
src/launcher.cpp - Shared Font
src/global.hpp
Galaxy Model
- Galaxy
src/galaxy.hpp - Solar System
src/solarsystem.hpp
Celestial Model
- Space Object
src/spaceobject.cpp - Celestial Body
src/celestial.hpp - Planetoid
src/planetoid.hpp - Sun
src/sun.hpp
System Generation
- System Generators
src/systemGenerators.cpp - Random Generators
src/randomgenerators.hpp
Other components
- Player
Connections 15
- Player → Program Entry: starts
- Program Entry → Launcher: runs
src/Main.cpp - Galaxy → Solar System: tracks systems
src/galaxy.hpp - Solar System → Space Object: tracks objects
src/solarsystem.hpp - Solar System → Celestial Body: tracks bodies
src/solarsystem.hpp - Solar System → Planetoid: tracks planetoids
src/solarsystem.hpp - Solar System → Sun: tracks suns
src/solarsystem.hpp - Celestial Body → Space Object: extends
src/celestial.hpp - Planetoid → Celestial Body: extends
src/planetoid.hpp - Sun → Celestial Body: extends
src/sun.hpp - System Generators → Solar System: populates systems
src/systemGenerators.cpp - System Generators → Planetoid: creates bodies
src/systemGenerators.cpp - System Generators → Random Generators: chooses parameters
src/systemGenerators.cpp - Celestial Body → Space Object: updates motion
src/celestial.hpp - Space Object → Shared Font: uses font