本文整理汇总了Java中org.andengine.util.adt.list.SmartList类的典型用法代码示例。如果您正苦于以下问题:Java SmartList类的具体用法?Java SmartList怎么用?Java SmartList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SmartList类属于org.andengine.util.adt.list包,在下文中一共展示了SmartList类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: toString
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
@Override
public void toString(final StringBuilder pStringBuilder) {
pStringBuilder.append(this.getClass().getSimpleName());
if ((this.mChildren != null) && (this.mChildren.size() > 0)) {
final SmartList<IEntity> children = this.mChildren;
pStringBuilder.append(" [");
final int childCount = children.size();
for (int i = 0; i < childCount; i++) {
final IEntity child = children.get(i);
child.toString(pStringBuilder);
if (i < (childCount - 1)) {
pStringBuilder.append(", ");
}
}
pStringBuilder.append(']');
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:22,代码来源:Entity.java
示例2: onManagedUpdate
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
protected void onManagedUpdate(final float pSecondsElapsed) {
if (this.mEntityModifiers != null) {
this.mEntityModifiers.onUpdate(pSecondsElapsed);
}
if (this.mUpdateHandlers != null) {
this.mUpdateHandlers.onUpdate(pSecondsElapsed);
}
if ((this.mChildren != null) && !this.mChildrenIgnoreUpdate) {
final SmartList<IEntity> children = this.mChildren;
final int entityCount = children.size();
for (int i = 0; i < entityCount; i++) {
final IEntity child = children.get(i);
child.onUpdate(pSecondsElapsed);
}
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:18,代码来源:Entity.java
示例3: toString
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
@Override
public void toString(final StringBuilder pStringBuilder) {
pStringBuilder.append(this.getClass().getSimpleName());
if((this.mChildren != null) && (this.mChildren.size() > 0)) {
pStringBuilder.append(" [");
final SmartList<IEntity> entities = this.mChildren;
for(int i = 0; i < entities.size(); i++) {
entities.get(i).toString(pStringBuilder);
if(i < (entities.size() - 1)) {
pStringBuilder.append(", ");
}
}
pStringBuilder.append("]");
}
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:17,代码来源:Entity.java
示例4: onManagedUpdate
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
protected void onManagedUpdate(final float pSecondsElapsed) {
if(this.mEntityModifiers != null) {
this.mEntityModifiers.onUpdate(pSecondsElapsed);
}
if(this.mUpdateHandlers != null) {
this.mUpdateHandlers.onUpdate(pSecondsElapsed);
}
if((this.mChildren != null) && !this.mChildrenIgnoreUpdate) {
final SmartList<IEntity> entities = this.mChildren;
final int entityCount = entities.size();
for(int i = 0; i < entityCount; i++) {
entities.get(i).onUpdate(pSecondsElapsed);
}
}
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:17,代码来源:Entity.java
示例5: reset
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
@Override
public void reset() {
this.mVisible = true;
this.mCullingEnabled = false;
this.mIgnoreUpdate = false;
this.mChildrenVisible = true;
this.mChildrenIgnoreUpdate = false;
this.mRotation = 0;
this.mScaleX = 1;
this.mScaleY = 1;
this.mSkewX = 0;
this.mSkewY = 0;
this.resetRotationCenter();
this.resetSkewCenter();
this.resetScaleCenter();
this.mColor.reset();
this.resetEntityModifiers();
if (this.mChildren != null) {
final SmartList<IEntity> children = this.mChildren;
for (int i = children.size() - 1; i >= 0; i--) {
final IEntity child = children.get(i);
child.reset();
}
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:31,代码来源:Entity.java
示例6: onUpdateSpriteBatch
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
@Override
protected boolean onUpdateSpriteBatch() {
final SmartList<IEntity> children = this.mChildren;
if (children == null) {
return false;
} else {
final int childCount = children.size();
for (int i = 0; i < childCount; i++) {
this.drawWithoutChecks((Sprite) children.get(i));
}
return true;
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:14,代码来源:SpriteGroup.java
示例7: onModifierStarted
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
protected void onModifierStarted(final T pItem) {
final SmartList<IModifierListener<T>> modifierListeners = this.mModifierListeners;
final int modifierListenerCount = modifierListeners.size();
for (int i = modifierListenerCount - 1; i >= 0; i--) {
modifierListeners.get(i).onModifierStarted(this, pItem);
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:8,代码来源:BaseModifier.java
示例8: onModifierFinished
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
protected void onModifierFinished(final T pItem) {
final SmartList<IModifierListener<T>> modifierListeners = this.mModifierListeners;
final int modifierListenerCount = modifierListeners.size();
for (int i = modifierListenerCount - 1; i >= 0; i--) {
modifierListeners.get(i).onModifierFinished(this, pItem);
}
}
开发者ID:ArturVasilov,项目名称:AndroidCourses,代码行数:8,代码来源:BaseModifier.java
示例9: reset
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
@Override
public void reset() {
this.mVisible = true;
this.mCullingEnabled = false;
this.mIgnoreUpdate = false;
this.mChildrenVisible = true;
this.mChildrenIgnoreUpdate = false;
this.mRotation = 0;
this.mScaleX = 1;
this.mScaleY = 1;
this.mSkewX = 0;
this.mSkewY = 0;
this.mColor.reset();
if(this.mEntityModifiers != null) {
this.mEntityModifiers.reset();
}
if(this.mChildren != null) {
final SmartList<IEntity> entities = this.mChildren;
for(int i = entities.size() - 1; i >= 0; i--) {
entities.get(i).reset();
}
}
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:28,代码来源:Entity.java
示例10: onUpdateSpriteBatch
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
@Override
protected boolean onUpdateSpriteBatch() {
final SmartList<IEntity> children = this.mChildren;
if(children == null) {
return false;
} else {
final int childCount = children.size();
for(int i = 0; i < childCount; i++) {
this.drawWithoutChecks((Sprite)children.get(i));
}
return true;
}
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:14,代码来源:SpriteGroup.java
示例11: onModifierStarted
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
protected void onModifierStarted(final T pItem) {
final SmartList<IModifierListener<T>> modifierListeners = this.mModifierListeners;
final int modifierListenerCount = modifierListeners.size();
for(int i = modifierListenerCount - 1; i >= 0; i--) {
modifierListeners.get(i).onModifierStarted(this, pItem);
}
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:8,代码来源:BaseModifier.java
示例12: onModifierFinished
import org.andengine.util.adt.list.SmartList; //导入依赖的package包/类
protected void onModifierFinished(final T pItem) {
final SmartList<IModifierListener<T>> modifierListeners = this.mModifierListeners;
final int modifierListenerCount = modifierListeners.size();
for(int i = modifierListenerCount - 1; i >= 0; i--) {
modifierListeners.get(i).onModifierFinished(this, pItem);
}
}
开发者ID:peterchaula,项目名称:ClassicF1,代码行数:8,代码来源:BaseModifier.java
注:本文中的org.andengine.util.adt.list.SmartList类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论