abstreet/docs/TODO_refactoring.md
2019-01-17 22:26:35 -08:00

1.2 KiB

TODO - Refactoring

  • easier way to define magic tuneable constants
    • and maybe to recalculate fixedish things if they change?

Map layer

  • pt2d resolution

    • then my own physics types
  • maybe also the time to split into different lane types? what's similar/not between them?

    • graph querying?
    • rendering (and other UI/editor interactions)?
    • sim state?
    • Sidewalk, Parking, Street

Sim layer

  • consider refactoring car/ped sim

    • basic structure with actions, react, stepping is same. SimQueue, lookahead, can goto? differs.
  • detangle sim managers... but first, figure out how to capture stacktraces

  • figure out responsibility btwn agents and managers, then fix up visibility

  • things like ParkingSimState have so many methods -- some are only meant for spawner, or driving/walking to query. separate out some traits.

  • on a lane vs turn permeates so many places