当前位置: 首页>>代码示例>>Java>>正文


Java Group.removeActor方法代码示例

本文整理汇总了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);
				}
			}
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:24,代码来源:UtilsDisposer.java

示例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);
				}
			}
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:24,代码来源:UtilsDisposer.java

示例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);
				}
			}
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:24,代码来源:UtilsDisposer.java

示例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);
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:18,代码来源:UtilsDisposer.java

示例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);
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:18,代码来源:UtilsDisposer.java

示例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);
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:18,代码来源:UtilsDisposer.java

示例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);
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:19,代码来源:UtilsDisposer.java

示例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 + ")");
		}
	}
}
 
开发者ID:sawankh,项目名称:MathAttack,代码行数:20,代码来源:EffectCreator.java

示例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 + ")");
        }
    }
}
 
开发者ID:Rubentxu,项目名称:DreamsLibGdx,代码行数:12,代码来源:EffectCreator.java


注:本文中的com.badlogic.gdx.scenes.scene2d.Group.removeActor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。