NodeIf.h 404 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef EVENT_NODEIF_H
  2. #define EVENT_NODEIF_H
  3. namespace Egametang {
  4. class ContexIf
  5. {
  6. };
  7. enum ChildNodeType
  8. {
  9. LEFT = 0,
  10. RIGHT = 1,
  11. };
  12. class NodeIf
  13. {
  14. public:
  15. virtual bool Check(ContexIf* contex) = 0;
  16. virtual void AddChildNode(NodeIf *node, int type);
  17. };
  18. class NodeFactoryIf
  19. {
  20. public:
  21. virtual NodeIf* GetInstance(const LogicNode& conf) = 0;
  22. };
  23. } // namespace Egametang
  24. #endif // EVENT_NODEIF_H