Files
lifeEngine/src/Environments/Environment.js
MaxRobinsonTheGreat 92d679ca18 mild code refactoring
2020-07-29 15:15:21 -06:00

18 lines
353 B
JavaScript

//An evironment has a grid_map, controller, and renderer
class Environment{
constructor() {
}
update(){
alert("Environment.update() must be overriden");
}
changeCell(c, r, type, owner) {
this.grid_map.setCellType(c, r, type);
this.grid_map.setCellOwner(c, r, owner);
}
}
module.exports = Environment;