NodeIf.h 419 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef EVENT_NODEIF_H
  2. #define EVENT_NODEIF_H
  3. #include <string>
  4. namespace Egametang {
  5. class ContexIf;
  6. class EventNode;
  7. class NodeIf
  8. {
  9. public:
  10. virtual bool Run(ContexIf* contex) = 0;
  11. virtual void AddChildNode(NodeIf *node)
  12. {
  13. }
  14. virtual std::string ToString() = 0;
  15. };
  16. class NodeFactoryIf
  17. {
  18. public:
  19. virtual NodeIf* GetInstance(const EventNode& conf) = 0;
  20. };
  21. } // namespace Egametang
  22. #endif // EVENT_NODEIF_H