ArrayList GameTask tasks public void executeTasks int tasks size while

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ArrayList<GameTask> tasks;
public void executeTasks() {
int k = tasks.size();
while (k != 0) {
Task t = tasks.shift();
if t instanceof GameWaiter {
} else {
t.execute(this);
}
k--;
}
};