You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
369 B
29 lines
369 B
10 years ago
|
package net.sector.level.drivers;
|
||
|
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* List of AI tasks
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class TaskList extends ArrayList<AiTask> {
|
||
|
|
||
|
/**
|
||
|
* Make a copy
|
||
|
*
|
||
|
* @return copy
|
||
|
*/
|
||
|
public TaskList copy() {
|
||
|
TaskList newList = new TaskList();
|
||
|
for (AiTask task : this) {
|
||
|
newList.add(task.copy());
|
||
|
}
|
||
|
|
||
|
return newList;
|
||
|
}
|
||
|
|
||
|
}
|