Class Component.FScalar

java.lang.Object
tripleplay.entity.Component
tripleplay.entity.Component.FScalar
Enclosing class:
Component

public static final class Component.FScalar extends Component
A component implementation for a single scalar float.
  • Constructor Details

    • FScalar

      public FScalar(World world)
  • Method Details

    • get

      public float get(int entityId)
      Returns the value of this component for entityId.
    • set

      public void set(int entityId, float value)
      Updates the value of this component for entityId.
    • add

      public void add(int entityId, float dv)
      Adds dv to the value of this component for entityId.