Class IdentifierComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.IdentifierComponent

public class IdentifierComponent extends Component
Component that stores a string identifier for an entity.
  • Constructor Details

    • IdentifierComponent

      public IdentifierComponent(String id)
      Creates a new IdentifierComponent with the given ID.
      Parameters:
      id - the identifier string
  • Method Details

    • getId

      public String getId()
      Returns:
      the identifier string