This file contains 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
var landscape = new Landscape(); // one actor | |
// make instance of Machine and get the root nodes for each actor | |
var machine = new Machine(); | |
landscape.state = machine.generateTree(landscapeJson, landscape); | |
// every second, something happens in the ecosystem | |
setTimeout("step()", 1000); | |
var step = function() { | |
// trigger the next state transition |