newmen/versatile-diamond

View on GitHub
engine/cpp/reactions/spec_reaction.h

Summary

Maintainability
Test Coverage
#ifndef SINGLE_REACTION_H
#define SINGLE_REACTION_H

#include "../tools/creator.h"
#include "reaction.h"

namespace vd
{

class SpecReaction : public Reaction, public Creator
{
public:
    virtual void store() { mcRemember(); }
    void remove() override { mcForget(); }

protected:
    SpecReaction() = default;

    virtual void mcRemember() = 0;
    virtual void mcForget() = 0;
};

}

#endif // SINGLE_REACTION_H