Mushroom Node
Mushroom Migration
// -----
#include "engine/node.h" // Add: Include.
namespace game {
class Mushroom : public ng::Node { // Add: Inherit from Node.
public:
Mushroom(ng::App* app, const ng::Tilemap* tilemap);
// --- Change: Instead of having a public Update and Draw, override the node's methods. ---
protected:
void Update() override;
void Draw(sf::RenderTarget& target) override;
// --- End ---
// -----
private:
ng::App* app_ = nullptr; // Remove.
};
} // namespace gameLast updated