Removed cruft

This commit is contained in:
MaxRobinsonTheGreat
2020-08-18 11:40:46 -06:00
parent 3f05fbe7f9
commit 3aa0aae4e2
8 changed files with 7 additions and 148 deletions

View File

@@ -1,13 +1,9 @@
// const CellTypes = require("./Cell/CellTypes");
const CellStates = require("../Organism/Cell/CellStates");
const Cell = require("./Cell/GridCell");
const GridMap = require("../Grid/GridMap");
const LocalCell = require("./Cell/LocalCell");
const BodyCellFactory = require("./Cell/BodyCells/BodyCellFactory");
const Neighbors = require("../Grid/Neighbors");
const Hyperparams = require("../Hyperparameters");
const Directions = require("./Directions");
const Eye = require("./Perception/Eye");
const Brain = require("./Perception/Brain");
const directions = [[0,1],[0,-1],[1,0],[-1,0]]
@@ -393,13 +389,6 @@ class Organism {
return this.env.grid_map.cellAt(real_c, real_r);
}
getRealCol(local_cell) {
return this.c + local_cell.rotatedCol(this.rotation);
}
getRealRow(local_cell) {
return this.r + local_cell.rotatedRow(this.rotation);
}
}
module.exports = Organism;