Package dev.twilite.game.stream
Class ActorView<T extends Actor<?>,V extends ActorView<T,V>>
java.lang.Object
dev.twilite.game.stream.View<T>
dev.twilite.game.stream.UnitView<T,V>
dev.twilite.game.stream.ActorView<T,V>
- All Implemented Interfaces:
Iterable<T>
- Direct Known Subclasses:
NpcView,PlayerView
View specialization for actors such as players and NPCs.
-
Method Summary
Modifier and TypeMethodDescriptionFilters actions that are animatinganimation(int... animations) Filters actors by current animation id.Returns a new view with an additional unit filter.index(int... indices) Filters actors by actor index.moving()Filters actors with queued movement waypoints.nameContains(String... names) Filters actors whose standardized name contains any provided text.Filters actors by exact standardized name.Filters actors by standardized name predicate.not()Returns a new view with the most recent filter negated.Returns a new unit view with the supplied filter OR'ed with the most recent filter.stance(int... stances) Filters actors by current stance id.Methods inherited from class dev.twilite.game.stream.UnitView
nearestTo, nearestTo, on, reachable, reachableWithin, within, within, within, within, withinMethods inherited from class dev.twilite.game.stream.View
count, exists, first, iterator, map, mapToInt, stream, toListMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
filter
Description copied from class:UnitViewReturns a new view with an additional unit filter. -
not
Description copied from class:UnitViewReturns a new view with the most recent filter negated. -
or
Description copied from class:UnitViewReturns a new unit view with the supplied filter OR'ed with the most recent filter. -
index
Filters actors by actor index. -
animating
Filters actions that are animating -
moving
Filters actors with queued movement waypoints. -
animation
Filters actors by current animation id.- Parameters:
animations- animation ids, usually fromAnimationId
-
stance
Filters actors by current stance id.- Parameters:
stances- animation ids, usually fromAnimationId
-
named
Filters actors by exact standardized name. Standardized names are tag-stripped, trimmed, and lowercased. -
named
Filters actors by standardized name predicate. The predicate receives tag-stripped, trimmed, lowercased text. -
nameContains
Filters actors whose standardized name contains any provided text. Standardized names are tag-stripped, trimmed, and lowercased.
-