diff --git a/README.md b/README.md index 2b36c32..f88b3f5 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ each Agent instance has access to these methods |Agent method| usage | param | type | description | |------------|-------|-------|------|-------------| -|`Agent.prototype.init(newSettings)`| called by `Agent.prototype.initPeriod` | `newSettings` | object | copies `newSettings.inventory` to `this.inventory` without overwriting inventory levels in `this.inventory` not in `newSettings.inventory, then copies any remaining properties of `newSettings` to `this`; If `this.money` is set and money inventory is undefined, sets money inventory to zero. sets `this.wakeTime` to next wake up time. | +|`.init(newSettings)`| called by `Agent.prototype.initPeriod`; external applications should probably call .initPeriod instead | `newSettings` | object | copies `newSettings.inventory` to `this.inventory` without overwriting inventory levels in `this.inventory` not in `newSettings.inventory, then copies any remaining properties of `newSettings` to `this`; If `this.money` is set and money inventory is undefined, sets money inventory to zero. sets `this.wakeTime` to next wake up time. | +|` ##Agent Events