package de.gurkenlabs.litiengine.entities;

public enum PropState {
  INTACT,
  DAMAGED,
  DESTROYED;

  public String spriteString() {
    return this.name().toLowerCase();
  }
}

package de.gurkenlabs.litiengine.entities;

public enum PropState {
  INTACT,
  DAMAGED,
  DESTROYED;

  private final String str;

  private PropState() {
    this.str = this.name().toLowerCase();
  }

  public String spriteString() {
    return this.str;
  }
}

Store lower-case string because conversion takes time.
Store lower-case string because conversion takes time.
