Engine Class
The simulation engine. Manages the state running of the simulation
Methods
_step
()
Internal step of the simulation engine. Periodically called.
getSettings
()
Object
Get the engine settings, configured in constructor [options]
Returns:
Object:
options
reset
()
Boolean
Resets=Restarts the state of the simulation.
Returns:
Boolean:
true if running; false otherwise
run
(
Boolean
-
entity
Starts the simulation
Parameters:
-
entity
Entityto report in the onStart callback as trigger
Returns:
Boolean:
true if running; false otherwise