Package mindustry.game
Class Teams
java.lang.Object
mindustry.game.Teams
Class for various team-based utilities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents 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 TypeMethodDescriptionbooleananyEnemyCoresWithin(Team team, float x, float y, float radius) booleananyEnemyCoresWithinBuildRadius(Team team, float x, float y) booleancanInteract(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 voiddestroyPayload(mindustry.gen.Building build) voideachEnemyCore(Team team, arc.func.Cons<mindustry.gen.Building> ret) Returns team data by type.arc.struct.Seq<Teams.TeamData>Do not modify.booleanReturns whether a team is active, e.g.arc.struct.Seq<CoreBlock.CoreBuild>voidvoidunregisterCore(CoreBlock.CoreBuild entity) voidupdateActive(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)
-