+void MainLayer::update(Mf::Engine& engine, Mf::Scalar t, Mf::Scalar dt)
+{
+ if (engine.getSize() == 1)
+ {
+ // this is the only layer left on the stack
+ engine.push(TitleLayer::alloc());
+ }
+}
+
+void MainLayer::draw(Mf::Engine& engine, Mf::Scalar alpha) const