MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ParallelNode

Method ParallelNode

source/game/StarBehaviorDatabase.cpp:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134SelectorNode::SelectorNode(List<BehaviorNodeConstPtr> children) : children(children) { }
135
136ParallelNode::ParallelNode(StringMap<NodeParameter> parameters, List<BehaviorNodeConstPtr> children) : children(children) {
137 int s = parameters.get("success").second.get<Json>().optInt().value(-1);
138 succeed = s == -1 ? children.size() : s;
139
140 int f = parameters.get("fail").second.get<Json>().optInt().value(-1);
141 fail = f == -1 ? children.size() : f;
142}
143
144DynamicNode::DynamicNode(List<BehaviorNodeConstPtr> children) : children(children) { }
145

Callers

nothing calls this directly

Calls 4

optIntMethod · 0.80
valueMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected