How ilevi-code/ikariam-clone works
Ikariam Clone is a browser-based strategy-game application built on CodeIgniter. The principal workflow is a web request routed to game or action controllers, which implement game interactions and return game views; action code also performs database operations. The README identifies battles and barbarian villages as missing, so they are not represented as implemented capabilities. Several controller/model links are necessarily omitted because their source was not sampled; dashed links mark unverified runtime wiring.
Main entry points: game.php Game controller · CodeIgniter.php Framework bootstrap · actions.php Game actions · Router.php URI router
Components 25
Request handling
- Front controller
index.php - Route mapping
application/config/routes.php - Main controller
application/controllers/main.php
Game experience
- Game controller
application/controllers/game.php - Game actions
application/controllers/actions.php - Game views
application/views/view - Game shell
application/views/game_index.php - Game language
application/language/english/game_lang.php
Game domain
- Island map
application/libraries/map.php - Building rules
application/libraries/buildings.php - Mission data
application/libraries/mission_data.php - Player state
application/models/player_model.php - Game data
application/models/data_model.php - Island data
application/models/island_model.php - Game updates
application/models/update_model.php - Game database
application/config/database.php
Administration
- Admin controller
application/controllers/acp.php - Installer
application/controllers/install.php - Install model
application/models/install_model.php
CodeIgniter runtime
- Framework bootstrap
system/core/CodeIgniter.php - URI router
system/core/Router.php - Class loader
system/core/Loader.php - Base controller
system/core/Controller.php - Configuration
system/core/Config.php
Other components
- Player
Connections 25
- Player → Front controller: sends request
index.php - Front controller → Framework bootstrap: starts runtime
index.php - Framework bootstrap → URI router: initializes
system/core/CodeIgniter.php - URI router → Configuration: reads settings
system/core/Router.php - URI router → Route mapping: loads routes
application/config/routes.php - Route mapping → Main controller: defaults to
application/config/routes.php - Framework bootstrap → Game controller: dispatches
- Framework bootstrap → Main controller: dispatches
- Base controller → Class loader: initializes
system/core/Controller.php - Class loader → Game data: loads models
system/core/Loader.php - Game controller → Game views: renders
- Game controller → Game shell: renders
- Game actions → Game controller: requires
application/controllers/actions.php - Game actions → Building rules: requires
application/controllers/actions.php - Game actions → Mission data: requires
application/controllers/actions.php - Game actions → Game database: queries
application/controllers/actions.php - Game controller → Player state: uses
- Game controller → Game data: uses
- Game controller → Island data: uses
- Game controller → Game updates: uses
- Game controller → Island map: uses
- Game controller → Game language: displays text
- Framework bootstrap → Admin controller: dispatches
- Framework bootstrap → Installer: dispatches
- Installer → Install model: uses