public class MenuScene extends CameraScene implements IOnAreaTouchListener, IOnSceneTouchListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
MenuScene.IOnMenuItemClickListener |
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedException| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<IMenuItem> |
mMenuItems |
mCameramChildScene, mParentScene, mTouchAreasmChildren, mChildrenIgnoreUpdate, mChildrenSortPending, mChildrenVisible, mColor, mCullingEnabled, mDisposed, mIgnoreUpdate, mRotation, mRotationCenterX, mRotationCenterY, mScaleCenterX, mScaleCenterY, mScaleX, mScaleY, mSkewCenterX, mSkewCenterY, mSkewX, mSkewY, mTag, mVisible, mX, mY, mZIndexTAG_INVALID| Constructor and Description |
|---|
MenuScene() |
MenuScene(Camera pCamera) |
MenuScene(Camera pCamera,
MenuScene.IOnMenuItemClickListener pOnMenuItemClickListener) |
MenuScene(MenuScene.IOnMenuItemClickListener pOnMenuItemClickListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMenuItem(IMenuItem pMenuItem) |
void |
back() |
void |
buildAnimations() |
void |
clearChildScene() |
void |
clearMenuItems() |
void |
closeMenuScene() |
MenuScene |
getChildScene() |
int |
getMenuItemCount() |
MenuScene.IOnMenuItemClickListener |
getOnMenuItemClickListener() |
boolean |
onAreaTouched(TouchEvent pSceneTouchEvent,
ITouchArea pTouchArea,
float pTouchAreaLocalX,
float pTouchAreaLocalY)
Called when a
TouchEvent is dispatched to an ITouchArea. |
boolean |
onSceneTouchEvent(Scene pScene,
TouchEvent pSceneTouchEvent)
Called when a
TouchEvent is dispatched to a Scene. |
void |
prepareAnimations() |
void |
reset() |
void |
setChildScene(Scene pChildScene,
boolean pModalDraw,
boolean pModalUpdate,
boolean pModalTouch) |
void |
setMenuAnimator(IMenuAnimator pMenuAnimator) |
void |
setOnMenuItemClickListener(MenuScene.IOnMenuItemClickListener pOnMenuItemClickListener) |
centerShapeInCamera, centerShapeInCameraHorizontally, centerShapeInCameraVertically, getCamera, onApplyMatrix, onChildSceneTouchEvent, onSceneTouchEvent, setCameraclearTouchAreas, getBackground, getOnAreaTouchListener, getOnSceneTouchListener, getSecondsElapsedTotal, getTouchAreas, hasChildScene, hasOnAreaTouchListener, hasOnSceneTouchListener, isBackgroundEnabled, isOnSceneTouchListenerBindingOnActionDownEnabled, isTouchAreaBindingOnActionDownEnabled, isTouchAreaBindingOnActionMoveEnabled, onManagedDraw, onManagedUpdate, postRunnable, registerTouchArea, setBackground, setBackgroundEnabled, setChildScene, setChildSceneModal, setOnAreaTouchListener, setOnAreaTouchTraversalBackToFront, setOnAreaTouchTraversalFrontToBack, setOnSceneTouchListener, setOnSceneTouchListenerBindingOnActionDownEnabled, setParent, setTouchAreaBindingOnActionDownEnabled, setTouchAreaBindingOnActionMoveEnabled, unregisterTouchArea, unregisterTouchAreasapplyRotation, applyScale, applySkew, applyTranslation, attachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, dispose, draw, finalize, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneCenterCoordinates, getSceneCenterCoordinates, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCulled, isCullingEnabled, isDisposed, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onApplyTransformations, onAttached, onDetached, onDraw, onUpdate, onUpdateColor, postDraw, preDraw, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlersprotected final java.util.ArrayList<IMenuItem> mMenuItems
public MenuScene()
public MenuScene(MenuScene.IOnMenuItemClickListener pOnMenuItemClickListener)
public MenuScene(Camera pCamera)
public MenuScene(Camera pCamera, MenuScene.IOnMenuItemClickListener pOnMenuItemClickListener)
public MenuScene.IOnMenuItemClickListener getOnMenuItemClickListener()
public void setOnMenuItemClickListener(MenuScene.IOnMenuItemClickListener pOnMenuItemClickListener)
public int getMenuItemCount()
public void addMenuItem(IMenuItem pMenuItem)
public void clearMenuItems()
public MenuScene getChildScene()
getChildScene in class Scenepublic void setChildScene(Scene pChildScene, boolean pModalDraw, boolean pModalUpdate, boolean pModalTouch) throws java.lang.IllegalArgumentException
setChildScene in class Scenejava.lang.IllegalArgumentExceptionpublic void clearChildScene()
clearChildScene in class Scenepublic void setMenuAnimator(IMenuAnimator pMenuAnimator)
public boolean onAreaTouched(TouchEvent pSceneTouchEvent, ITouchArea pTouchArea, float pTouchAreaLocalX, float pTouchAreaLocalY)
IOnAreaTouchListenerTouchEvent is dispatched to an ITouchArea. This allows
listeners to get a chance to respond before the target ITouchArea.onAreaTouched(TouchEvent, float, float) is called.onAreaTouched in interface IOnAreaTouchListenerpSceneTouchEvent - The TouchEvent object containing full information about the event.pTouchArea - The ITouchArea that the TouchEvent has been dispatched to.pTouchAreaLocalX - the x coordinate within the area touched.pTouchAreaLocalY - the y coordinate within the area touched.true if this IOnAreaTouchListener has consumed the TouchEvent, false otherwise.public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent)
IOnSceneTouchListenerTouchEvent is dispatched to a Scene.onSceneTouchEvent in interface IOnSceneTouchListenerpScene - The Scene that the TouchEvent has been dispatched to.pSceneTouchEvent - The TouchEvent object containing full information about the event.true if this IOnSceneTouchListener has consumed the TouchEvent, false otherwise.public void reset()
reset in interface IUpdateHandlerreset in class Scenepublic void closeMenuScene()
public void buildAnimations()
public void prepareAnimations()