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 Team
final arc.graphics.Color
static final Team
static final Team
static final Team
boolean
final int
boolean
static final Team
static final Team
final arc.graphics.Color[]
final int[]
static final Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
int
core()
arc.struct.Seq<CoreBlock.CoreBuild>
cores()
data()
static Team
get
(int id) boolean
isAI()
boolean
isAlive()
boolean
isOnlyAI()
items()
boolean
rules()
double
void
setPalette
(arc.graphics.Color color) void
setPalette
(arc.graphics.Color pal1, arc.graphics.Color pal2, arc.graphics.Color pal3) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mindustry.logic.Senseable
sense, senseObject
-
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:
compareTo
in interfaceComparable<Team>
-
toString
-
sense
-