public boolean onTouched( TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY) { if (!(null == mIClicakableImpmementation)) return mIClicakableImpmementation.onTouched( pSceneTouchEvent, pTouchAreaLocalX, pTouchAreaLocalY); return false; }
// ======================================================================== // Constructors // ======================================================================== public ClickableSprite(SpriteObjectDescriptor pSPRDscf, ResourcesManager pRM, Engine theEngine) { super( pSPRDscf.getIPosition().getX(), pSPRDscf.getIPosition().getY(), pSPRDscf.getIDimension().getWidth(), pSPRDscf.getIDimension().getHeight(), pRM.getTextureRegion(pSPRDscf.getTextureName()), theEngine.getVertexBufferObjectManager()); mIClicakableImpmementation = new IComponentClickableDfltImp(); mIActionOnSceneListener = null; mIActivitySceneListener = null; mIClicakableImpmementation.setTheComponentParent(this); configure(pSPRDscf); }
@Override public boolean onFireEvent(Events event) { return mIClicakableImpmementation.onFireEvent(event); }
@Override public String getPersistenceURL() { return mIClicakableImpmementation.getPersistenceURL(); }
@Override public ArrayList<IComponentEventHandler> getEventsHandler(Events theEvent) { return mIClicakableImpmementation.getEventsHandler(theEvent); }
@Override public void onFireEventAction(Events event, ActionType type) { if (!(null == mIClicakableImpmementation)) mIClicakableImpmementation.onFireEventAction(event, type); }
public void setID(int ID) { if (!(null == mIClicakableImpmementation)) mIClicakableImpmementation.setID(ID); }
public int getID() { if (!(null == mIClicakableImpmementation)) return mIClicakableImpmementation.getID(); return 0; }
public IActionSceneListener getActionOnSceneListener() { return mIClicakableImpmementation.getActionOnSceneListener(); }
// =========================================================== // Interfaces & Superclass // =========================================================== // ====== IClickableSprite ==== public void addEventsHandler(Events theEvent, IComponentEventHandler oCmpDefEventHandler) { if (!(null == mIClicakableImpmementation)) mIClicakableImpmementation.addEventsHandler(theEvent, oCmpDefEventHandler); }