Giter Site home page Giter Site logo

Comments (4)

esengine avatar esengine commented on August 15, 2024

目的不是为了检查是否有update方法,是为了检测是否继承了IConditional接口,不过ts目前不支持判断是否继承接口所以当时先用这种比较不明确的方式来做了处理

from behaviourtree-ai.

wanannaturalcurl avatar wanannaturalcurl commented on August 15, 2024

所以预期是只有实现了继承了IConditional接口才会返回true,类似工程里的ExecuteActionConditional、RandomProbability和ConditionalDecorator这几个类。而其他类似Decorator、Selector这种只继承Behavior不实现IConditional接口应该返回false。可以这样理解吗?

from behaviourtree-ai.

esengine avatar esengine commented on August 15, 2024

是的,这个接口现在看来是有问题的,是需要找一个新的替代方案

from behaviourtree-ai.

esengine avatar esengine commented on August 15, 2024

目前先这样处理,如果有更好的方法可以替换,用一个限定的类型来作为判定

from behaviourtree-ai.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.