本文整理汇总了Java中com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator类的典型用法代码示例。如果您正苦于以下问题:Java AttackIndicator类的具体用法?Java AttackIndicator怎么用?Java AttackIndicator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AttackIndicator类属于com.shatteredpixel.shatteredpixeldungeon.ui包,在下文中一共展示了AttackIndicator类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAttackComplete
import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator; //导入依赖的package包/类
@Override
public void onAttackComplete() {
AttackIndicator.target(enemy);
boolean hit = attack( enemy );
if (subClass == HeroSubClass.GLADIATOR){
if (hit) {
Buff.affect( this, Combo.class ).hit();
} else {
Combo combo = buff(Combo.class);
if (combo != null) combo.miss();
}
}
curAction = null;
super.onAttackComplete();
}
示例2: ready
import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator; //导入依赖的package包/类
private void ready() {
sprite.idle();
curAction = null;
damageInterrupt = true;
ready = true;
AttackIndicator.updateState();
GameScene.ready();
}
示例3: ready
import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator; //导入依赖的package包/类
private void ready() {
if (sprite.looping()) sprite.idle();
curAction = null;
damageInterrupt = true;
ready = true;
AttackIndicator.updateState();
GameScene.ready();
}
示例4: ready
import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator; //导入依赖的package包/类
private void ready() {
if (sprite.looping()) sprite.idle();
curAction = null;
damageInterrupt = true;
ready = true;
AttackIndicator.updateState();
GameScene.ready();
}
示例5: onAttackComplete
import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator; //导入依赖的package包/类
@Override
public void onAttackComplete() {
AttackIndicator.target(enemy);
attack( enemy );
curAction = null;
Invisibility.dispel();
super.onAttackComplete();
}