Skip to content

Implement a 'get children()' method in Action so extended classes can override it #30

Description

@jbcpollak

Currently we do something like this to fake it in a custom Action:

    constructor(child1, child2) {
        super();
        this.child1 = child1;
        this.child2 = child2;
        // TODO: this is a hack to render the tree
        // Implement getChildren() method in Blueshell
        this.children = [child1, child2];
    }

The onEvent(state, event) method doesn't use any of the existing child-handling support to decide which child to call.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions