001package com.fs.starfarer.api.impl.campaign.intel.events; 002 003import java.awt.Color; 004 005import com.fs.starfarer.api.campaign.StarSystemAPI; 006import com.fs.starfarer.api.ui.TooltipMakerAPI; 007import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator; 008import com.fs.starfarer.api.util.Misc; 009 010public class BaseHostileActivityCause2 implements HostileActivityCause2 { 011 012 protected HostileActivityEventIntel intel; 013 014 public BaseHostileActivityCause2(HostileActivityEventIntel intel) { 015 this.intel = intel; 016 } 017 018 public float getMagnitudeContribution(StarSystemAPI system) { 019 return 0; 020 } 021 022 public int getProgress() { 023 return 0; 024 } 025 026 public boolean shouldShow() { 027 return getProgress() != 0; 028 } 029 030 public String getDesc() { 031 return null; 032 } 033 034 public String getProgressStr() { 035 int p = getProgress(); 036 if (p > 0) { 037 return "+" + p; 038 } 039 return "" + p; 040 } 041 042 public Color getDescColor(BaseEventIntel intel) { 043 if (getProgress() == 0) { 044 return Misc.getGrayColor(); 045 } 046 return Misc.getTextColor(); 047 } 048 049 public Color getProgressColor(BaseEventIntel intel) { 050 return intel.getProgressColor(getProgress()); 051 } 052 053 public TooltipCreator getTooltip() { 054 return null; 055 } 056 057 public void addExtraRows(TooltipMakerAPI info, BaseEventIntel intel) { 058 059 } 060} 061