cleoni.adv
Class Character
java.lang.Object
cleoni.adv.ManageableObject
cleoni.adv.DimxObject
cleoni.adv.AdvObject
cleoni.adv.Character
- Direct Known Subclasses:
- Player
public class Character
- extends AdvObject
Implements CHARACTERs
|
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. |
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
accepting
public Token accepting
methods
public static java.lang.String[] methods
methodArgs
public static int[] methodArgs
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
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 foundgetReference - 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.WorldChangeSee - AdvObject.WorldChange
- Throws:
DimxException - in case of problems