Constructor
new AgentArray(args)
Creates an instance of AgentArray. Simply pass-through to super() now, but may add initialization code later.
Parameters
Name | Type | Description |
---|---|---|
args |
* | Zero or more items in Array |
- Source
Example
let aa = new AgentArray({x:0,y:0}, {x:0,y:1}, {x:1,y:0})
console.log(aa) //=> [{ x: 0, y: 0 }, { x: 0, y: 1 }, { x: 1, y: 0 }]