Package mindustry.game
Class Team
java.lang.Object
mindustry.game.Team
- All Implemented Interfaces:
Comparable<Team>,Senseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Team[]All 256 registered teams.static final Team[]The 6 base teams used in the editor.static final Teamfinal arc.graphics.Colorstatic final Teamstatic final Teamstatic final Teambooleanfinal intbooleanstatic final Teamstatic final Teamfinal arc.graphics.Color[]final int[]static final Team -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()intcore()arc.struct.Seq<CoreBlock.CoreBuild>cores()data()static Teamget(int id) booleanisAI()booleanisAlive()booleanisOnlyAI()items()booleanrules()doublesenseObject(LAccess sensor) voidsetPalette(arc.graphics.Color color) voidsetPalette(arc.graphics.Color pal1, arc.graphics.Color pal2, arc.graphics.Color pal3) toString()
-
Field Details
-
id
public final int id -
color
public final arc.graphics.Color color -
palette
public final arc.graphics.Color[] palette -
palettei
public final int[] palettei -
ignoreUnitCap
public boolean ignoreUnitCap -
emoji
-
hasPalette
public boolean hasPalette -
name
-
all
All 256 registered teams. -
baseTeams
The 6 base teams used in the editor. -
derelict
-
sharded
-
crux
-
malis
-
green
-
blue
-
neoplastic
-
-
Constructor Details
-
Team
-
Team
protected Team(int id, String name, arc.graphics.Color color, arc.graphics.Color pal1, arc.graphics.Color pal2, arc.graphics.Color pal3) Specifies a 3-color team palette.
-
-
Method Details
-
get
-
items
- Returns:
- the core items for this team, or an empty item module. Never add to the resulting item module, as it is mutable.
-
rules
- Returns:
- the team-specific rules.
-
data
-
core
-
active
public boolean active()- Returns:
- whether this team has any buildings on this map; in waves mode, this is always true for the enemy team.
-
isAlive
public boolean isAlive()- Returns:
- whether this team has any active cores. Not the same as active()!
-
isAI
public boolean isAI()- Returns:
- whether this team is supposed to be AI-controlled.
-
isOnlyAI
public boolean isOnlyAI()- Returns:
- whether this team is solely comprised of AI (with no players possible).
-
needsFlowField
public boolean needsFlowField()- Returns:
- whether this team needs a flow field for "dumb" wave pathfinding.
-
cores
-
localized
-
coloredName
-
setPalette
public void setPalette(arc.graphics.Color color) -
setPalette
public void setPalette(arc.graphics.Color pal1, arc.graphics.Color pal2, arc.graphics.Color pal3) -
compareTo
- Specified by:
compareToin interfaceComparable<Team>
-
toString
-
sense
-
senseObject
- Specified by:
senseObjectin interfaceSenseable
-