public class DuelPanel extends BaseCustomUIPanelPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
DuelPanel.AttackResult |
| Modifier and Type | Field and Description |
|---|---|
protected DuelEnemyAI |
ai |
protected java.lang.String |
ambienceLoopId |
protected DuelBackground |
background |
protected FaderUtil |
blinker |
protected CustomVisualDialogDelegate.DialogCallbacks |
callbacks |
static java.util.List<java.lang.String> |
cycle |
static java.util.List<java.lang.String> |
cycleHigh |
int |
cycleIndex |
static boolean |
DEBUG |
protected float |
desiredViewCenterX |
protected InteractionDialogAPI |
dialog |
static boolean |
DO_CYCLE |
static boolean |
DO_CYCLE_HIGH |
protected Actor |
enemy |
protected float |
floorLevel |
protected float |
leftBorder |
protected PositionAPI |
p |
protected CustomPanelAPI |
panel |
protected java.util.List<QuadParticles> |
particles |
protected Actor |
player |
protected boolean |
prevWasAttack |
protected DuelTutorialPanel |
prompt |
protected float |
rightBorder |
static float |
SOUND_LOC_MULT |
protected boolean |
tutorialMode |
protected float |
viewAreaWidth |
protected float |
viewCenterX |
| Constructor and Description |
|---|
DuelPanel(Actor player,
Actor enemy,
DuelEnemyAI ai,
DuelBackground background) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlood(Actor actor) |
void |
addBlood(org.lwjgl.util.vector.Vector2f loc,
Actor actor) |
void |
addSparks(Actor attacker,
Actor defender) |
void |
advance(float amount) |
DuelPanel.AttackResult |
checkAttackVsDefense(Actor attacker,
Actor defender) |
void |
checkBlocksAndHits() |
static Actor |
createActor(java.lang.String tex,
boolean skilled) |
static DuelPanel |
createDefault(boolean playerSkilled,
boolean enemySkilled,
java.lang.String ambienceLoopId) |
static DuelPanel |
createTutorial(boolean playerSkilled,
java.lang.String ambienceLoopId) |
void |
doAI(float amount) |
float |
getCharacterHeight() |
float |
getDistance() |
Actor |
getEnemy() |
float |
getFloorLevel() |
float |
getGravity() |
CustomPanelAPI |
getPanel() |
Actor |
getPlayer() |
PositionAPI |
getPosition() |
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(java.util.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 |
renderPip(float x,
float y,
float w,
float h,
java.awt.Color c,
float a,
boolean filled) |
void |
wasHit(Actor actor,
Actor by) |
buttonPressedpublic static float SOUND_LOC_MULT
public static boolean DEBUG
protected InteractionDialogAPI dialog
protected CustomVisualDialogDelegate.DialogCallbacks callbacks
protected CustomPanelAPI panel
protected PositionAPI p
protected java.util.List<QuadParticles> particles
protected float floorLevel
protected float leftBorder
protected float rightBorder
protected float viewAreaWidth
protected DuelEnemyAI ai
protected DuelBackground background
protected boolean tutorialMode
protected DuelTutorialPanel prompt
protected java.lang.String ambienceLoopId
protected float desiredViewCenterX
protected float viewCenterX
public static boolean DO_CYCLE
public static boolean DO_CYCLE_HIGH
public int cycleIndex
public static java.util.List<java.lang.String> cycle
public static java.util.List<java.lang.String> cycleHigh
protected boolean prevWasAttack
public DuelPanel(Actor player, Actor enemy, DuelEnemyAI ai, DuelBackground background)
public static DuelPanel createDefault(boolean playerSkilled, boolean enemySkilled, java.lang.String ambienceLoopId)
public static DuelPanel createTutorial(boolean playerSkilled, java.lang.String ambienceLoopId)
public static Actor createActor(java.lang.String tex, boolean skilled)
public void init(CustomPanelAPI panel, CustomVisualDialogDelegate.DialogCallbacks callbacks, InteractionDialogAPI dialog)
public CustomPanelAPI getPanel()
public PositionAPI getPosition()
public float getFloorLevel()
public void positionChanged(PositionAPI position)
CustomUIPanelPluginpositionChanged in interface CustomUIPanelPluginpositionChanged in class BaseCustomUIPanelPluginpublic void render(float alphaMult)
CustomUIPanelPluginrender in interface CustomUIPanelPluginrender in class BaseCustomUIPanelPluginpublic void renderBelow(float alphaMult)
CustomUIPanelPluginrenderBelow in interface CustomUIPanelPluginrenderBelow in class BaseCustomUIPanelPluginpublic void renderHealth(float alphaMult)
public void renderPip(float x, float y, float w, float h, java.awt.Color c, float a, boolean filled)
public void advance(float amount)
advance in interface CustomUIPanelPluginadvance in class BaseCustomUIPanelPluginamount - in seconds.public float getDistance()
public void doAI(float amount)
public void processInput(java.util.List<InputEventAPI> events)
CustomUIPanelPluginprocessInput in interface CustomUIPanelPluginprocessInput in class BaseCustomUIPanelPluginpublic void checkBlocksAndHits()
public DuelPanel.AttackResult checkAttackVsDefense(Actor attacker, Actor defender)
public float getGravity()
public float getCharacterHeight()