Class ActorView<T extends Actor<?>,V extends ActorView<T,V>>

All Implemented Interfaces:
Iterable<T>
Direct Known Subclasses:
NpcView, PlayerView

public abstract class ActorView<T extends Actor<?>,V extends ActorView<T,V>> extends UnitView<T,V>
View specialization for actors such as players and NPCs.
  • Method Details

    • filter

      public V filter(Predicate<T> filter)
      Description copied from class: UnitView
      Returns a new view with an additional unit filter.
      Overrides:
      filter in class UnitView<T extends Actor<?>,V extends ActorView<T,V>>
    • not

      public V not()
      Description copied from class: UnitView
      Returns a new view with the most recent filter negated.
      Overrides:
      not in class UnitView<T extends Actor<?>,V extends ActorView<T,V>>
    • or

      public V or(Predicate<T> filter)
      Description copied from class: UnitView
      Returns a new unit view with the supplied filter OR'ed with the most recent filter.
      Overrides:
      or in class UnitView<T extends Actor<?>,V extends ActorView<T,V>>
    • index

      public V index(int... indices)
      Filters actors by actor index.
    • animating

      public V animating()
      Filters actions that are animating
    • moving

      public V moving()
      Filters actors with queued movement waypoints.
    • animation

      public V animation(int... animations)
      Filters actors by current animation id.
      Parameters:
      animations - animation ids, usually from AnimationId
    • stance

      public V stance(int... stances)
      Filters actors by current stance id.
      Parameters:
      stances - animation ids, usually from AnimationId
    • named

      public V named(String... names)
      Filters actors by exact standardized name. Standardized names are tag-stripped, trimmed, and lowercased.
    • named

      public V named(Predicate<String> name)
      Filters actors by standardized name predicate. The predicate receives tag-stripped, trimmed, lowercased text.
    • nameContains

      public V nameContains(String... names)
      Filters actors whose standardized name contains any provided text. Standardized names are tag-stripped, trimmed, and lowercased.