Tracker extraction: VBulletTracker becomes VBulletEnvironment #121
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Rename VBulletTracker to VBulletEnvironment, move it out of the Gun module into its own type, and make tickGA take it as an explicit parameter. This is a pure refactor with no behavior change.
The virtual bullet tracker is a physics simulation module that currently lives inside Gun. It should be its own type so that: (1) Gun can be tested in isolation, (2) bullet simulation can be swapped without modifying Gun, and (3) the module boundary is explicit.
Acceptance criteria
Blocked by
None - can start immediately
Parent
Closes part of #118
Implemented in commit a730a9e
Summary: Renamed VBulletTracker to VBulletEnvironment and extracted it as an explicit module boundary. Updated tickGA signature to accept env: var VBulletEnvironment parameter. Gun module now decoupled from bullet simulation logic.
Files:
vapourbot_garage/src/vapourbot/gun.nim- Type rename, tickGA signature, all call sites updated