How keep-xylent/project-kartel-shop works
Kartel Shop is a C++ console app for game top-ups and member entertainment. Users register or log in, then add balance, buy Mobile Legends diamonds or PUBG UC, play mini-games, and redeem vouchers; admins manage prices, vouchers, transactions, and members. The main program dispatches these workflows, while shared state and file persistence support them. The graph follows the README and shown call sites; some subsystem behavior is documented but its full implementation was not sampled.
Main entry points: database.h Persistent app data · main.cpp Application menu · model.h Member menu · admin.h Admin control panel
Components 17
Console Entry
- Application menu
src/main.cpp - Console presentation
include/utils.h
Member Services
- Registration and login
include/model.h - Member menu
include/model.h - Balance top-up
include/model.h - Persistent app data
include/database.h
Top-up Commerce
- Game selection
include/model.h - Mobile Legends top-up
include/modelml.h - PUBG Mobile top-up
include/modelpubg.h
Games and Rewards
- Mini-games menu
include/games.h - Voucher redemption
include/games.h
Administration
- Admin control panel
include/admin.h - Price management
include/admin.h - Voucher settings
include/admin.h - Transaction history
include/admin.h - Member management
include/admin.h
Other components
- Console user
Connections 26
- Console user → Application menu: uses
src/main.cpp - Application menu → Persistent app data: loads data
src/main.cpp - Application menu → Registration and login: dispatches login
src/main.cpp - Application menu → Registration and login: dispatches registration
src/main.cpp - Application menu → Registration and login: lists members
src/main.cpp - Application menu → Admin control panel: opens admin
src/main.cpp - Application menu → Member menu: opens member area
src/main.cpp - Registration and login → Persistent app data: saves registration
include/model.h - Member menu → Balance top-up: dispatches top-up
include/model.h - Member menu → Game selection: dispatches game purchase
include/model.h - Member menu → Mini-games menu: opens games
include/model.h - Member menu → Voucher redemption: dispatches redemption
include/model.h - Game selection → Mobile Legends top-up: opens ML shop
include/model.h - Game selection → PUBG Mobile top-up: opens PUBG shop
include/model.h - Mobile Legends top-up → Persistent app data: records purchase
include/modelml.h - PUBG Mobile top-up → Persistent app data: records purchase
include/modelpubg.h - Mini-games menu → Persistent app data: records wins
include/games.h - Voucher redemption → Persistent app data: saves redemption
include/games.h - Admin control panel → Price management: opens settings
include/admin.h - Admin control panel → Voucher settings: opens settings
include/admin.h - Admin control panel → Transaction history: opens history
include/admin.h - Admin control panel → Member management: opens management
include/admin.h - Price management → Persistent app data: saves prices
include/admin.h - Voucher settings → Persistent app data: saves settings
include/admin.h - Transaction history → Persistent app data: reads history
include/admin.h - Member management → Persistent app data: saves changes
include/admin.h