Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPaulBrewer committed May 28, 2016
1 parent 942e00d commit 9b0768f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b0768f

Please sign in to comment.