Class Orders
java.lang.Object
megamek.common.autoResolve.acar.order.Orders
- All Implemented Interfaces:
Iterable<Order>,Collection<Order>
Orders is a collection of orders that are loaded into a game. This is used to give AI players access to strategic
objectives for the game being played and be able to change its behavior based on the orders given.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Order> c) voidclear()booleanbooleancontainsAll(Collection<?> c) getOrders(int playerId) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) voidbooleanretainAll(Collection<?> collection) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
Orders
public Orders()
-
-
Method Details
-
getOrders
-
resetOrders
public void resetOrders() -
size
public int size()- Specified by:
sizein interfaceCollection<Order>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Order>
-
contains
- Specified by:
containsin interfaceCollection<Order>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<Order>
-
toArray
@Nonnull public <T> T[] toArray(@Nonnull T[] a) - Specified by:
toArrayin interfaceCollection<Order>
-
add
- Specified by:
addin interfaceCollection<Order>
-
remove
- Specified by:
removein interfaceCollection<Order>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Order>
-
addAll
- Specified by:
addAllin interfaceCollection<Order>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Order>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Order>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Order>
-