Class DuelPanel
java.lang.Object
com.fs.starfarer.api.campaign.BaseCustomUIPanelPlugin
com.fs.starfarer.api.impl.campaign.eventide.DuelPanel
- All Implemented Interfaces:
CustomUIPanelPlugin
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DuelEnemyAI
protected String
protected DuelBackground
protected FaderUtil
int
static boolean
protected float
protected InteractionDialogAPI
static boolean
static boolean
protected Actor
protected float
protected float
protected PositionAPI
protected CustomPanelAPI
protected List<QuadParticles>
protected Actor
protected boolean
protected DuelTutorialPanel
protected float
static float
protected boolean
protected float
protected float
-
Constructor Summary
ConstructorsConstructorDescriptionDuelPanel
(Actor player, Actor enemy, DuelEnemyAI ai, DuelBackground background) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
advance
(float amount) checkAttackVsDefense
(Actor attacker, Actor defender) void
static Actor
createActor
(String tex, boolean skilled) static DuelPanel
createDefault
(boolean playerSkilled, boolean enemySkilled, String ambienceLoopId) static DuelPanel
createTutorial
(boolean playerSkilled, String ambienceLoopId) void
doAI
(float amount) float
float
getEnemy()
float
float
getPanel()
void
init
(CustomPanelAPI panel, CustomVisualDialogDelegate.DialogCallbacks callbacks, InteractionDialogAPI dialog) void
positionChanged
(PositionAPI position) Called whenever the location or size of this UI panel changes.void
processInput
(List<InputEventAPI> events) List of input events that occurred this frame.void
render
(float alphaMult) alphaMult is the transparency the panel should be rendered at.void
renderBelow
(float alphaMult) Below any UI elements in the panel.void
renderHealth
(float alphaMult) void
void
Methods inherited from class com.fs.starfarer.api.campaign.BaseCustomUIPanelPlugin
buttonPressed
-
Field Details
-
SOUND_LOC_MULT
public static float SOUND_LOC_MULT -
DEBUG
public static boolean DEBUG -
dialog
-
callbacks
-
panel
-
p
-
player
-
enemy
-
particles
-
floorLevel
protected float floorLevel -
leftBorder
protected float leftBorder -
rightBorder
protected float rightBorder -
viewAreaWidth
protected float viewAreaWidth -
ai
-
background
-
tutorialMode
protected boolean tutorialMode -
prompt
-
blinker
-
ambienceLoopId
-
desiredViewCenterX
protected float desiredViewCenterX -
viewCenterX
protected float viewCenterX -
DO_CYCLE
public static boolean DO_CYCLE -
DO_CYCLE_HIGH
public static boolean DO_CYCLE_HIGH -
cycleIndex
public int cycleIndex -
cycle
-
cycleHigh
-
prevWasAttack
protected boolean prevWasAttack
-
-
Constructor Details
-
DuelPanel
-
-
Method Details
-
createDefault
-
createTutorial
-
createActor
-
init
public void init(CustomPanelAPI panel, CustomVisualDialogDelegate.DialogCallbacks callbacks, InteractionDialogAPI dialog) -
getPanel
-
getPosition
-
getFloorLevel
public float getFloorLevel() -
positionChanged
Description copied from interface:CustomUIPanelPlugin
Called whenever the location or size of this UI panel changes.- Specified by:
positionChanged
in interfaceCustomUIPanelPlugin
- Overrides:
positionChanged
in classBaseCustomUIPanelPlugin
-
render
public void render(float alphaMult) Description copied from interface:CustomUIPanelPlugin
alphaMult is the transparency the panel should be rendered at.- Specified by:
render
in interfaceCustomUIPanelPlugin
- Overrides:
render
in classBaseCustomUIPanelPlugin
-
renderBelow
public void renderBelow(float alphaMult) Description copied from interface:CustomUIPanelPlugin
Below any UI elements in the panel.- Specified by:
renderBelow
in interfaceCustomUIPanelPlugin
- Overrides:
renderBelow
in classBaseCustomUIPanelPlugin
-
renderHealth
public void renderHealth(float alphaMult) -
renderPip
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceCustomUIPanelPlugin
- Overrides:
advance
in classBaseCustomUIPanelPlugin
- Parameters:
amount
- in seconds.
-
getDistance
public float getDistance() -
doAI
public void doAI(float amount) -
processInput
Description copied from interface:CustomUIPanelPlugin
List of input events that occurred this frame. (Almost) always includes one mouse move event. Events should be consume()d if they are acted on. Mouse-move events should generally not be consumed. The loop processing events should check to see if an event has already been consumed, and if so, skip it. Accessing the data of a consumed event will throw an exception.- Specified by:
processInput
in interfaceCustomUIPanelPlugin
- Overrides:
processInput
in classBaseCustomUIPanelPlugin
-
checkBlocksAndHits
public void checkBlocksAndHits() -
checkAttackVsDefense
-
addSparks
-
wasHit
-
addBlood
-
addBlood
-
getGravity
public float getGravity() -
getCharacterHeight
public float getCharacterHeight() -
getPlayer
-
getEnemy
-