本文整理汇总了Java中com.badlogic.gdx.scenes.scene2d.Group.removeActor方法的典型用法代码示例。如果您正苦于以下问题:Java Group.removeActor方法的具体用法?Java Group.removeActor怎么用?Java Group.removeActor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.scenes.scene2d.Group
的用法示例。
在下文中一共展示了Group.removeActor方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: disposeAbstractActorList
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose abstract actor list from a group.
*
* @param group the group
* @param list the list
*/
public static void disposeAbstractActorList(Group group,
ArrayList<AbstractActor> list) {
if (group != null && list != null) {
if (list.size() > 0) {
for (int i = 0; i < list.size(); i++) {
AbstractActor abstractActor = list.get(i);
try {
abstractActor.clear();
if (group.removeActor(abstractActor))
log("Actor disposed", abstractActor);
} catch (Exception e) {
log("Actor dispose FAIL!", abstractActor);
}
}
}
}
}
示例2: disposeAbstractActorLightList
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose abstract actor light list from a group.
*
* @param group the group
* @param list the list
*/
public static void disposeAbstractActorLightList(Group group,
ArrayList<AbstractActorLight> list) {
if (group != null && list != null) {
if (list.size() > 0) {
for (int i = 0; i < list.size(); i++) {
AbstractActorLight abstractActorLight = list.get(i);
try {
abstractActorLight.clear();
if (group.removeActor(abstractActorLight))
log("Actor disposed", abstractActorLight);
} catch (Exception e) {
log("Actor dispose FAIL!", abstractActorLight);
}
}
}
}
}
示例3: disposeSmartModelList
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose smart model list from a group.
*
* @param group the group
* @param list the list
*/
public static void disposeSmartModelList(Group group,
ArrayList<SmartActor> list) {
if (group != null && list != null) {
if (list.size() > 0) {
for (int i = 0; i < list.size(); i++) {
SmartActor sm = list.get(i);
try {
sm.clear();
if (group.removeActor(sm))
log("Smart Model disposed", sm);
} catch (Exception e) {
log("Smart Model dispose FAIL!", sm);
}
}
}
}
}
示例4: disposeActor
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose actor from a group.
*
* @param group the group
* @param actorToBeDisposed the actor to be disposed
*/
public static void disposeActor(Group group, Actor actorToBeDisposed) {
if (group != null && actorToBeDisposed != null) {
try {
actorToBeDisposed.clear();
if (group.removeActor(actorToBeDisposed))
log("Actor disposed", actorToBeDisposed);
} catch (Exception e) {
log("Actor dispose FAIL!", actorToBeDisposed);
}
}
}
示例5: disposeGroup
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose group from a group.
*
* @param group the group
* @param groupToBeDisposed the group to be disposed
*/
public static void disposeGroup(Group group, Group groupToBeDisposed) {
if (group != null && groupToBeDisposed != null) {
try {
groupToBeDisposed.clear();
if (group.removeActor(groupToBeDisposed))
log("Actor disposed", groupToBeDisposed);
} catch (Exception e) {
log("Actor dispose FAIL!", groupToBeDisposed);
}
}
}
示例6: disposeEmptyActor
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose empty actor from a group.
*
* @param group the group
* @param emptyActor the empty actor
*/
public static void disposeEmptyActor(Group group, EmptyActor emptyActor) {
if (group != null && emptyActor != null) {
try {
emptyActor.clear();
if (group.removeActor(emptyActor))
log("Actor disposed", emptyActor);
} catch (Exception e) {
log("Actor dispose FAIL!", emptyActor);
}
}
}
示例7: disposeEmptyActorLight
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Dispose empty actor light from a group.
*
* @param group the group
* @param emptyActorLight the empty actor light
*/
public static void disposeEmptyActorLight(Group group,
EmptyActorLight emptyActorLight) {
if (group != null && emptyActorLight != null) {
try {
emptyActorLight.clear();
if (group.removeActor(emptyActorLight))
log("Group disposed", emptyActorLight);
} catch (Exception e) {
log("Group dispose FAIL!", emptyActorLight);
}
}
}
示例8: removeActor
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
/**
* Removes the actor.
*
* @param group the group
* @param actor the actor
*/
private static void removeActor(Group group, Actor actor) {
if (group != null && actor != null) {
actor.clearActions();
String actorName = actor.getName();
if (group.removeActor(actor)) {
MtxLogger.log(logActive, true, logTag, "Actor removed! (Name: "
+ actorName + ")");
} else {
MtxLogger.log(logActive, true, logTag,
"Actor not removed! (Name: " + actorName + ")");
}
}
}
示例9: removeActor
import com.badlogic.gdx.scenes.scene2d.Group; //导入方法依赖的package包/类
private static void removeActor(Group group, Actor actor) {
if (group != null && actor != null) {
actor.clearActions();
String actorName = actor.getName();
if (group.removeActor(actor)) {
Gdx.app.log(Constants.LOG, "Actor removed! (Name: " + actorName + ")");
} else {
Gdx.app.log(Constants.LOG, "Actor not removed! (Name: " + actorName + ")");
}
}
}