]> git.localhorst.tv Git - blobs.git/blobdiff - src/blobs.cpp
random walks
[blobs.git] / src / blobs.cpp
index 1d854fc403df7ae6f20258f1ef096fd9616f8b78..f5cc98842b0c13280761b8004c176277a847625a 100644 (file)
@@ -32,7 +32,7 @@ struct SwitchPanel {
                        for (auto a : planet.Creatures()) {
                                if (a != &c) {
                                        state.GetCreaturePanel().Show(*a);
-                                       a->OnDeath([&](creature::Creature &b) { (*this)(b); });
+                                       a->WhenDead([&](creature::Creature &b) { (*this)(b); });
                                        break;
                                }
                        }
@@ -102,7 +102,7 @@ int main(int argc, char *argv[]) {
 
        app::Application app(init.window, init.viewport);
        SwitchPanel swp(planet, app, state);
-       blob->OnDeath([&](creature::Creature &c) { swp(c); });
+       blob->WhenDead([&](creature::Creature &c) { swp(c); });
        app.PushState(&state);
        app.Run();