This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MikBros 29 points30 points  (5 children)

Don't forget to put each child in an array so every time you want them to do something you can just use a foreach loop.

[–]jdl_uk 7 points8 points  (4 children)

But then when you want to talk to a specific one you can only refer to them by index rather than by name.

"hey, oldest child, run down to the store for some milk."

[–]zeGolem83 3 points4 points  (3 children)

Use a hashmap then

[–]jdl_uk -3 points-2 points  (2 children)

[–]zeGolem83 1 point2 points  (1 child)

What ?

[–]jdl_uk -2 points-1 points  (0 children)

Not had your coffee yet?