本文整理匯總了Java中org.anddev.andengine.engine.handler.IUpdateHandler類的典型用法代碼示例。如果您正苦於以下問題:Java IUpdateHandler類的具體用法?Java IUpdateHandler怎麽用?Java IUpdateHandler使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IUpdateHandler類屬於org.anddev.andengine.engine.handler包,在下文中一共展示了IUpdateHandler類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: registerUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
@Override
public void registerUpdateHandler(final IUpdateHandler pUpdateHandler) {
if(this.mUpdateHandlers == null) {
this.allocateUpdateHandlers();
}
this.mUpdateHandlers.add(pUpdateHandler);
}
示例2: unregisterUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
@Override
public boolean unregisterUpdateHandler(final IUpdateHandler pUpdateHandler) {
if(this.mUpdateHandlers == null) {
return false;
}
return this.mUpdateHandlers.remove(pUpdateHandler);
}
示例3: onAttached
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
public void onAttached() {
int intBoold = heroState.getMaxBlood();
heroState.setBlood(mBlood);
this.mBlood = new Blood(10, -10, plantTexture.getWidth() - 20, 10,intBoold);
heroState.setBlood(mBlood);
attachChild(this.mBlood);
GameData.getInstance().mSoundPlanting.play();
beginToShort();
registerUpdateHandler(new IUpdateHandler() {
@Override
public void onUpdate(float pSecondsElapsed) {
AndEnviroment.getInstance().getEngine().runOnUpdateThread(new Runnable() {
@Override
public void run() {
Hero.this.checkCollisionShot(); // controlla danni da colpi
// Hero.this.checkCollisionPlant(); // crea danni a piange se collide e se vince riparte
}
});
}
@Override
public void reset() {
}
});
reLive();
}
示例4: registerUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
@Override
public void registerUpdateHandler(final IUpdateHandler pUpdateHandler) {
this.mMenuItem.registerUpdateHandler(pUpdateHandler);
}
示例5: unregisterUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
@Override
public boolean unregisterUpdateHandler(final IUpdateHandler pUpdateHandler) {
return this.mMenuItem.unregisterUpdateHandler(pUpdateHandler);
}
示例6: registerUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
public void registerUpdateHandler(final IUpdateHandler pUpdateHandler) {
this.mUpdateHandlers.add(pUpdateHandler);
}
示例7: unregisterUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
public void unregisterUpdateHandler(final IUpdateHandler pUpdateHandler) {
this.mUpdateHandlers.remove(pUpdateHandler);
}
示例8: registerUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
public void registerUpdateHandler(final IUpdateHandler pUpdateHandler);
示例9: unregisterUpdateHandler
import org.anddev.andengine.engine.handler.IUpdateHandler; //導入依賴的package包/類
public boolean unregisterUpdateHandler(final IUpdateHandler pUpdateHandler);