Class Team

java.lang.Object
mindustry.game.Team
All Implemented Interfaces:
Comparable<Team>, Senseable

public class Team extends Object implements Comparable<Team>, Senseable
  • 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

      public String emoji
    • hasPalette

      public boolean hasPalette
    • name

      public String name
    • all

      public static final Team[] all
      All 256 registered teams.
    • baseTeams

      public static final Team[] baseTeams
      The 6 base teams used in the editor.
    • derelict

      public static final Team derelict
    • sharded

      public static final Team sharded
    • crux

      public static final Team crux
    • malis

      public static final Team malis
    • green

      public static final Team green
    • blue

      public static final Team blue
    • neoplastic

      public static final Team neoplastic
  • Constructor Details

    • Team

      protected Team(int id, String name, arc.graphics.Color color)
    • 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

      public static Team get(int id)
    • items

      public ItemModule 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

      public Rules.TeamRule rules()
      Returns:
      the team-specific rules.
    • data

      public Teams.TeamData data()
    • core

      @Nullable public CoreBlock.CoreBuild 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

      public arc.struct.Seq<CoreBlock.CoreBuild> cores()
    • localized

      public String localized()
    • coloredName

      public String 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

      public int compareTo(Team team)
      Specified by:
      compareTo in interface Comparable<Team>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • sense

      public double sense(LAccess sensor)
      Specified by:
      sense in interface Senseable