C# Class andengine.entity.shape.Shape

Inheritance: andengine.entity.Entity, IShape
显示文件 Open project: jamesburton/AndEngine.net

Public Properties

Property Type Description
BLENDFUNCTION_DESTINATION_DEFAULT int
BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT int
BLENDFUNCTION_SOURCE_DEFAULT int
BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULT int

Protected Properties

Property Type Description
mAccelerationX float
mAccelerationY float
mAlpha float
mAngularVelocity float
mBlue float
mDestinationBlendFunction int
mGreen float
mRed float
mRotation float
mRotationCenterX float
mRotationCenterY float
mScaleCenterX float
mScaleCenterY float
mScaleX float
mScaleY float
mSourceBlendFunction int
mVelocityX float
mVelocityY float
mX float
mY float

Public Methods

Method Description
Accelerate ( float pAccelerationX, float pAccelerationY ) : void
AddShapeModifier ( andengine pShapeModifier ) : void
ClearShapeModifiers ( ) : void
CollidesWith ( IShape shape ) : bool
Contains ( float X, float Y ) : bool
ConvertLocalToSceneCoordinates ( float X, float Y ) : float[]
ConvertSceneToLocalCoordinates ( float X, float Y ) : float[]
GetAccelerationX ( ) : float
GetAccelerationY ( ) : float
GetAlpha ( ) : float
GetAngularVelocity ( ) : float
GetBaseHeight ( ) : float
GetBaseWidth ( ) : float
GetBaseX ( ) : float
GetBaseY ( ) : float
GetBlue ( ) : float
GetGreen ( ) : float
GetHeight ( ) : float
GetHeightScaled ( ) : float
GetRed ( ) : float
GetRotation ( ) : float
GetRotationCenterX ( ) : float
GetRotationCenterY ( ) : float
GetScaleCenterX ( ) : float
GetScaleCenterY ( ) : float
GetScaleX ( ) : float
GetScaleY ( ) : float
GetSceneCenterCoordinates ( ) : float[]
GetVelocityX ( ) : float
GetVelocityY ( ) : float
GetWidth ( ) : float
GetWidthScaled ( ) : float
GetX ( ) : float
GetY ( ) : float
IsCullingEnabled ( ) : bool
IsScaled ( ) : bool
IsUpdatePhysics ( ) : bool
OnAreaTouched ( andengine.input.touch.TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY ) : bool
RemoveShapeModifier ( andengine pShapeModifier ) : bool
Reset ( ) : void
SetAcceleration ( float pAcceleration ) : void
SetAcceleration ( float pAccelerationX, float pAccelerationY ) : void
SetAccelerationX ( float pAccelerationX ) : void
SetAccelerationY ( float pAccelerationY ) : void
SetAlpha ( float pAlpha ) : void
SetAngularVelocity ( float pAngularVelocity ) : void
SetBasePosition ( ) : void
SetBlendFunction ( int pSourceBlendFunction, int pDestinationBlendFunction ) : void
SetColor ( float pRed, float pGreen, float pBlue ) : void
SetColor ( float pRed, float pGreen, float pBlue, float pAlpha ) : void
SetCullingEnabled ( bool pCullingEnabled ) : void
SetPosition ( IShape pOtherShape ) : void
SetPosition ( float pX, float pY ) : void
SetRotation ( float pRotation ) : void
SetRotationCenter ( float pRotationCenterX, float pRotationCenterY ) : void
SetRotationCenterX ( float pRotationCenterX ) : void
SetRotationCenterY ( float pRotationCenterY ) : void
SetScale ( float pScale ) : void
SetScale ( float pScaleX, float pScaleY ) : void
SetScaleCenter ( float pScaleCenterX, float pScaleCenterY ) : void
SetScaleCenterX ( float pScaleCenterX ) : void
SetScaleCenterY ( float pScaleCenterY ) : void
SetScaleX ( float pScaleX ) : void
SetScaleY ( float pScaleY ) : void
SetUpdatePhysics ( bool pUpdatePhysics ) : void
SetVelocity ( float pVelocity ) : void
SetVelocity ( float pVelocityX, float pVelocityY ) : void
SetVelocityX ( float pVelocityX ) : void
SetVelocityY ( float pVelocityY ) : void
Shape ( float pX, float pY )

Protected Methods

Method Description
ApplyRotation ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
ApplyScale ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
ApplyTranslation ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
DrawVertices ( Javax.Microedition.Khronos.Opengles.IGL10 pGL, andengine.engine.camera.Camera pCamera ) : void
IsCulled ( andengine.engine.camera.Camera pCamera ) : bool
OnApplyTransformations ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
OnApplyVertices ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
OnInitDraw ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
OnManagedDraw ( Javax.Microedition.Khronos.Opengles.IGL10 pGL, andengine.engine.camera.Camera pCamera ) : void
OnManagedUpdate ( float pSecondsElapsed ) : void
OnPositionChanged ( ) : void

Method Details

Accelerate() public method

public Accelerate ( float pAccelerationX, float pAccelerationY ) : void
pAccelerationX float
pAccelerationY float
return void

AddShapeModifier() public method

public AddShapeModifier ( andengine pShapeModifier ) : void
pShapeModifier andengine
return void

ApplyRotation() protected method

protected ApplyRotation ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
return void

ApplyScale() protected method

protected ApplyScale ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
return void

ApplyTranslation() protected method

protected ApplyTranslation ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
return void

ClearShapeModifiers() public method

public ClearShapeModifiers ( ) : void
return void

CollidesWith() public abstract method

public abstract CollidesWith ( IShape shape ) : bool
shape IShape
return bool

Contains() public abstract method

public abstract Contains ( float X, float Y ) : bool
X float
Y float
return bool

ConvertLocalToSceneCoordinates() public abstract method

public abstract ConvertLocalToSceneCoordinates ( float X, float Y ) : float[]
X float
Y float
return float[]

ConvertSceneToLocalCoordinates() public abstract method

public abstract ConvertSceneToLocalCoordinates ( float X, float Y ) : float[]
X float
Y float
return float[]

DrawVertices() protected abstract method

protected abstract DrawVertices ( Javax.Microedition.Khronos.Opengles.IGL10 pGL, andengine.engine.camera.Camera pCamera ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
pCamera andengine.engine.camera.Camera
return void

GetAccelerationX() public method

public GetAccelerationX ( ) : float
return float

GetAccelerationY() public method

public GetAccelerationY ( ) : float
return float

GetAlpha() public method

public GetAlpha ( ) : float
return float

GetAngularVelocity() public method

public GetAngularVelocity ( ) : float
return float

GetBaseHeight() public abstract method

public abstract GetBaseHeight ( ) : float
return float

GetBaseWidth() public abstract method

public abstract GetBaseWidth ( ) : float
return float

GetBaseX() public method

public GetBaseX ( ) : float
return float

GetBaseY() public method

public GetBaseY ( ) : float
return float

GetBlue() public method

public GetBlue ( ) : float
return float

GetGreen() public method

public GetGreen ( ) : float
return float

GetHeight() public abstract method

public abstract GetHeight ( ) : float
return float

GetHeightScaled() public method

public GetHeightScaled ( ) : float
return float

GetRed() public method

public GetRed ( ) : float
return float

GetRotation() public method

public GetRotation ( ) : float
return float

GetRotationCenterX() public method

public GetRotationCenterX ( ) : float
return float

GetRotationCenterY() public method

public GetRotationCenterY ( ) : float
return float

GetScaleCenterX() public method

public GetScaleCenterX ( ) : float
return float

GetScaleCenterY() public method

public GetScaleCenterY ( ) : float
return float

GetScaleX() public method

public GetScaleX ( ) : float
return float

GetScaleY() public method

public GetScaleY ( ) : float
return float

GetSceneCenterCoordinates() public abstract method

public abstract GetSceneCenterCoordinates ( ) : float[]
return float[]

GetVelocityX() public method

public GetVelocityX ( ) : float
return float

GetVelocityY() public method

public GetVelocityY ( ) : float
return float

GetWidth() public abstract method

public abstract GetWidth ( ) : float
return float

GetWidthScaled() public method

public GetWidthScaled ( ) : float
return float

GetX() public method

public GetX ( ) : float
return float

GetY() public method

public GetY ( ) : float
return float

IsCulled() protected abstract method

protected abstract IsCulled ( andengine.engine.camera.Camera pCamera ) : bool
pCamera andengine.engine.camera.Camera
return bool

IsCullingEnabled() public method

public IsCullingEnabled ( ) : bool
return bool

IsScaled() public method

public IsScaled ( ) : bool
return bool

IsUpdatePhysics() public method

public IsUpdatePhysics ( ) : bool
return bool

OnApplyTransformations() protected method

protected OnApplyTransformations ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
return void

OnApplyVertices() protected abstract method

protected abstract OnApplyVertices ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
return void

OnAreaTouched() public method

public OnAreaTouched ( andengine.input.touch.TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY ) : bool
pSceneTouchEvent andengine.input.touch.TouchEvent
pTouchAreaLocalX float
pTouchAreaLocalY float
return bool

OnInitDraw() protected method

protected OnInitDraw ( Javax.Microedition.Khronos.Opengles.IGL10 pGL ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
return void

OnManagedDraw() protected method

protected OnManagedDraw ( Javax.Microedition.Khronos.Opengles.IGL10 pGL, andengine.engine.camera.Camera pCamera ) : void
pGL Javax.Microedition.Khronos.Opengles.IGL10
pCamera andengine.engine.camera.Camera
return void

OnManagedUpdate() protected method

protected OnManagedUpdate ( float pSecondsElapsed ) : void
pSecondsElapsed float
return void

OnPositionChanged() protected method

protected OnPositionChanged ( ) : void
return void

RemoveShapeModifier() public method

public RemoveShapeModifier ( andengine pShapeModifier ) : bool
pShapeModifier andengine
return bool

Reset() public method

public Reset ( ) : void
return void

SetAcceleration() public method

public SetAcceleration ( float pAcceleration ) : void
pAcceleration float
return void

SetAcceleration() public method

public SetAcceleration ( float pAccelerationX, float pAccelerationY ) : void
pAccelerationX float
pAccelerationY float
return void

SetAccelerationX() public method

public SetAccelerationX ( float pAccelerationX ) : void
pAccelerationX float
return void

SetAccelerationY() public method

public SetAccelerationY ( float pAccelerationY ) : void
pAccelerationY float
return void

SetAlpha() public method

public SetAlpha ( float pAlpha ) : void
pAlpha float
return void

SetAngularVelocity() public method

public SetAngularVelocity ( float pAngularVelocity ) : void
pAngularVelocity float
return void

SetBasePosition() public method

public SetBasePosition ( ) : void
return void

SetBlendFunction() public method

public SetBlendFunction ( int pSourceBlendFunction, int pDestinationBlendFunction ) : void
pSourceBlendFunction int
pDestinationBlendFunction int
return void

SetColor() public method

public SetColor ( float pRed, float pGreen, float pBlue ) : void
pRed float
pGreen float
pBlue float
return void

SetColor() public method

public SetColor ( float pRed, float pGreen, float pBlue, float pAlpha ) : void
pRed float
pGreen float
pBlue float
pAlpha float
return void

SetCullingEnabled() public method

public SetCullingEnabled ( bool pCullingEnabled ) : void
pCullingEnabled bool
return void

SetPosition() public method

public SetPosition ( IShape pOtherShape ) : void
pOtherShape IShape
return void

SetPosition() public method

public SetPosition ( float pX, float pY ) : void
pX float
pY float
return void

SetRotation() public method

public SetRotation ( float pRotation ) : void
pRotation float
return void

SetRotationCenter() public method

public SetRotationCenter ( float pRotationCenterX, float pRotationCenterY ) : void
pRotationCenterX float
pRotationCenterY float
return void

SetRotationCenterX() public method

public SetRotationCenterX ( float pRotationCenterX ) : void
pRotationCenterX float
return void

SetRotationCenterY() public method

public SetRotationCenterY ( float pRotationCenterY ) : void
pRotationCenterY float
return void

SetScale() public method

public SetScale ( float pScale ) : void
pScale float
return void

SetScale() public method

public SetScale ( float pScaleX, float pScaleY ) : void
pScaleX float
pScaleY float
return void

SetScaleCenter() public method

public SetScaleCenter ( float pScaleCenterX, float pScaleCenterY ) : void
pScaleCenterX float
pScaleCenterY float
return void

SetScaleCenterX() public method

public SetScaleCenterX ( float pScaleCenterX ) : void
pScaleCenterX float
return void

SetScaleCenterY() public method

public SetScaleCenterY ( float pScaleCenterY ) : void
pScaleCenterY float
return void

SetScaleX() public method

public SetScaleX ( float pScaleX ) : void
pScaleX float
return void

SetScaleY() public method

public SetScaleY ( float pScaleY ) : void
pScaleY float
return void

SetUpdatePhysics() public method

public SetUpdatePhysics ( bool pUpdatePhysics ) : void
pUpdatePhysics bool
return void

SetVelocity() public method

public SetVelocity ( float pVelocity ) : void
pVelocity float
return void

SetVelocity() public method

public SetVelocity ( float pVelocityX, float pVelocityY ) : void
pVelocityX float
pVelocityY float
return void

SetVelocityX() public method

public SetVelocityX ( float pVelocityX ) : void
pVelocityX float
return void

SetVelocityY() public method

public SetVelocityY ( float pVelocityY ) : void
pVelocityY float
return void

Shape() public method

public Shape ( float pX, float pY )
pX float
pY float

Property Details

BLENDFUNCTION_DESTINATION_DEFAULT public_oe static_oe property

public static int BLENDFUNCTION_DESTINATION_DEFAULT
return int

BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT public_oe static_oe property

public static int BLENDFUNCTION_DESTINATION_PREMULTIPLYALPHA_DEFAULT
return int

BLENDFUNCTION_SOURCE_DEFAULT public_oe static_oe property

public static int BLENDFUNCTION_SOURCE_DEFAULT
return int

BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULT public_oe static_oe property

public static int BLENDFUNCTION_SOURCE_PREMULTIPLYALPHA_DEFAULT
return int

mAccelerationX protected_oe property

protected float mAccelerationX
return float

mAccelerationY protected_oe property

protected float mAccelerationY
return float

mAlpha protected_oe property

protected float mAlpha
return float

mAngularVelocity protected_oe property

protected float mAngularVelocity
return float

mBlue protected_oe property

protected float mBlue
return float

mDestinationBlendFunction protected_oe property

protected int mDestinationBlendFunction
return int

mGreen protected_oe property

protected float mGreen
return float

mRed protected_oe property

protected float mRed
return float

mRotation protected_oe property

protected float mRotation
return float

mRotationCenterX protected_oe property

protected float mRotationCenterX
return float

mRotationCenterY protected_oe property

protected float mRotationCenterY
return float

mScaleCenterX protected_oe property

protected float mScaleCenterX
return float

mScaleCenterY protected_oe property

protected float mScaleCenterY
return float

mScaleX protected_oe property

protected float mScaleX
return float

mScaleY protected_oe property

protected float mScaleY
return float

mSourceBlendFunction protected_oe property

protected int mSourceBlendFunction
return int

mVelocityX protected_oe property

protected float mVelocityX
return float

mVelocityY protected_oe property

protected float mVelocityY
return float

mX protected_oe property

protected float mX
return float

mY protected_oe property

protected float mY
return float