noope.laws
Class SphereCollisionPropertyRecord

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

public class SphereCollisionPropertyRecord
extends LawPropertyRecord

This is the LawPropertyRecord used by the SphereCollision law to store the radius of each Entity.

Version:
June 2001
Author:
Miklos Reiter

Constructor Summary
SphereCollisionPropertyRecord(BlockReader br, Entity ent)
          Constructs a new SphereCollisionPropertyRecord from the given BlockReader.
 
Method Summary
 double getRadius()
          Returns the radius of this (spherical) entity.
 
Methods inherited from class noope.laws.LawPropertyRecord
dispose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SphereCollisionPropertyRecord

public SphereCollisionPropertyRecord(BlockReader br,
                                     Entity ent)
                              throws BRLoadingException
Constructs a new SphereCollisionPropertyRecord from the given BlockReader. This tries to find the entry with the key "radius". If it fails to do so, or the value cannot be interpreted as a double, an exception is raised.
Method Detail

getRadius

public double getRadius()
Returns the radius of this (spherical) entity.