001package com.fs.starfarer.api.impl.campaign.intel.group;
002
003import com.fs.starfarer.api.impl.campaign.fleets.RouteManager.RouteData;
004import com.fs.starfarer.api.impl.campaign.fleets.RouteManager.RouteSegment;
005import com.fs.starfarer.api.util.Misc;
006
007public class BaseFGAction implements FGAction {
008
009        protected FleetGroupIntel intel;
010        protected String id = null;
011        protected boolean finished = false;
012        protected float elapsed = 0f;
013        
014        public BaseFGAction() {
015        }
016
017
018        public void addRouteSegment(RouteData route) {
019                
020        }
021
022
023        public FleetGroupIntel getIntel() {
024                return intel;
025        }
026        public void setIntel(FleetGroupIntel intel) {
027                this.intel = intel;
028        }
029
030
031        public void directFleets(float amount) {
032                elapsed += Misc.getDays(amount);
033        }
034
035        public boolean isActionFinished() {
036                return finished;
037        }
038
039        public void setActionFinished(boolean finished) {
040                this.finished = finished;
041                
042//              if (finished) {
043//                      intel.notifyActionFinished(this);
044//              }
045        }
046
047
048        public void notifySegmentFinished(RouteSegment segment) {
049
050        }
051
052
053        public void notifyFleetsSpawnedMidSegment(RouteSegment segment) {
054                
055        }
056
057        public String getId() {
058                return id;
059        }
060
061        public void setId(String id) {
062                this.id = id;
063        }
064
065        public float getElapsed() {
066                return elapsed;
067        }
068
069        public void setElapsed(float elapsed) {
070                this.elapsed = elapsed;
071        }
072
073
074        public float getEstimatedDaysToComplete() {
075                return 0;
076        }
077        
078        
079        
080}