Skip to content

Commit

Permalink
HumanWanderTask updates GameEndService
Browse files Browse the repository at this point in the history
  • Loading branch information
The-AhmadAA committed Sep 10, 2023
1 parent 45f0d05 commit eb6e284
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 211 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.csse3200.game.physics.components.ColliderComponent;
import com.csse3200.game.physics.components.HitboxComponent;
import com.csse3200.game.rendering.AnimationRenderComponent;
import com.csse3200.game.services.ServiceLocator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -94,7 +95,7 @@ public void update() {
// Check if engineer has finished dying animation
else if (isDead && owner.getEntity().getComponent(AnimationRenderComponent.class).isFinished()) {
owner.getEntity().setFlagForDelete(true);
// TODO: make the appropriate calls to decrement the human count.
ServiceLocator.getGameEndService().updateEngineerCount();
}

// otherwise doing engineer things since engineer is alive
Expand Down
Binary file not shown.
Loading

0 comments on commit eb6e284

Please sign in to comment.