Fix #10: update all occurences of to

This commit is contained in:
Riley Shaw 2014-08-26 01:32:52 -07:00
parent 7bbf1db88e
commit 89a9fc668d
4 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@ var factory = (function () {
return true;
};
baseCreature.prototype.queue = function (neighbors) {
baseCreature.prototype.process = function (neighbors) {
var step = {};
var maxEnergy = this.maxEnergy;
@ -122,7 +122,7 @@ var factory = (function () {
baseCA.prototype.boundEnergy = function () {};
baseCA.prototype.isDead = function () { return false; };
baseCA.prototype.queue = function (neighbors) {};
baseCA.prototype.process = function (neighbors) {};
baseCA.prototype.wait = function () {};
// Storage for our creature types

View File

@ -99,7 +99,7 @@ Terrarium.prototype.step = function (steps) {
_.getNeighborCoords(x, y, gridWidth - 1, gridHeight - 1, creature.actionRadius),
zipCoordsWithNeighbors
);
var result = creature.queue(neighbors);
var result = creature.process(neighbors);
if (result) {
var eigenColumn = eigenGrid[result.x];
if (!eigenColumn[result.y]) eigenColumn[result.y] = [];

6
dist/terra.js vendored
View File

@ -107,7 +107,7 @@ var factory = (function () {
return true;
};
baseCreature.prototype.queue = function (neighbors) {
baseCreature.prototype.process = function (neighbors) {
var step = {};
var maxEnergy = this.maxEnergy;
@ -133,7 +133,7 @@ var factory = (function () {
baseCA.prototype.boundEnergy = function () {};
baseCA.prototype.isDead = function () { return false; };
baseCA.prototype.queue = function (neighbors) {};
baseCA.prototype.process = function (neighbors) {};
baseCA.prototype.wait = function () {};
// Storage for our creature types
@ -391,7 +391,7 @@ Terrarium.prototype.step = function (steps) {
_.getNeighborCoords(x, y, gridWidth - 1, gridHeight - 1, creature.actionRadius),
zipCoordsWithNeighbors
);
var result = creature.queue(neighbors);
var result = creature.process(neighbors);
if (result) {
var eigenColumn = eigenGrid[result.x];
if (!eigenColumn[result.y]) eigenColumn[result.y] = [];

2
dist/terra.min.js vendored

File diff suppressed because one or more lines are too long