Added body cell functionality
This commit is contained in:
11
src/Organism/Cell/BodyCells/MoverCell.js
Normal file
11
src/Organism/Cell/BodyCells/MoverCell.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const CellStates = require("../CellStates");
|
||||
const BodyCell = require("./BodyCell");
|
||||
|
||||
class MoverCell extends BodyCell{
|
||||
constructor(org, loc_col, loc_row){
|
||||
super(CellStates.mover, org, loc_col, loc_row);
|
||||
this.org.is_mover = true;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MoverCell;
|
||||
Reference in New Issue
Block a user