Interface DynamicStatsAPI


public interface DynamicStatsAPI
Mutable stats that are created on-demand when they're needed, unlike the "standard" stats that have to be hardcoded. Intended to be useful for stuff like the interactions between terrain, hull mod effects, and character skills. It's desirable for them to be able to affect each other, but since all can be modded in from scratch, it's hard to rely on the hardcoded stat set.
Author:
Alex Mosolov Copyright 2015 Fractal Softworks, LLC
  • Method Details

    • getStat

      MutableStat getStat(String id)
      Base value of the stat is 1.
      Parameters:
      id -
      Returns:
    • getValue

      float getValue(String id)
      Base value of the stat is 1.
      Parameters:
      id -
      Returns:
    • getMod

      StatBonus getMod(String id)
    • getValue

      float getValue(String id, float base)
    • removeUmodified

      void removeUmodified()
    • getStats

      Map<String,MutableStat> getStats()
    • getMods

      Map<String,StatBonus> getMods()
    • isEmpty

      boolean isEmpty()