public class

BoundCamera

extends Camera
java.lang.Object
   ↳ org.andengine.engine.camera.Camera
     ↳ org.andengine.engine.camera.BoundCamera
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Fields
protected float mBoundsCenterX
protected float mBoundsCenterY
protected boolean mBoundsEnabled
protected float mBoundsHeight
protected float mBoundsWidth
protected float mBoundsXMax
protected float mBoundsXMin
protected float mBoundsYMax
protected float mBoundsYMin
[Expand]
Inherited Fields
From class org.andengine.engine.camera.Camera
Public Constructors
BoundCamera(float pX, float pY, float pWidth, float pHeight)
BoundCamera(float pX, float pY, float pWidth, float pHeight, float pBoundMinX, float pBoundMaxX, float pBoundMinY, float pBoundMaxY)
Public Methods
float getBoundsHeight()
float getBoundsWidth()
float getBoundsXMax()
float getBoundsXMin()
float getBoundsYMax()
float getBoundsYMin()
boolean isBoundsEnabled()
void setBounds(float pBoundsXMin, float pBoundsYMin, float pBoundsXMax, float pBoundsYMax)
void setBoundsEnabled(boolean pBoundsEnabled)
void setCenter(float pCenterX, float pCenterY)
Protected Methods
void ensureInBounds()
float getBoundedX(float pX)
float getBoundedY(float pY)
[Expand]
Inherited Methods
From class org.andengine.engine.camera.Camera
From class java.lang.Object
From interface org.andengine.engine.handler.IUpdateHandler

Fields

protected float mBoundsCenterX

protected float mBoundsCenterY

protected boolean mBoundsEnabled

protected float mBoundsHeight

protected float mBoundsWidth

protected float mBoundsXMax

protected float mBoundsXMin

protected float mBoundsYMax

protected float mBoundsYMin

Public Constructors

public BoundCamera (float pX, float pY, float pWidth, float pHeight)

public BoundCamera (float pX, float pY, float pWidth, float pHeight, float pBoundMinX, float pBoundMaxX, float pBoundMinY, float pBoundMaxY)

Public Methods

public float getBoundsHeight ()

public float getBoundsWidth ()

public float getBoundsXMax ()

public float getBoundsXMin ()

public float getBoundsYMax ()

public float getBoundsYMin ()

public boolean isBoundsEnabled ()

public void setBounds (float pBoundsXMin, float pBoundsYMin, float pBoundsXMax, float pBoundsYMax)

public void setBoundsEnabled (boolean pBoundsEnabled)

public void setCenter (float pCenterX, float pCenterY)

Protected Methods

protected void ensureInBounds ()

protected float getBoundedX (float pX)

protected float getBoundedY (float pY)