wyvern.lib.properties
Interface PhysicalProperties


public interface PhysicalProperties

This class encapsulates those physical properties of an object that don't typically change. The class is immutable (in that all the instance members are blank finals) for unsynchronized access.

Need to figure out if interfaces can have blank finals.

Version:
1.0, Aug 18, 1997
Author:
Steve Yegge

Field Summary
static int AMORPHOUS
           
static int CUBIC
           
static int damage_
          How much damage the object can take before it's physically destroyed, in terms of "object hit points".
static int DISJOINT
           
static int HUGE
           
static int INVIS
           
static int LARGE
           
static int LINEAR
           
static int MEDIUM
           
static int PLANAR
           
static int shape_
          The approximate shape of this object.
static int size_
          A qualitative measure of the size of this object.
static int SMALL
           
static int SPHERICAL
           
static int TINY
           
static int VERY_LARGE
           
static int VERY_SMALL
           
static int weight_
          The weight of this object, in intergalactic weight units.
 

Field Detail

INVIS

public static final int INVIS
See Also:
Constant Field Values

TINY

public static final int TINY
See Also:
Constant Field Values

VERY_SMALL

public static final int VERY_SMALL
See Also:
Constant Field Values

SMALL

public static final int SMALL
See Also:
Constant Field Values

MEDIUM

public static final int MEDIUM
See Also:
Constant Field Values

LARGE

public static final int LARGE
See Also:
Constant Field Values

VERY_LARGE

public static final int VERY_LARGE
See Also:
Constant Field Values

HUGE

public static final int HUGE
See Also:
Constant Field Values

size_

public static final int size_
A qualitative measure of the size of this object. Useful for doing trivial rejects such as preventing a player from putting an elephant in a backpack.

See Also:
Constant Field Values

weight_

public static final int weight_
The weight of this object, in intergalactic weight units.

See Also:
Constant Field Values

CUBIC

public static final int CUBIC
See Also:
Constant Field Values

SPHERICAL

public static final int SPHERICAL
See Also:
Constant Field Values

PLANAR

public static final int PLANAR
See Also:
Constant Field Values

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

AMORPHOUS

public static final int AMORPHOUS
See Also:
Constant Field Values

DISJOINT

public static final int DISJOINT
See Also:
Constant Field Values

shape_

public static final int shape_
The approximate shape of this object. Helpful for figuring out object spatial relationships, such as whether this object can be squeezed through a keyhole or under a door.

See Also:
Constant Field Values

damage_

public static final int damage_
How much damage the object can take before it's physically destroyed, in terms of "object hit points". For a living thing, this is usually more than what it takes to kill it; it's how much damage the body can withstand before disintegrating.

See Also:
Constant Field Values