Unit command prototype
This commit is contained in:
@@ -47,6 +47,8 @@ public class Rules{
|
||||
public boolean damageExplosions = true;
|
||||
/** Whether fire is enabled. */
|
||||
public boolean fire = true;
|
||||
/** Erekir-specific: If true, unit RTS controls can be used. */
|
||||
public boolean unitCommand = false;
|
||||
/** Whether units use and require ammo. */
|
||||
public boolean unitAmmo = false;
|
||||
/** EXPERIMENTAL! If true, blocks will update in units and share power. */
|
||||
|
||||
@@ -8,7 +8,6 @@ import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.*;
|
||||
import mindustry.ai.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.entities.units.*;
|
||||
import mindustry.gen.*;
|
||||
import mindustry.type.*;
|
||||
@@ -236,23 +235,19 @@ public class Teams{
|
||||
public UnitCommand command = UnitCommand.attack;
|
||||
|
||||
/** Quadtree for all buildings of this team. Null if not active. */
|
||||
@Nullable
|
||||
public QuadTree<Building> buildings;
|
||||
public @Nullable QuadTree<Building> buildings;
|
||||
/** Current unit cap. Do not modify externally. */
|
||||
public int unitCap;
|
||||
/** Total unit count. */
|
||||
public int unitCount;
|
||||
/** Counts for each type of unit. Do not access directly. */
|
||||
@Nullable
|
||||
public int[] typeCounts;
|
||||
public @Nullable int[] typeCounts;
|
||||
/** Quadtree for units of this team. Do not access directly. */
|
||||
@Nullable
|
||||
public QuadTree<Unit> tree;
|
||||
public @Nullable QuadTree<Unit> tree;
|
||||
/** Units of this team. Updated each frame. */
|
||||
public Seq<Unit> units = new Seq<>();
|
||||
/** Units of this team by type. Updated each frame. */
|
||||
@Nullable
|
||||
public Seq<Unit>[] unitsByType;
|
||||
public @Nullable Seq<Unit>[] unitsByType;
|
||||
|
||||
public TeamData(Team team){
|
||||
this.team = team;
|
||||
|
||||
Reference in New Issue
Block a user