本文整理了Java中com.artemis.Entity.deleteFromWorld()
方法的一些代码示例,展示了Entity.deleteFromWorld()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.deleteFromWorld()
方法的具体详情如下:
包路径:com.artemis.Entity
类名称:Entity
方法名:deleteFromWorld
[英]Delete this entity from the world.
[中]从世界中删除此实体。
代码示例来源:origin: apotapov/gdx-artemis
@Override
protected void processDelayed(Entity e) {
e.deleteFromWorld();
}
}
代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-plugin-operations
@Override
public void process(Entity e) {
e.deleteFromWorld();
}
}
代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-components-libgdx
@Override
public boolean act(float delta, Entity e) {
e.deleteFromWorld();
return true;
}
代码示例来源:origin: DaanVanYperen/artemis-odb-contrib
@Override
public void process(Entity e) {
e.deleteFromWorld();
}
}
代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-components-libgdx
/** Safely delete all entities from bag, regardless if the bag changes. */
public static void safeDeleteAll(final ImmutableBag<Entity> entities1) {
final Bag<Entity> entities = new Bag<>();
entities.addAll(entities1);
for (int i = 0, s = entities.size(); i < s; i++) {
entities.get(i).deleteFromWorld();
}
}
}
代码示例来源:origin: DaanVanYperen/artemis-odb-contrib
/** Safely delete all entities from bag, regardless if the bag changes. */
public static void safeDeleteAll(final ImmutableBag<Entity> entities1) {
final Bag<Entity> entities = new Bag<>();
entities.addAll(entities1);
for (int i = 0, s = entities.size(); i < s; i++) {
entities.get(i).deleteFromWorld();
}
}
}
代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-jam
/** Safely delete all entities from bag, regardless if the bag changes. */
public static void safeDeleteAll(final ImmutableBag<Entity> entities1) {
final Bag<Entity> entities = new Bag<>();
entities.addAll(entities1);
for (int i = 0, s = entities.size(); i < s; i++) {
entities.get(i).deleteFromWorld();
}
}
}
代码示例来源:origin: net.mostlyoriginal.artemis-odb/contrib-components-libgdx
@Override
protected void process(Entity e) {
final Attached attached = am.get(e);
if (attached.parent.isActive()) {
// move attachment to absolute position, adjusted with slack.
Pos pos = pm.get(e);
Pos parPos = pm.get(attached.parent.get());
pos.x = parPos.x + attached.xo + attached.slackX;
pos.y = parPos.y + attached.yo + attached.slackY;
updateSlack(attached);
} else {
// parent gone? we gone!
e.deleteFromWorld();
}
}
内容来源于网络,如有侵权,请联系作者删除!