-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from xpdota/timeline-enhancements-2
Timeline enhancements 2
- Loading branch information
Showing
42 changed files
with
680 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package gg.xp.xivdata.data; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
// TODO: cooldown and stuff? What else would we want here? | ||
public record ActionInfo( | ||
long actionid, | ||
String name, | ||
long iconId | ||
) { | ||
public ActionIcon getIcon() { | ||
public @Nullable ActionIcon getIcon() { | ||
return ActionLibrary.iconForInfo(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 19 additions & 3 deletions
22
...rt/src/main/java/gg/xp/xivsupport/events/actlines/events/abilityeffect/AbilityEffect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
package gg.xp.xivsupport.events.actlines.events.abilityeffect; | ||
|
||
public class AbilityEffect { | ||
public abstract class AbilityEffect { | ||
|
||
private final long flags; | ||
private final long value; | ||
private final AbilityEffectType effectType; | ||
|
||
protected AbilityEffect(AbilityEffectType effectType) { | ||
protected AbilityEffect(long flags, long value, AbilityEffectType effectType) { | ||
this.flags = flags; | ||
this.value = value; | ||
this.effectType = effectType; | ||
} | ||
|
||
public AbilityEffectType getEffectType() { | ||
return effectType; | ||
} | ||
|
||
public String getDescription() { | ||
public final long getFlags() { | ||
return flags; | ||
} | ||
|
||
public final long getValue() { | ||
return value; | ||
} | ||
|
||
protected String getBaseDescription() { | ||
return toString(); | ||
}; | ||
|
||
public final String getDescription() { | ||
return String.format("%s (raw: %08x %08x)", getBaseDescription(), flags, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...c/main/java/gg/xp/xivsupport/events/actlines/events/abilityeffect/CurrentHpSetEffect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package gg.xp.xivsupport.events.actlines.events.abilityeffect; | ||
|
||
public class CurrentHpSetEffect extends AbilityEffect { | ||
private final long value; | ||
private final long hpAmount; | ||
|
||
public CurrentHpSetEffect(long value) { | ||
super(AbilityEffectType.HP_SET_TO); | ||
this.value = value; | ||
public CurrentHpSetEffect(long flags, long value, long hpAmount) { | ||
super(flags, value, AbilityEffectType.HP_SET_TO); | ||
this.hpAmount = value; | ||
} | ||
|
||
public long getValue() { | ||
return value; | ||
public long getHpAmount() { | ||
return hpAmount; | ||
} | ||
|
||
public String toString() { | ||
return String.format("HP=%s", value); | ||
return String.format("HP=%s", hpAmount); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.