noope.input
Class EntityLoader

java.lang.Object
  |
  +--noope.input.EntityLoader
Direct Known Subclasses:
DynamicEntityLoader, HardCodedEntityLoader

public abstract class EntityLoader
extends java.lang.Object

Objects of this class provide to Entities a means of creating new instances of Entity classes with a given name. These classes can be dynamically loaded or hard-coded into the LawLoader (e.g. for an Applet that isn't allowed by the SecurityManager to access the constructor of a dynamically loaded class).

Version:
28-Apr-2001
Author:
Miklos Reiter

Constructor Summary
EntityLoader()
           
 
Method Summary
abstract  Entity createEntity(java.lang.String className, BlockReaderLocation brL, BlockReader br, Physics phys)
          This method should create a new Entity object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityLoader

public EntityLoader()
Method Detail

createEntity

public abstract Entity createEntity(java.lang.String className,
                                    BlockReaderLocation brL,
                                    BlockReader br,
                                    Physics phys)
                             throws BRLoadingException
This method should create a new Entity object. The arguments, except for className and brL are passed on to the constructor, so the class has to have a constructor of this form.