mirror of
https://github.com/rileyjshaw/terra.git
synced 2024-11-21 04:54:23 +00:00
Fix #10: update all occurences of to
This commit is contained in:
parent
7bbf1db88e
commit
89a9fc668d
@ -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
|
||||
|
@ -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
6
dist/terra.js
vendored
@ -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
2
dist/terra.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user