-
Notifications
You must be signed in to change notification settings - Fork 489
EventManager refactoring #2044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
EventManager refactoring #2044
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
735264d
Adds event_tracker class for helping enforce event frequencies
cppcooper 267df4f
Updates 4 event managers to send all events to handlers
cppcooper 3df7848
Removes second buildings list initializer
cppcooper d2bfae2
Separates buildings list into created/destroyed lists
cppcooper 7b7d46b
Adds CREATED_/DESTROYED_ building events while retaining BUILDING event
cppcooper b57a48a
Adds missing event manager prototypes
cppcooper 8ea5c57
Adds plugin devel/event-testing
cppcooper 950854f
Adds todo comment for BUILDING event (needs to be deprecated)
cppcooper b9ba42e
Adds missing return to event_tracker::erase(iterator)
cppcooper a010914
Implements several clion suggestions (foreach loops mostly)
cppcooper 311ba9c
Updates job event managers
cppcooper 2e1f42a
Updates all event managers with boiler plate frequency related code
cppcooper 07c2c3e
Increases event-testing delay to ensure multiple events should send
cppcooper 3495c73
Fixes bug in storing last tick values for event handlers
cppcooper 47b5754
Revises foreach naming
cppcooper ab47f27
Moves tickQueue insertion/logic into a separate TU function
cppcooper 5c52088
Rewrites manageTickEvent, simplifies, adds comments
cppcooper 3fb1954
Fixes manageJobCompletedEvent
cppcooper d858837
Sets the eventLastTick for new registrants to the `current tick - 1`
cppcooper 04f102b
Removes debug print line from manageJobCompletedEvent
cppcooper 52f6e93
Fixes bug in manageBuildingEvent
cppcooper 4c55d2d
Updates manageJobInitiatedEvent to send all events to handlers
cppcooper 3af9892
Adds missing unload clean up for the newJobs list
cppcooper 7104f16
Updates manageItemCreationEvent to send all events to handlers
cppcooper 93e7193
Updates comments to match others
cppcooper 9209833
Begins modifying manageConstructionEvent
cppcooper 32f83fb
Adds std::hash<df::construction>
cppcooper caec9da
Adds more events to devel/event-testing
cppcooper 2a6b310
Revises BUILDING events, adds CONSTRUCTION (added/removed) events
cppcooper 6a52e22
Moves operator== from header to TU in which it is used
cppcooper b34f023
Adds more events to devel/event-testing
cppcooper 642e79e
Adds missing include
cppcooper ad43347
Fixes build errors
cppcooper b22c1c1
Adds hasher for SyndromeData
cppcooper fff9826
Updates manageSyndromeEvent
cppcooper aefa5f0
Updates manageInvasionEvent
cppcooper 8a7c2ca
Updates manageEquipmentEvent (now manageInventoryChangeEvent)
cppcooper dd8bc10
Adds to devel/event-testing
cppcooper fb71e21
Replaces dead unit check with the appropriate Units::isDead()
cppcooper 4a81243
Updates manageReportEvent
cppcooper 8843bf5
Fixes segfault waiting to happen
cppcooper 14ece27
Adds comments about intentionally lost events
cppcooper d3d3dfe
Revises manageSyndromEvent
cppcooper b65a181
Reorders functions in file to keep all event managers together
cppcooper 2faa3e8
Removes errant \
cppcooper 88eb135
Moves operator== for EventManager types to header/class defs
cppcooper 12bfad0
Adds UNIT_ATTACK event to devel/event-testing
cppcooper 121a6c3
Updates onAttack
cppcooper a6567e5
Adds validity check to manageReportsEvent
cppcooper bee450b
Updates manageUnitAttackEvent
cppcooper e4518b2
Updates manageInteractionEvent
cppcooper a8ed873
Revises InteractionData::operator==
cppcooper 9df30f1
Merge branch 'develop' into fix-2031
cppcooper b8f77a3
Adds backlog option for new event registrations
cppcooper 7ed0dc6
Reorders created/destroyed events to send destroyed first
cppcooper 4a89b80
Reorders events, and dynamically builds eventManager array
cppcooper d0a7904
Fixes build errors
cppcooper 51e8980
Revises getManager so that missing Events cause a compiler error
cppcooper 8b30cf4
Revises eventful.cpp to generate correct order of handlers in array
cppcooper 4957523
Revises array generation
cppcooper c84dc5e
Adds comments about the omitted default cases
cppcooper d4f29f6
Merge remote-tracking branch 'upstream/develop' into fix-2031
cppcooper ce3a9f2
Merge branch 'develop' into fix-2031
cppcooper d259462
Moves operator== to df namespace instead of std
cppcooper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.