Adds a new component, only possible until the entity is registered on the entity manager, after that use @see EntityManager.addDynamicComponent
Used by the entity manager. Internal parameter, do not change
Returns the world distance to a given entity
Draws the entity, to override use @see Entity.drawImpl
Returns the string-id of the entities faction
Returns the meta class of the entity.
Returns the position in tile space, but not snapped, so it could be 5.5 for example
Returns the tile space position
Returns the world space position in pixels
Internal destroy callback
Returns whether the entity is still alive
Returns if the entity is stunned
Checks whether the given world space position is within the given tile radius to the entities center
The position to check
The maximum distance in tile space
true if the position is within the given range
Checks if the other entity is within the transport range
true if the entity is within range
Removes a given component, only possible until the entity is registered on the entity manager, after that use @see EntityManager.removeDynamicComponent
Returns the squared world distance to a given entity
Returns the squared tile space distance to a given entity