Package mindustry.game
Class Teams
java.lang.Object
mindustry.game.Teams
Class for various team-based utilities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents a block made by this team that was destroyed somewhere on the map.static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.struct.Seq<Teams.TeamData>
Active teams.arc.struct.Seq<mindustry.gen.Unit>
Current boss units.arc.struct.Seq<Teams.TeamData>
Teams with block or unit presence. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
anyEnemyCoresWithin
(Team team, float x, float y, float radius) boolean
anyEnemyCoresWithinBuildRadius
(Team team, float x, float y) boolean
canInteract
(Team team, Team other) closestCore
(float x, float y, Team team) closestEnemyCore
(float x, float y, Team team) arc.struct.Seq<CoreBlock.CoreBuild>
Do not modify!static void
destroyPayload
(mindustry.gen.Building build) void
eachEnemyCore
(Team team, arc.func.Cons<mindustry.gen.Building> ret) Returns team data by type.arc.struct.Seq<Teams.TeamData>
Do not modify.boolean
Returns whether a team is active, e.g.arc.struct.Seq<CoreBlock.CoreBuild>
void
void
unregisterCore
(CoreBlock.CoreBuild entity) void
updateActive
(Team team) void
-
Field Details
-
active
Active teams. -
present
Teams with block or unit presence. -
bosses
public arc.struct.Seq<mindustry.gen.Unit> bossesCurrent boss units.
-
-
Constructor Details
-
Teams
public Teams()
-
-
Method Details
-
closestEnemyCore
-
closestCore
-
anyEnemyCoresWithinBuildRadius
-
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. -
updateActive
-
registerCore
-
unregisterCore
-
updateTeamStats
public void updateTeamStats() -
destroyPayload
public static void destroyPayload(mindustry.gen.Building build)
-