public class Actions extends Object implements Iterable<ActionNode>
A light-weight list of actions. Includes some utility methods that are handy for performing on groups of actions together.
Constructor and Description |
---|
Actions() |
Modifier and Type | Method and Description |
---|---|
void |
add(ActionNode... nodes) |
void |
add(Iterable<ActionNode> actions) |
void |
addToContainer(Container cnt,
Entity entity) |
Actions |
getEnabled(Entity entity)
Get only the enabled actions from this actions list.
|
boolean |
isEmpty() |
Iterator<ActionNode> |
iterator() |
Actions |
proxy() |
Actions |
proxy(Node parent) |
Actions |
setAttributes(Attribute... atts) |
Actions |
setAttributesIfNotSet(Attribute... atts) |
int |
size() |
ActionNode[] |
toArray() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void add(ActionNode... nodes)
public void add(Iterable<ActionNode> actions)
public Actions getEnabled(Entity entity)
Get only the enabled actions from this actions list.
entity
- public int size()
public boolean isEmpty()
public Iterator<ActionNode> iterator()
iterator
in interface Iterable<ActionNode>
public ActionNode[] toArray()
public Actions proxy()
Copyright © 2021. All Rights Reserved.