本文整理汇总了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);