noope.core
Class Entities

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--noope.core.Entities
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class Entities
extends java.util.Vector

This class maintains a list of Entity objects. It is a subclass of Vector, and as such it implements the List interface. The Entity objects are acted on by Law objects, but this requires no special support from the Entities class.

Version:
28-Apr-2001 Miklos Reiter: removed ListIterator for compatibility with Java 1.1
Author:
James Kermode
See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Entities(BlockReader br, Physics phys)
          Constructs the Entities object from the supplied BlockReader.
 
Method Summary
 void dispose()
          Disposes of resources by calling dispose() on each of the Entity objects stored in the List.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

Entities

public Entities(BlockReader br,
                Physics phys)
         throws BRLoadingException
Constructs the Entities object from the supplied BlockReader. This should be the entities{...} block from the main BlockReader - this constructor will only be called by the Physics(BlockReader) constructor. The physics object is not used, it is just passed along to each of the Entity() constructors.
Parameters:
br - BlockReader used to read in the Entity objects
phys - Physics object passed on to Entity() constructors
Throws:
BRLoadingException - if invalid data is read from the BlockReader
See Also:
Entity.Entity(BlockReader, Physics)
Method Detail

dispose

public void dispose()
Disposes of resources by calling dispose() on each of the Entity objects stored in the List. Added by Miklos Reiter on 19 April 2001.