this.renderer = renderer;
Iterator<Sprite> iCollisionAndUpdate = collisionAndUpdate.iterator();
while (iCollisionAndUpdate.hasNext()) {
Creature person = (Creature) iCollisionAndUpdate.next();
if(!checkPeopleCollision(person, elapsedTime, collisionAndUpdate.iterator(),
iOnlyCollision.iterator())){
checkTileCollision(person, elapsedTime);
}
person.update(elapsedTime);
//Looks for people and objects that can be contacted.
person.removeContacts();
checkContactCollision(person, elapsedTime, collisionAndUpdate.iterator(),
iOnlyCollision.iterator(), itemSprites.iterator());
}
}