h4l0
05-29-2009, 01:59 AM
Alice will let you do the following:
for (int index=0; index< 3 times ; index++) {
( whichObject [ index ] ) .move( RIGHT , 5 meters );
}
Where whichObject is an array that contains three objects.
However it won't let me do this:
for (int index=0; index< 3 times ; index++) {
( whichUfo [ index ] ) .userDefinedMethod();
}
Other than using if statements, is there a way around this?
Thanks
h4l0
for (int index=0; index< 3 times ; index++) {
( whichObject [ index ] ) .move( RIGHT , 5 meters );
}
Where whichObject is an array that contains three objects.
However it won't let me do this:
for (int index=0; index< 3 times ; index++) {
( whichUfo [ index ] ) .userDefinedMethod();
}
Other than using if statements, is there a way around this?
Thanks
h4l0