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() |
Actions(ActionNode... actions) |
Actions(Iterable<ActionNode> actions) |
Modifier and Type | Method and Description |
---|---|
void |
add(ActionNode... nodes) |
void |
add(Iterable<ActionNode> actions) |
void |
addToContainer(Container cnt,
Entity entity) |
void |
addToContainer(Container cnt,
Entity entity,
ComponentSelector.ComponentMapper wrapper) |
void |
copyAttributes(ActionNode source) |
void |
copyAttributesIfNotExists(ActionNode source) |
Container |
createHorizontalGrid(Entity entity) |
Actions |
getEnabled(Entity entity)
Get only the enabled actions from this actions list.
|
int |
indexOf(ActionNode action) |
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 Actions()
public Actions(Iterable<ActionNode> actions)
public Actions(ActionNode... actions)
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 void addToContainer(Container cnt, Entity entity, ComponentSelector.ComponentMapper wrapper)
public Actions proxy()
public int indexOf(ActionNode action)
public void copyAttributes(ActionNode source)
public void copyAttributesIfNotExists(ActionNode source)
Copyright © 2021. All Rights Reserved.