How sitser0/battlecity_ works
BattleCity is a C++/SDL game with a menu-driven flow into single-player gameplay or a level editor. Gameplay manages a level, player and opposing tanks, bullets, and map blocks; the editor lets players paint and save custom maps. The graph includes the documented two-player option, but the sampled evidence does not establish its runtime wiring. Edges are limited to README statements and relationships visible in indexed or excerpted source; unsampled implementation details are omitted.
Main entry points: Tank.cpp Tank Logic · Object.cpp Game Object · Block.h Block · main.cpp Menu
Components 19
Player Entry
- Menu
BattleCity/main.cpp
Game Runtime
- Game
BattleCity/GameProcess/Game.cpp - Solo Game
BattleCity/GameProcess/SoloGame.h - Level Data
BattleCity/levels/levels.h - Player Model
BattleCity/Player.cpp
Game Objects
- Game Object
BattleCity/Objects/Object.cpp - Tank Logic
BattleCity/Objects/Tanks/Tank.cpp - T34 Tank
BattleCity/Objects/Tanks/T34/T34.cpp - Tiger Tank
BattleCity/Objects/Tanks/Tiger/Tiger.cpp - Panther Tank
BattleCity/Objects/Tanks/Panther/Panther.cpp - Mouse Tank
BattleCity/Objects/Tanks/Mouse/Mouse.cpp - Bullet
BattleCity/Objects/Bullets/Bullet.cpp - Block
BattleCity/Objects/Blocks/Block.h - Brick Wall
BattleCity/Objects/Blocks/BrickWall/Brick.h - Bushes
BattleCity/Objects/Blocks/Bushes/Bushes.h - Stone
BattleCity/Objects/Blocks/Stone/Stone.h - Game Constants
BattleCity/constatnti_itd.h
Level Creation
- Level Editor
BattleCity/CreatingLevels/CreatingLevel.cpp
Other components
- Player
Connections 16
- Player → Menu: chooses mode
README.MD - Menu → Game: starts game
BattleCity/main.cpp - Menu → Level Editor: opens editor
BattleCity/main.cpp - Game → Level Data: loads level data
BattleCity/GameProcess/Game.cpp - Tank Logic → Game Object: inherits
- Bullet → Game Object: inherits
- Block → Game Object: inherits
BattleCity/Objects/Blocks/Block.h - T34 Tank → Tank Logic: inherits
- Tiger Tank → Tank Logic: inherits
- Panther Tank → Tank Logic: inherits
- Mouse Tank → Tank Logic: inherits
- Brick Wall → Block: inherits
BattleCity/Objects/Blocks/BrickWall/Brick.h - Bushes → Block: inherits
BattleCity/Objects/Blocks/Bushes/Bushes.h - Stone → Block: inherits
BattleCity/Objects/Blocks/Stone/Stone.h - Game Object → Game Constants: uses definitions
- Level Editor → Game Constants: uses definitions