joshjaysalazar / IntelliCaster

An AI race commentator for iRacing
GNU General Public License v3.0
3 stars 1 forks source link

46 split event detections into its own class #54

Closed joshjaysalazar closed 1 year ago

joshjaysalazar commented 1 year ago

Description

A new Events class has been introduced to handle event detection on a separate thread, allowing the Director class to focus on directing the flow of traffic, so to speak, rather than also being responsible for event detection. Along with this came a number of additions and movements to the common file, as well as changes to the settings file. The Events class now creates and updates the drivers list (which is now stored in common), detects events, and puts those events into a queue with all of the information needed to generate commentary. In the future, this queue can also be filtered by event type and time, to allow for prioritization of specific events.

Fixes #46

Type of change

Testing

Numerous tests were run throughout the process of creating the Events class and refactoring other code, ensuring that the functionality of the software is unchanged on the surface.