Dynamic pathfinding

This commit is contained in:
Anuken
2020-05-28 11:27:42 -04:00
parent 638343d25e
commit ed795076f0
13 changed files with 216 additions and 84 deletions

View File

@@ -19,9 +19,9 @@ public class Team implements Comparable<Team>{
public String name;
/** All 256 registered teams. */
private static final Team[] all = new Team[256];
public static final Team[] all = new Team[256];
/** The 6 base teams used in the editor. */
private static final Team[] baseTeams = new Team[6];
public static final Team[] baseTeams = new Team[6];
public final static Team
derelict = new Team(0, "derelict", Color.valueOf("4d4e58")),
@@ -44,16 +44,6 @@ public class Team implements Comparable<Team>{
return all[((byte)id) & 0xff];
}
/** @return the 6 base team colors. */
public static Team[] base(){
return baseTeams;
}
/** @return all the teams - do not use this for lookup! */
public static Team[] all(){
return all;
}
protected Team(int id, String name, Color color){
this.name = name;
this.color = color;