public override IEntity FindEntity(IEntityMatcher pEntityMatcher) { IEntity[] entities = this.mEntities; for (int i = entities.Length - 1; i >= 0; i--) { IEntity entity = entities[i]; if (pEntityMatcher.Matches(entity)) { return(entity); } } return(null); }
public override bool RemoveEntity(IEntityMatcher pEntityMatcher) { IEntity[] entities = this.mEntities; for (int i = entities.Length - 1; i >= 0; i--) { if (pEntityMatcher.Matches(entities[i])) { this.RemoveEntity(i); return(true); } } return(false); }
public override IEntity FindEntity(IEntityMatcher pEntityMatcher) { //final ArrayList<IEntity> entities = this.mEntities; IList <IEntity> entities = this.mEntities; for (int i = entities.Count - 1; i >= 0; i--) { IEntity entity = entities[i]; if (pEntityMatcher.Matches(entity)) { return(entity); } } return(null); }
public override bool RemoveEntity(IEntityMatcher pEntityMatcher) { //final ArrayList<IEntity> entities = this.mEntities; IList <IEntity> entities = this.mEntities; for (int i = entities.Count - 1; i >= 0; i--) { if (pEntityMatcher.Matches(entities[i])) { entities.RemoveAt(i); return(true); } } return(false); }
public override IEntity FindEntity(IEntityMatcher pEntityMatcher) { //final ArrayList<IEntity> entities = this.mEntities; IList<IEntity> entities = this.mEntities; for (int i = entities.Count - 1; i >= 0; i--) { IEntity entity = entities[i]; if (pEntityMatcher.Matches(entity)) { return entity; } } return null; }
public override bool RemoveEntity(IEntityMatcher pEntityMatcher) { //final ArrayList<IEntity> entities = this.mEntities; IList<IEntity> entities = this.mEntities; for (int i = entities.Count - 1; i >= 0; i--) { if (pEntityMatcher.Matches(entities[i])) { entities.RemoveAt(i); return true; } } return false; }
public abstract bool RemoveEntity(/* final */ IEntityMatcher pEntityMatcher);
public abstract IEntity FindEntity(/* final */ IEntityMatcher pEntityMatcher);