Class AbstractDBCAPI


  • public abstract class AbstractDBCAPI
    extends Object
    • Constructor Detail

      • AbstractDBCAPI

        public AbstractDBCAPI()
    • Method Detail

      • IsAvailable

        public static boolean IsAvailable()
      • getFormHandler

        public abstract IFormHandler getFormHandler()
      • getAuraHandler

        public abstract IAuraHandler getAuraHandler()
      • getBonusHandler

        public abstract IBonusHandler getBonusHandler()
      • createForm

        public abstract IForm createForm​(String name)
      • createAura

        public abstract IAura createAura​(String name)
      • getAura

        public abstract IAura getAura​(String name)
      • getOrCreateForm

        public abstract IForm getOrCreateForm​(String name)
        Parameters:
        name - name
        Returns:
        new form
      • getForm

        public abstract IForm getForm​(String name)
      • createOutline

        public abstract IOutline createOutline​(String name)
      • abstractDBCData

        public abstract IDBCStats abstractDBCData()
        Returns:
        Fake DBC Data for Simulating Damage
      • getDBCData

        public abstract IDBCStats getDBCData​(ICustomNpc npc)
        Parameters:
        npc - NPC
        Returns:
        DBC Data attached to an NPC
      • doDBCDamage

        public abstract void doDBCDamage​(IPlayer player,
                                         IDBCStats stats,
                                         int damage)
        Performs DBC Damage based on the DBC Stats sent in
        Parameters:
        player - Player (Target of DBC Damage)
        stats - DBC Stats / Settings to Simulate
        damage - Damage to simulate
      • getRaceName

        public abstract String getRaceName​(int race)
        Parameters:
        race - 0 to 5
        Returns:
        Name of race ID
      • getFormName

        public abstract String getFormName​(int race,
                                           int form)
        Parameters:
        race - ID (0 to 5),
        form - ID (0 to 3 for humans/namekians, 0 to 14 for Saiyans/Half, 0 to 7 for arcosians, 0 to 4 for majins)
        Returns:
        form name i.e "SSFullPow"
      • getAllFormMasteryData

        public abstract String[] getAllFormMasteryData​(int raceid,
                                                       int formId)
        Parameters:
        raceid - Race ID
        formId - Form ID
        Returns:
        All config data for a Form Mastery i.e Max Level, Instant Transform Unlock, Required Masteries
      • getAllFormsLength

        public abstract int getAllFormsLength​(int race,
                                              boolean nonRacial)
        Parameters:
        race - Race ID
        nonRacial - nonRacial forms are Kaioken/UI/Mystic/GOD
        Returns:
        Number of forms a race has, i.e Saiyan has 14 racial and 4 non racial
      • getAllForms

        public abstract String[] getAllForms​(int race,
                                             boolean nonRacial)
        Parameters:
        race - Race ID
        nonRacial - check getAllFormsLength(int race, boolean nonRacial)
        Returns:
        An array containing all forms the race has
      • createKiAttack

        public abstract IKiAttack createKiAttack()
        Returns:
        IKiAttack Object
      • createKiAttack

        public abstract IKiAttack createKiAttack​(byte type,
                                                 byte speed,
                                                 int damage,
                                                 boolean hasEffect,
                                                 byte color,
                                                 byte density,
                                                 boolean hasSound,
                                                 byte chargePercent)
        Parameters:
        type - Type of Ki Attack [0 - 8] "Wave", "Blast", "Disk", "Laser", "Spiral", "BigBlast", "Barrage", "Shield", "Explosion"
        speed - Speed of Ki Attack [0 - 100]
        damage - Damage for Ki Attack
        hasEffect - True for Explosion
        color - Color of Ki Attack [0 - 30] ->
        0: "AlignmentBased", "white", "blue", "purple", "red", "black", "green", "yellow", "orange", "pink", "magenta",
        11: "lightPink", "cyan", "darkCyan", "lightCyan", "darkGray", "gray", "darkBlue", "lightBlue", "darkPurple", "lightPurple",
        21: "darkRed", "lightRed", "darkGreen", "lime", "darkYellow", "lightYellow", "gold", "lightOrange", "darkBrown", "lightBrown"
        density - Density of Ki Attack > 0
        hasSound - Play Impact Sound of Ki Attack
        chargePercent - Charge Percentage of Ki Attack [0 - 100]
        Returns:
        IKiAttack Object with Set Values
      • fireKiAttack

        public abstract void fireKiAttack​(ICustomNpc npc,
                                          byte type,
                                          byte speed,
                                          int damage,
                                          boolean hasEffect,
                                          byte color,
                                          byte density,
                                          boolean hasSound,
                                          byte chargePercent)
        Fires a Ki Attack in the Head Direction of the NPC
        Parameters:
        npc - the NPC firing this attack.
        type - Type of Ki Attack [0 - 8] "Wave", "Blast", "Disk", "Laser", "Spiral", "BigBlast", "Barrage", "Shield", "Explosion"
        speed - Speed of Ki Attack [0 - 100]
        damage - Damage for Ki Attack
        hasEffect - True for Explosion
        color - Color of Ki Attack [0 - 30] ->
        0: "AlignmentBased", "white", "blue", "purple", "red", "black", "green", "yellow", "orange", "pink", "magenta",
        11: "lightPink", "cyan", "darkCyan", "lightCyan", "darkGray", "gray", "darkBlue", "lightBlue", "darkPurple", "lightPurple",
        21: "darkRed", "lightRed", "darkGreen", "lime", "darkYellow", "lightYellow", "gold", "lightOrange", "darkBrown", "lightBrown"
        density - Density of Ki Attack > 0
        hasSound - Play Impact Sound of Ki Attack
        chargePercent - Charge Percentage of Ki Attack [0 - 100]
      • fireKiAttack

        public abstract void fireKiAttack​(ICustomNpc npc,
                                          IKiAttack kiAttack)
        Fires an IKiAttack with its internal params
        Parameters:
        npc - NPC shooting this attack
        kiAttack - ki attack to shoot