noope.laws
Class LawPropertyRecord
java.lang.Object
|
+--noope.laws.LawPropertyRecord
- Direct Known Subclasses:
- GravityPropertyRecord, OutputProjectionPropertyRecord, SphereCollisionPropertyRecord
- public class LawPropertyRecord
- extends java.lang.Object
This is a class that stores the properties of an Entity needed by a
specific Law. Each Entity stores a LawPropertyRecord for every Law present
in Laws. This class is not abstract, but it does not store any data, so
for most Laws, it will be desirable to derive subclasses.
Every subclass should have constructor following the same interface.
This is not a requirement, since only the Law whose LawPropertyRecord
this is is ever going to construct one, but it is a good idea for consistent
style.
- Version:
- 19 April 2001: added dispose() [Miklos Reiter]
- Author:
- Miklos Reiter
Method Summary |
void |
dispose()
Disposes of system resources held by this LawPropertyRecord. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LawPropertyRecord
public LawPropertyRecord(BlockReader br,
Entity ent)
- Construct a LawPropertyRecord from the supplied BlockReader,
for the supplied Entity. This method does nothing, so it should
be overridden in subclasses. Every subclass
should have constructor following this interface.
- Parameters:
br
- BlockReader used to initialise LawPropertyRecordent
- Entity for which the LawPropertyRecord is being constructed
dispose
public void dispose()
- Disposes of system resources held by this LawPropertyRecord. Does nothing if not
overridden.