wyvern.lib.properties
Class Encumbrance

java.lang.Object
  extended bywyvern.lib.properties.Encumbrance

public abstract class Encumbrance
extends java.lang.Object

Constants defining the valid levels of player/monster encumbrance. Encumbrance is how slowed down a monster is from carrying too much stuff.

Version:
1.0, Jan 31, 2001
Author:
Steve Yegge

Field Summary
static int BURDENED
          Indicates the player is slowed down even more because of inventory load.
static int ENCUMBERED
          Indicates the player is slowed down because of inventory load.
static int IMMOBILIZED
          Indicates the player cannot move because they are carrying too much stuff.
static int STRAINED
          Indicates the player is heavily slowed because of inventory load.
static int UNENCUMBERED
          This flag indicates that the player is not slowed down by the stuff they're carrying.
 
Constructor Summary
Encumbrance()
           
 
Method Summary
static java.lang.String getLoadChangeMessage(int load)
          Returns message to print when switching to a given encumbrance level.
static java.lang.String getLoadTitle(int load)
          Returns the name for the given load level, such as "burdened" or "strained".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNENCUMBERED

public static int UNENCUMBERED
This flag indicates that the player is not slowed down by the stuff they're carrying. The flag is stored in the "encumbrance" int property, zero by default.


ENCUMBERED

public static int ENCUMBERED
Indicates the player is slowed down because of inventory load. The flag is stored in the "encumbrance" int property, zero by default.


BURDENED

public static int BURDENED
Indicates the player is slowed down even more because of inventory load. The flag is stored in the "encumbrance" int property, zero by default.


STRAINED

public static int STRAINED
Indicates the player is heavily slowed because of inventory load. The flag is stored in the "encumbrance" int property, zero by default.


IMMOBILIZED

public static int IMMOBILIZED
Indicates the player cannot move because they are carrying too much stuff. The flag is stored in the "encumbrance" int property, zero by default.

Constructor Detail

Encumbrance

public Encumbrance()
Method Detail

getLoadChangeMessage

public static java.lang.String getLoadChangeMessage(int load)
Returns message to print when switching to a given encumbrance level.

Parameters:
load - the Encumbrance level
Returns:
the message to print, such as "You cannot move while carrying this much."

getLoadTitle

public static java.lang.String getLoadTitle(int load)
Returns the name for the given load level, such as "burdened" or "strained".

Parameters:
load - the load level
Returns:
the name for that level