Class BaseGhostBehavior
java.lang.Object
com.fs.starfarer.api.impl.campaign.ghosts.BaseGhostBehavior
- All Implemented Interfaces:
GhostBehavior
- Direct Known Subclasses:
GBCircle
,GBDartAround
,GBEchoMovement
,GBFollow
,GBFollowClosely
,GBFollowStream
,GBGoAwayFrom
,GBGoAwayFromFixed
,GBGoInDirection
,GBGoInDirectionWithWobble
,GBGoTo
,GBIntercept
,GBLeadPlayerTo
,GBLeviathanCalfRun
,GBStayInPlace
,GBStormArea
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterrupt
(GhostBehaviorInterrupt interrupt) void
advance
(float amount, SensorGhost ghost) void
end()
boolean
isDone()
-
Field Details
-
duration
protected float duration -
interrupts
-
-
Constructor Details
-
BaseGhostBehavior
public BaseGhostBehavior(float duration)
-
-
Method Details
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceGhostBehavior
-
advance
- Specified by:
advance
in interfaceGhostBehavior
-
end
public void end() -
addInterrupt
- Specified by:
addInterrupt
in interfaceGhostBehavior
-