13 void addToGroup(Group mGroup)
override {
14 Entity::addToGroup(mGroup);
15 manager.AddToGroup(
this, mGroup);
18 void removeGroup(Group mGroup)
override {
19 Entity::removeGroup(mGroup);
20 manager.aboutTo_updateActiveEntities();
27 void update(
float deltaTime)
33 Entity::update(deltaTime);
36 void cellUpdate()
override {
37 if (this->ownerCell) {
39 if (newCell != this->ownerCell) {
42 manager.grid->addEmpty(
this, newCell);
49 void imgui_print()
override {
50 glm::vec2 position = this->GetComponent<TransformComponent>().getPosition();
51 ImGui::Text(
"TazPosition: (%.2f, %.2f)", position.x, position.y);
56 manager.aboutTo_updateActiveEntities();