addAll

fun addAll(vararg components: T)

Adds all GameComponentViews passed as varargs to this GameComponentContainer.

Whenever a GameComponentView is encountered, that is already contained, an IllegalArgumentException is thrown and no further GameComponentView is added.

Parameters

components

Vararg GameComponentViews to add.

Throws


fun addAll(collection: Collection<T>)

Adds all GameComponentViews contained in collection to this GameComponentContainer.

Whenever an GameComponentView] is encountered, that is already contained, an IllegalArgumentException is thrown and no further GameComponentView is added.

Parameters

collection

Collection containing the GameComponentViews to add.

Throws