MengeCrowdSim / Menge

The source code for the Menge crowd simulation framework
Apache License 2.0
138 stars 64 forks source link

Action "state-leaving" behavior refactored #16

Closed curds01 closed 7 years ago

curds01 commented 7 years ago

When an agent leaves a state, the action allows for a boolean "reset". This change allows a more general change. Specifically, upon exiting the parent state, the action class can do two things: one is dependent on the reset flag (formerly called "leaveAction", now called "resetAction") and another action which will be invoked unconditionally (the new "leaveAction". It is guaranteed that the resetAction will be invoked before the the leaveAction (if invoked at all).