How advocaite/stargate-wars works
Stargate-Wars is an unfinished PHP/SQL browser strategy game. Players register or log in, then use the game interface to manage an empire, economy, military, research, and player interactions; game logic is concentrated in Game and User. Sampled sources confirm entry, account creation, the technology and armory actions, and AJAX page loading. Other gameplay areas are documented mainly by module names, so their exact runtime wiring is not inferred.
Main entry points: index.php Game interface · Game.class.php Game rules · main.js AJAX navigation · User.class.php User accounts
Components 27
Entry and accounts
- Game interface
index.php - Login form
indexpages/login.php - Registration form
indexpages/register.php - AJAX navigation
js/main.js - Page content
indexpages/updates.php
Game engine
- User accounts
base/User.class.php - Game rules
base/Game.class.php - Game database
config.php
Empire management
- Technology
modules/technology.php - Armory
modules/armory.php - Unit training
modules/train.php - Unit untraining
modules/untrain.php - Planet management
modules/base.php - Bank
modules/bank.php - Market
modules/market.php - Fleet dock
modules/fleetdock.php - Spy and action
modules/spy.php - Progress
modules/progress.php
Player interaction
- Messages
modules/messages.php - Send message
modules/sendmessage.php - Alliances
modules/c_ally.php - Recruitment
modules/recruit.php
Game operations
- Turn updates
1milquery.php - Rankings
modules/rank.php - Action logs
modules/actionLogs.php - Game statistics
stats.php
Other components
- Player
Connections 34
- Player → Game interface: opens
- Game interface → Login form: loads
- Game interface → Registration form: loads
- Login form → Game interface: submits credentials
- Game interface → User accounts: authenticates
- Registration form → Game interface: submits registration
- Game interface → User accounts: creates account
- User accounts → Game database: reads and writes
- Game interface → Game rules: creates game
- Game rules → User accounts: extends
- Game rules → Game database: reads and writes
- Player → AJAX navigation: requests pages
- AJAX navigation → Technology: sends action
- AJAX navigation → Armory: sends action
- AJAX navigation → Page content: loads content
- Technology → Game rules: buys and views
- Armory → Game rules: manages weapons
- Armory → Game database: updates inventory
- Turn updates → Game rules: updates turns
- Player → Unit training: manages units
- Player → Unit untraining: manages units
- Player → Planet management: manages planets
- Player → Bank: manages funds
- Player → Market: trades
- Player → Fleet dock: manages fleet
- Player → Spy and action: performs operations
- Player → Progress: views progress
- Player → Rankings: views rankings
- Player → Messages: reads messages
- Player → Send message: sends messages
- Player → Alliances: manages alliance
- Player → Recruitment: recruits players
- Game rules → Action logs: records actions
- Game statistics → Game database: reads statistics