Uses of Class
role.EntityModel
Packages that use EntityModel
-
Uses of EntityModel in common
Methods in common that return EntityModelModifier and TypeMethodDescriptionEntityPair.getA()Fetches one of the items.EntityPair.getB()Fetches the other item.Constructors in common with parameters of type EntityModelModifierConstructorDescriptionEntityPair(EntityModel a, EntityModel b) Defines an unordered pair of entities. -
Uses of EntityModel in event
Methods in event that return EntityModelModifier and TypeMethodDescriptionCollisionEvent.getA()Getter the first involved entity.CollisionEvent.getB()Getter for the second involved entity.BlockedEvent.getEntity()Getter the first involved entity.OutOfBoundsEvent.getEntity()Getter for the entity stepping out of boundsMessageEvent.getSender()Returns the entity that originated this eventConstructors in event with parameters of type EntityModelModifierConstructorDescriptionConstructor for two-way collision.BlockedEvent(EntityModel a, BarrierModel b, String description) Constructs an event involving a dynamic entity a and a Barrier bConstructor for two-way collision.CollisionEvent(EntityModel a, EntityModel b, String comment) Constructor for two-way collision.GameEvent(EntityModel a, EntityModel b) Constructor for an event involving two entities.GameEvent(EntityModel a, EntityModel b, String description) Constructor for an event involving two entities.MessageEvent(EntityModel sender, String command) Constructor for the MessageEventMessageEvent(EntityModel sender, EntityModel entity, String command) OutOfBoundsEvent(EntityModel entity, ScreenBoundary boundary) OutOfBoundsEvent(EntityModel entity, ScreenBoundary boundary, String description) Constructor for Out-of-Bounds event containing the entity and the edge it crossed. -
Uses of EntityModel in role
Subclasses of EntityModel in roleModifier and TypeClassDescriptionclassThe barrier model represents an impenetrable line barrier that triggers collisions on impact.classThis class models sceneries that roll across the screen.classThis class represents a screen boundary.classThis class represents the Sprite based model.classThis class represents text-based entities.Methods in role with parameters of type EntityModelModifier and TypeMethodDescriptionbooleanEntityModel.collidesWith(EntityModel that) Checks if this entity is in collision with the specified entity.intEntityModel.compareTo(EntityModel o) Compares two entities on the basis of their age.booleanGameController.isOnScreen(EntityModel entity) Checks if entity model is on screen (visible)booleanScreenBoundary.isOutOfBounds(EntityModel entity) Checks if entity is out of bounds for this screen boundaryvoidEntityModel.poachState(EntityModel that) Deep-copies the state of this entity into the argument entity -
Uses of EntityModel in util
Methods in util with parameters of type EntityModelModifier and TypeMethodDescriptionstatic voidPhysics.rebound(EntityModel a, EntityModel b) Modifies velocity and location attributes of the entities involved in the collision event.