本文整理汇总了Java中com.watabou.noosa.Gizmo类的典型用法代码示例。如果您正苦于以下问题:Java Gizmo类的具体用法?Java Gizmo怎么用?Java Gizmo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Gizmo类属于com.watabou.noosa包,在下文中一共展示了Gizmo类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: update
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void update() {
super.update();
if (lastEnabled != Dungeon.hero.ready) {
lastEnabled = Dungeon.hero.ready;
for (Gizmo tool : members) {
if (tool instanceof Tool) {
((Tool) tool).enable(lastEnabled);
}
}
}
if (!Dungeon.hero.isAlive()) {
btnInventory.enable(true);
}
}
示例2: update
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void update() {
super.update();
if (lastEnabled != (Dungeon.hero.ready && Dungeon.hero.isAlive())) {
lastEnabled = (Dungeon.hero.ready && Dungeon.hero.isAlive());
for (Gizmo tool : members) {
if (tool instanceof Tool) {
((Tool)tool).enable( lastEnabled );
}
}
}
if (!Dungeon.hero.isAlive()) {
btnInventory.enable(true);
}
}
示例3: update
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void update() {
super.update();
if (lastEnabled != Dungeon.hero.ready) {
lastEnabled = Dungeon.hero.ready;
for (Gizmo tool : members) {
if (tool instanceof Tool) {
((Tool)tool).enable( lastEnabled );
}
}
}
if (!Dungeon.hero.isAlive()) {
btnInventory.enable( true );
}
}
示例4: update
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void update() {
super.update();
if (lastEnabled != Dungeon.hero.ready) {
lastEnabled = Dungeon.hero.ready;
for (Gizmo tool : members) {
if (tool instanceof Tool) {
((Tool)tool).enable( lastEnabled );
}
}
}
//btnResume.visible = Dungeon.hero.lastAction != null;
if (!Dungeon.hero.isAlive()) {
btnInventory.enable( true );
}
//If we have 2 slots, and 2nd one isn't visible, or we have 1, and 2nd one is visible...
if ((QuickSlots == 1) == btnQuick2.visible){
layout();
}
}
示例5: update
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void update() {
super.update();
if (lastEnabled != Dungeon.hero.isReady()) {
lastEnabled = Dungeon.hero.isReady();
for (Gizmo tool : members) {
if (tool instanceof Tool) {
((Tool) tool).enable(lastEnabled);
}
}
}
if (!Dungeon.hero.isAlive()) {
btnInventory.enable(true);
}
}
示例6: update
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void update() {
super.update();
if (lastEnabled != (Dungeon.hero.ready && Dungeon.hero.isAlive())) {
lastEnabled = (Dungeon.hero.ready && Dungeon.hero.isAlive());
for (Gizmo tool : members) {
if (tool instanceof Tool) {
((Tool)tool).enable( lastEnabled );
}
}
}
if (!Dungeon.hero.isAlive()) {
btnInventory.enable(true);
}
}
示例7: Tweener
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
public Tweener(Gizmo target, float interval) {
super();
this.target = target;
this.interval = interval;
elapsed = 0;
}
示例8: Tweener
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
public Tweener( Gizmo target, float interval ) {
super();
this.target = target;
this.interval = interval;
elapsed = 0;
}
示例9: Tweener
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
public Tweener(Gizmo target, float interval) {
super();
this.target = target;
this.interval = interval;
elapsed = 0;
}
示例10: onClick
import com.watabou.noosa.Gizmo; //导入依赖的package包/类
@Override
public void onClick(float x, float y) {
int size = content.getLength();
for (int i = 0; i < size; i++) {
Gizmo item = content.getMember(i);
if (item instanceof IClickable) {
if (((IClickable) item).onClick(x, y)) {
break;
}
}
}
}