wyvern.lib
Interface Container

All Superinterfaces:
PropertyList
All Known Subinterfaces:
Bag, GameMap, Inventory
All Known Implementing Classes:
AbstractGameMap, BasicBag, MonsterInventory, Trenchcoat

public interface Container
extends PropertyList

Superinterface for things that can hold GameObjects. Currently there's just GameMap and Bag, and their subclasses (such as Inventory).

Version:
1.0, Jul 21, 2003
Author:
Steve Yegge

Field Summary
 
Fields inherited from interface wyvern.lib.PropertyList
PROPERTY_PACKAGE
 
Method Summary
 boolean isBag()
          Returns true if this container is a Bag (or Inventory, or other implementation of the Bag interface).
 boolean isInventory()
          Returns true if this container is an Inventory.
 boolean isMap()
          Returns true if this container is a GameMap.
 
Methods inherited from interface wyvern.lib.PropertyList
addProperty, addTransientProperty, adjustDoubleProperty, adjustIntProperty, adjustLongProperty, adjustTransientDoubleProperty, adjustTransientIntProperty, adjustTransientLongProperty, countLocalProperties, getDoubleProperty, getInheritedProperty, getIntProperty, getLocalProperties, getLocalProperty, getLongProperty, getParent, getPersistentDoubleProperty, getPersistentIntProperty, getPersistentLocalProperties, getPersistentLongProperty, getPersistentProperty, getProperties, getProperties, getPropertiesIncludingTransients, getPropertiesIncludingTransients, getProperty, getSerializableProperties, getSerializableProperty, getStringProperty, getTransientDoubleProperty, getTransientIntProperty, getTransientLongProperty, getTransientProperties, getTransientProperty, hasLocalProperty, hasPersistentProperty, hasProperty, hasTransientProperty, inheritProperty, isReadOnly, isRemoved, isTransientlyRemoved, printLocalProperties, printProperties, printProperties, printTransientProperties, removeProperty, removeTransientProperty, setDoubleProperty, setIntProperty, setLongProperty, setParent, setProperty, setReadOnly, setTransientDoubleProperty, setTransientIntProperty, setTransientLongProperty, setTransientProperty, toString, transientlyRemoveProperty
 

Method Detail

isMap

public boolean isMap()
Returns true if this container is a GameMap.

Returns:
true for maps, false for anything else

isBag

public boolean isBag()
Returns true if this container is a Bag (or Inventory, or other implementation of the Bag interface).

Returns:
true for bags and inventories, false for maps

isInventory

public boolean isInventory()
Returns true if this container is an Inventory.

Returns:
true if it's an Inventory (returns false for bags and maps)