NotNode.cc 313 B

12345678910111213141516171819202122
  1. #include <glog/logging.h>
  2. #include "Event/NotNode.h"
  3. namespace Egametang {
  4. NotNode::~NotNode()
  5. {
  6. delete node;
  7. }
  8. bool NotNode::Check(ContexIf* contex)
  9. {
  10. return !node->Check(contex);
  11. }
  12. void NotNode::AddChildNode(NodeIf *node, int type)
  13. {
  14. CHECK_EQ(1, type);
  15. this->node = node;
  16. }
  17. } // namespace Egametang