Skip to content
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

Events rework #22

Closed
FlightControl-User opened this issue Apr 16, 2016 · 1 comment
Closed

Events rework #22

FlightControl-User opened this issue Apr 16, 2016 · 1 comment
Assignees
Labels
Enhancement Moose code enhancement.

Comments

@FlightControl-User
Copy link
Contributor

I need to enhance the event logic and the event dispatcher.

Right now, each class object, that implements an event function will receive the event, even if the event was not meant for that object.

f.e., if i have 2 SPAWN objects, SpawnA and SpawnB, and a crash event occurs of a unit belonging to SpawnA, then both SpawnA and SpawnB will receive the event.

However, DCS for certain (not all!) events include the UNIT name of the event.
I need to do a good analysis which events are related to units, and add event dispatchers for units, so that when the event is received within the dispatcher, it can immediately dispatch the event to the correct object that should receive the event, instead of letting each object decide if the event is for him...

This work can be done, but i want to encapsulate the event complexity by provide in the BASE class for each event type an API. So, this development will require some good analysis of the events being triggered by DCS in all possible scenarios, and then write an ecapsulation API around that in BASE.
Then, i need to REWORK in the class hierarchy of MOOSE the different event implementations to use the new API. So, i'll start with that and create a branch...

@FlightControl-User FlightControl-User added the Enhancement Moose code enhancement. label Apr 28, 2016
@FlightControl-User
Copy link
Contributor Author

Events are reworked through the EVENT class, but i need APIs for each event to be made.
Once that is completed, i can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Moose code enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant