Entity
org.andengine.entity

Class Entity

org.andengine.entity.Entity

All Implemented Interfaces:
IEntity


public class Entity
implements IEntity

An Entity is the most basic object in AndEngine and is the building block of its Entity-Component Model.


Field Summary

protected boolean mDisposed

protected boolean mVisible = true

  • Determines whether this Entity is being rendered and is therefore visible. Value is by default set to be true.

protected boolean mCullingEnabled

protected boolean mIgnoreUpdate

protected boolean mChildrenVisible = true

protected boolean mChildrenIgnoreUpdate

protected boolean mChildrenSortPending

protected int mTag = IEntity.TAG_INVALID

protected int mZIndex = 0

private IEntity mParent

  • The parent Entity of this Entity.

protected SmartList<IEntity> mChildren

private EntityModifierList mEntityModifiers

private UpdateHandlerList mUpdateHandlers

  • An IUpdateHandler registered to this Entity will have its onUpdate method invoked on each update of this Entity.

protected Color mColor = new Color(1, 1, 1, 1)

protected float mX

  • Refers to the x-coordinate of this Entity's position in terms of screen coordinates. In screen coordinates, the origin (0,0) is at the top-left corner of the screen, and pixel is the basic unit of measurement.

protected float mY

  • Refers to the y-coordinate of this Entity's position in terms of screen coordinates. In screen coordinates, the origin (0,0) is at the top-left corner of the screen, and pixel is the basic unit of measurement.

protected float mRotation = 0

protected float mRotationCenterX = 0

protected float mRotationCenterY = 0

protected float mScaleX = 1

protected float mScaleY = 1

protected float mScaleCenterX = 0

protected float mScaleCenterY = 0

protected float mSkewX = 0

protected float mSkewY = 0

protected float mSkewCenterX = 0

protected float mSkewCenterY = 0

private boolean mLocalToParentTransformationDirty = true

private boolean mParentToLocalTransformationDirty = true

private Transformation mLocalToParentTransformation

private Transformation mParentToLocalTransformation

private Transformation mLocalToSceneTransformation

private Transformation mSceneToLocalTransformation

private Object mUserData


Constructor Summary

Entity()

  • Default constructor which creates an Entity positioned at (0,0), the top-left corner of the screen.

Entity(final float pX, final float pY)

  • Creates an Entity positioned at (pX,pY), where (0,0) is the top-left corner of the screen.

Constructor Detail

Entity

public Entity()

Default constructor which creates an empty Entity positioned at (0,0), the top-left corner of the screen.

Entity

public Entity(final float pX, final float pY)

Creates an empty Entity positioned at (pX,pY), where (0,0) is the top-left corner of the screen.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License