Package mindustry.game
Class Teams
java.lang.Object
mindustry.game.Teams
Class for various team-based utilities.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a block made by this team that was destroyed somewhere on the map.static class
-
Field Summary
Modifier and TypeFieldDescriptionActive teams.Seq<mindustry.gen.Unit>
Current boss units.Teams with block or unit presence. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
anyEnemyCoresWithin
(Team team, float x, float y, float radius) boolean
canInteract
(Team team, Team other) closestCore
(float x, float y, Team team) closestEnemyCore
(float x, float y, Team team) Do not modify!void
eachEnemyCore
(Team team, Cons<mindustry.gen.Building> ret) Returns team data by type.Do not modify.boolean
Returns whether a team is active, e.g.void
void
unregisterCore
(CoreBlock.CoreBuild entity) void
-
Field Details
-
active
Active teams. -
present
Teams with block or unit presence. -
bosses
Current boss units.
-
-
Constructor Details
-
Teams
public Teams()
-
-
Method Details
-
closestEnemyCore
-
closestCore
-
anyEnemyCoresWithin
-
eachEnemyCore
-
get
Returns team data by type. -
getOrNull
-
playerCores
-
cores
Do not modify! -
isActive
Returns whether a team is active, e.g. whether it has any cores remaining. -
canInteract
-
getActive
Do not modify. -
registerCore
-
unregisterCore
-
updateTeamStats
public void updateTeamStats()
-