public abstract class Entity extends MetaInfo
Engine
engine(s). The interface allows getting information about the entity type, which
is useful for checking ability of an engine to process a given entity.Modifier | Constructor and Description |
---|---|
protected |
Entity(EntityType type)
Constructs an entity with a given type.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
add(Entity entity)
Adds a given entity to this one.
|
boolean |
equals(java.lang.Object object) |
EntityType |
getEntityType()
Returns the type of the entity (a unique identifier).
|
int |
hashCode() |
java.lang.String |
toString() |
addMetaInfo, addMetaInfo, addMetaInfo, getMetaInfo, getMetaInfo, hasMetaInfo, hasMetaInfo
protected Entity(EntityType type)
type
- the entity type.public final EntityType getEntityType()
EntityType
the type of the entity.public abstract void add(Entity entity)
entity
- the entity to be added.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object