noope.laws
Class GravityPropertyRecord

java.lang.Object
  |
  +--noope.laws.LawPropertyRecord
        |
        +--noope.laws.GravityPropertyRecord

public class GravityPropertyRecord
extends LawPropertyRecord

This is the LawPropertyRecord class associated with the Gravity law. The only thing it stores is the gravitationalMass (a double).

Version:
March 21 2001
Author:
Miklos Reiter

Constructor Summary
GravityPropertyRecord(BlockReader br, Entity ent)
          Construct the GravityPropertyRecord from the supplied BlockReader, for the supplied Entity.
 
Method Summary
 double getGravitationalMass()
          At this point, I've gone to have tea, so you'll have to guess, what this method does.
 java.lang.String toString()
          For debug-quality printing.
 
Methods inherited from class noope.laws.LawPropertyRecord
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GravityPropertyRecord

public GravityPropertyRecord(BlockReader br,
                             Entity ent)
                      throws BRLoadingException
Construct the GravityPropertyRecord from the supplied BlockReader, for the supplied Entity. Expects the first entry in br to be "gravitationalMass", followed by a value that can be interpreted as a double. If it doesn't find this entry, it sets gravitationalMass to the inertialMass of ent, unless ent is null, in which case it raises an Exception.
Parameters:
br - BlockReader used to initialise GravityPropertyRecord
ent - Entity for which the GravityPropertyRecord is being constructed
Method Detail

getGravitationalMass

public double getGravitationalMass()
At this point, I've gone to have tea, so you'll have to guess, what this method does.

toString

public java.lang.String toString()
For debug-quality printing.
Overrides:
toString in class java.lang.Object