Class Component.IScalar

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

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

    • IScalar

      public IScalar(World world)
  • Method Details

    • get

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

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

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