Better fog / Research cost tweaks

This commit is contained in:
Anuken
2022-02-19 16:24:22 -05:00
parent c5ec8ff3ce
commit 895fa784cf
17 changed files with 158 additions and 117 deletions

View File

@@ -18,6 +18,11 @@ abstract class TeamComp implements Posc{
return team.rules().cheat;
}
/** @return whether the center of this entity is visible to the viewing team. */
boolean inFogTo(Team viewer){
return this.team != viewer && !fogControl.isVisible(viewer, x, y);
}
@Nullable
public CoreBuild core(){
return team.core();