Uses of Class
model.Entity

Packages that use Entity
Package
Description
 
 
  • Uses of Entity in model

    Subclasses of Entity in model
    Modifier and Type
    Class
    Description
    class 
    An entity which represents one of our space invader aliens.
    class 
    Tagging class to distinguish an Alien shot from a ship shot
    class 
    Adds infrastructure to give the entity animation through a provided list of sprites when the entity is in the ALIVE state
    class 
    Entity of the game which is a Border.
    class 
    The entity that represents the players ship
    class 
    An entity representing a shot fired by the player's ship
    Fields in model declared as Entity
    Modifier and Type
    Field
    Description
    protected Entity[]
    EntityListArray.entities
    The entities in the array.
    protected Entity[]
    EntityListArray.removeEntities
    The entities to be removed on next game cycle
    Methods in model that return Entity
    Modifier and Type
    Method
    Description
    EntityListArray.collidesWith(Entity other)
    Check if this entity collides with any entity in this entity array.
    EntityListInterface.collidesWith(Entity other)
    Check if this entity collides with any entity in this entity list.
    EntityListArray.getRandom()
    if there are no entities in the list return null return one of the entities in the array - choosing it randomly
    EntityListInterface.getRandom()
    return one of the entities in the list - choosing it randomly If there are no entities in the list will return null
    Methods in model with parameters of type Entity
    Modifier and Type
    Method
    Description
    void
    EntityListArray.add(Entity e)
    Add one entity to the entities array
    void
    EntityListInterface.add(Entity e)
    Add an entity
    boolean
    Entity.collidesWith(Entity other)
    Check if this entity collides with another.
    EntityListArray.collidesWith(Entity other)
    Check if this entity collides with any entity in this entity array.
    EntityListInterface.collidesWith(Entity other)
    Check if this entity collides with any entity in this entity list.
    void
    EntityListArray.registerEntityForRemoval(Entity e)
     
    void
    EntityListInterface.registerEntityForRemoval(Entity e)
    Registers an entity for removal next time the state of the list is updated
    void
    EntityListArray.remove(Entity e)
    Remove an entity from the array
    void
    EntityListInterface.remove(Entity e)
    Remove an entity from the list
  • Uses of Entity in model.events

    Methods in model.events that return Entity
    Modifier and Type
    Method
    Description
    EntityDiedEvent.getEntity()
     
    EntityMoveEvent.getEntity()
     
    EntityHitEvent.getHit()
     
    EntityHitEvent.getHitBy()
     
    Constructors in model.events with parameters of type Entity
    Modifier
    Constructor
    Description