cleoni.adv
Class Character

java.lang.Object
  extended by cleoni.adv.ManageableObject
      extended by cleoni.adv.DimxObject
          extended by cleoni.adv.AdvObject
              extended by cleoni.adv.Character
Direct Known Subclasses:
Player

public class Character
extends AdvObject

Implements CHARACTERs


Field Summary
 Token accepting
           
static int[] methodArgs
           
static java.lang.String[] methods
           
 
Fields inherited from class cleoni.adv.AdvObject
capacity, container, defContainer, facing, images, showfor, showmode, volume
 
Fields inherited from class cleoni.adv.DimxObject
contents, id, name, properties, world
 
Constructor Summary
Character(World aWorld, java.lang.String aName, java.lang.String anId, java.lang.String aDescription, java.lang.String anIcon, int aCapacity, java.lang.String attrList, java.lang.String aDefContainer, java.lang.String acceptList)
          Character constructor comment.
 
Method Summary
protected  boolean accepts(AdvObject what)
           
 boolean display(java.lang.String msg)
           
 boolean displayh(java.lang.String msg)
           
 Token execMethod(java.lang.String mname, Dict params)
           
 int getMethodArgs(java.lang.String mname)
           
 java.lang.String[] getMethods()
           
 java.lang.String getTypePrefix()
           
 boolean isaCharacter()
           
 boolean isRobot()
           
protected  boolean itemDrop(AdvObject what)
           
protected  boolean itemGive(java.lang.String fullId, java.lang.String toWhoId)
           
protected  boolean itemPick(AdvObject i1)
           
protected  boolean itemPut(java.lang.String fullId, java.lang.String inWhatId)
           
protected  boolean itemUse(java.lang.String fullId)
           
protected  boolean itemUse(java.lang.String fullId1, java.lang.String fullId2)
           
 java.lang.String look(AdvObject o, DictSorted input, Skin skin)
           
 boolean objectClose(AdvObject o)
           
protected  boolean objectHide(AdvObject o)
          Hides the specified object.
protected  boolean objectHide(java.lang.String fullId)
          Hides the specified object.
 boolean objectOpen(AdvObject o)
           
 boolean objectSearch(java.lang.String fullId)
           
protected  void rotate(java.lang.String direction)
           
 Token varGet(java.lang.String varId, boolean getReference)
          Gets a property
 void worldChange(World toWorld, java.lang.String newid, java.lang.String defContainer)
          See AdvObject.WorldChange
 
Methods inherited from class cleoni.adv.AdvObject
afterWorldChange, attachEvent, close, contains, copyFacesInto, debug, die, getContents, getDescription, getExactImage, getFreeSpace, getIcon, getNearestImage, getPanel, getPeopleContainer, getRoom, getType, getType, getUsedSpace, go, hasImageUrl, hasSeveralFaces, hear, hide, isAccessibleFrom, isHidden, isHideable, isLink, isLockable, isLocked, isNear, isOpen, isOpenable, isPeopleContainer, isPickable, isPlayer, isVehicle, listImages, moveTo, objPlace, objRemove, open, reset, setDescription, setFacing, setHidden, setHideable, setImage, setLockable, setLocked, setOpenable, toString, varGetIdAt, varsCount, varsSet, varsToHtmlTable
 
Methods inherited from class cleoni.adv.DimxObject
displayRight, getContents, getId, getName, getObjectsByName, hasMethod, isanItem, isaRoom, playBackground, playSound, refreshView, sendCmd, setPanel, useView, varExists, varGetAdvObj, varGetBool, varGetDimxObj, varGetInt, varGetStr, varSet, varSet, varSet, varSet, varSet
 
Methods inherited from class cleoni.adv.ManageableObject
varGet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

accepting

public Token accepting

methods

public static java.lang.String[] methods

methodArgs

public static int[] methodArgs
Constructor Detail

Character

public Character(World aWorld,
                 java.lang.String aName,
                 java.lang.String anId,
                 java.lang.String aDescription,
                 java.lang.String anIcon,
                 int aCapacity,
                 java.lang.String attrList,
                 java.lang.String aDefContainer,
                 java.lang.String acceptList)
          throws DimxException
Character constructor comment.

Throws:
DimxException
Method Detail

getMethods

public java.lang.String[] getMethods()
Overrides:
getMethods in class AdvObject

getMethodArgs

public int getMethodArgs(java.lang.String mname)
Overrides:
getMethodArgs in class AdvObject

execMethod

public Token execMethod(java.lang.String mname,
                        Dict params)
                 throws DimxException
Overrides:
execMethod in class DimxObject
Throws:
DimxException

getTypePrefix

public java.lang.String getTypePrefix()
Overrides:
getTypePrefix in class AdvObject

isaCharacter

public boolean isaCharacter()
Overrides:
isaCharacter in class DimxObject

isRobot

public boolean isRobot()
Overrides:
isRobot in class AdvObject

itemDrop

protected boolean itemDrop(AdvObject what)
                    throws DimxException
Throws:
DimxException

itemGive

protected boolean itemGive(java.lang.String fullId,
                           java.lang.String toWhoId)
                    throws DimxException
Throws:
DimxException

itemPick

protected boolean itemPick(AdvObject i1)
                    throws DimxException
Throws:
DimxException

itemPut

protected boolean itemPut(java.lang.String fullId,
                          java.lang.String inWhatId)
                   throws DimxException
Throws:
DimxException

itemUse

protected boolean itemUse(java.lang.String fullId)
                   throws DimxException
Throws:
DimxException

itemUse

protected boolean itemUse(java.lang.String fullId1,
                          java.lang.String fullId2)
                   throws DimxException
Throws:
DimxException

look

public java.lang.String look(AdvObject o,
                             DictSorted input,
                             Skin skin)
                      throws DimxException
Throws:
DimxException

objectClose

public boolean objectClose(AdvObject o)
                    throws DimxException
Throws:
DimxException

objectHide

protected boolean objectHide(AdvObject o)
                      throws DimxException
Hides the specified object.

Parameters:
o - object to be hidden
Returns:
true if successful
Throws:
DimxException

objectHide

protected boolean objectHide(java.lang.String fullId)
                      throws DimxException
Hides the specified object.

Parameters:
fullId - ID of the object to be hidden, "" means "all objects"
Returns:
true upon success
Throws:
DimxException

objectOpen

public boolean objectOpen(AdvObject o)
                   throws DimxException
Throws:
DimxException

objectSearch

public boolean objectSearch(java.lang.String fullId)
                     throws DimxException
Throws:
DimxException

accepts

protected boolean accepts(AdvObject what)

display

public boolean display(java.lang.String msg)
                throws DimxException
Overrides:
display in class DimxObject
Throws:
DimxException

displayh

public boolean displayh(java.lang.String msg)
                 throws DimxException
Throws:
DimxException

rotate

protected void rotate(java.lang.String direction)

varGet

public Token varGet(java.lang.String varId,
                    boolean getReference)
             throws DimxException
Description copied from class: DimxObject
Gets a property

Overrides:
varGet in class AdvObject
Parameters:
varId - Id of the property to be found
getReference - Do you need its reference?
Returns:
always returns a valid Token
Throws:
DimxException

worldChange

public void worldChange(World toWorld,
                        java.lang.String newid,
                        java.lang.String defContainer)
                 throws DimxException
See AdvObject.WorldChange

Overrides:
worldChange in class AdvObject
Parameters:
See - AdvObject.WorldChange
See - AdvObject.WorldChange
Throws:
DimxException - in case of problems