Package event

Class OutOfBoundsEvent

java.lang.Object
event.GameEvent
event.OutOfBoundsEvent

public class OutOfBoundsEvent extends GameEvent
Represents an event where an entity crosses a screen edge.
Author:
Krish Pillai
See Also:
  • Constructor Details

    • OutOfBoundsEvent

      public OutOfBoundsEvent(EntityModel entity, ScreenBoundary boundary)
    • OutOfBoundsEvent

      public OutOfBoundsEvent(EntityModel entity, ScreenBoundary boundary, String description)
      Constructor for Out-of-Bounds event containing the entity and the edge it crossed.
      Parameters:
      entity - The entity firing the event
      boundary - The screen edge that was crossed
      description - a description of the event or the empty string
      See Also:
    • OutOfBoundsEvent

      public OutOfBoundsEvent(OutOfBoundsEvent event)
      Copy constructor for the event
      Parameters:
      event - The event being duplicated
  • Method Details