Condensed unit group array

This commit is contained in:
Anuken
2019-12-25 22:26:51 -05:00
parent 9016c12d16
commit 2b22b7e7e4
9 changed files with 33 additions and 39 deletions

View File

@@ -126,6 +126,11 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
this.team = team;
}
/** @return whether this unit counts toward the enemy amount in the wave UI. */
public boolean countsAsEnemy(){
return true;
}
public UnitType getType(){
return type;
}

View File

@@ -32,6 +32,10 @@ public abstract class BaseDrone extends FlyingUnit{
}
};
public boolean countsAsEnemy(){
return false;
}
@Override
public void onCommand(UnitCommand command){
//do nothing, normal commands are not applicable here