Class ActorMapObject

  • All Implemented Interfaces:
    MapObject

    public final class ActorMapObject
    extends java.lang.Object
    implements MapObject
    A map object describing an actor. Can define actor's type.
    • Constructor Detail

      • ActorMapObject

        public ActorMapObject​(@NotNull
                              @NotNull BaseMapObject baseMapObject,
                              @Nullable
                              @Nullable java.lang.String type)
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Specified by:
        getName in interface MapObject
      • getType

        @Nullable
        public @Nullable java.lang.String getType()
      • intersects

        public boolean intersects​(@NotNull
                                  @NotNull Actor actor)
        Specified by:
        intersects in interface MapObject
        Returns:
        true if the object intersects with actor.