forked from IF-LK-2020/arrays2
rollAll
This commit is contained in:
@@ -51,7 +51,11 @@ public class Arrays {
|
|||||||
* @see Wuerfel#werfen()
|
* @see Wuerfel#werfen()
|
||||||
*/
|
*/
|
||||||
public void rollAll( Wuerfel[] pArray ) {
|
public void rollAll( Wuerfel[] pArray ) {
|
||||||
// TODO: implementieren
|
for (Wuerfel w : pArray) {
|
||||||
|
if (w != null) {
|
||||||
|
w.werfen();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user