nmmo.task.group module#

class nmmo.task.group.Group(agents: Iterable[int], name: Optional[str] = None)#

Bases: Sequence, Set

An immutable, ordered, unique group of agents involved in a task

property agents#
count(value) integer -- return number of occurrences of value#
description() Dict#
index(value[, start[, stop]]) integer -- return first index of value.#

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

intersection(o: Group)#
isdisjoint(other)#

Return True if two sets have a null intersection.

union(o: Group)#
update(gs: GameState) None#
nmmo.task.group.complement(group: Group, universe: Group) Group#

Returns the complement of group in universe

nmmo.task.group.union(*groups: Group) Group#

Performs a big union over groups