Moved drawBuilding to UnitType
This commit is contained in:
@@ -290,10 +290,6 @@ abstract class BuilderComp implements Posc, Statusc, Teamc, Rotc{
|
|||||||
return plans.size == 0 ? null : plans.first();
|
return plans.size == 0 ? null : plans.first();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void draw(){
|
|
||||||
drawBuilding();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void drawBuilding(){
|
public void drawBuilding(){
|
||||||
//TODO make this more generic so it works with builder "weapons"
|
//TODO make this more generic so it works with builder "weapons"
|
||||||
boolean active = activelyBuilding();
|
boolean active = activelyBuilding();
|
||||||
|
|||||||
@@ -1193,6 +1193,8 @@ public class UnitType extends UnlockableContent implements Senseable{
|
|||||||
public void draw(Unit unit){
|
public void draw(Unit unit){
|
||||||
if(unit.inFogTo(Vars.player.team())) return;
|
if(unit.inFogTo(Vars.player.team())) return;
|
||||||
|
|
||||||
|
unit.drawBuilding();
|
||||||
|
|
||||||
boolean isPayload = !unit.isAdded();
|
boolean isPayload = !unit.isAdded();
|
||||||
|
|
||||||
Mechc mech = unit instanceof Mechc ? (Mechc)unit : null;
|
Mechc mech = unit instanceof Mechc ? (Mechc)unit : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user