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);
 }
Exemple #3
0
        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);
        }
Exemple #4
0
        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;
 }
Exemple #7
0
 public abstract bool RemoveEntity(/* final */ IEntityMatcher pEntityMatcher);
Exemple #8
0
 public abstract IEntity FindEntity(/* final */ IEntityMatcher pEntityMatcher);
 public abstract bool RemoveEntity(/* final */ IEntityMatcher pEntityMatcher);
 public abstract IEntity FindEntity(/* final */ IEntityMatcher pEntityMatcher);