Class Bot
- All Implemented Interfaces:
Serializable,AttributeWrangler,DisplayInterface,ItemWrangler,Ownage
- Direct Known Subclasses:
Shopkeeper
A bot in the game. Might be a shopkeeper.
- Author:
- maartenl
- See Also:
-
Field Summary
Fields inherited from class Person
EMPTY_LOG, MAX_VITALS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether or not this person can receive items or money from other players.Indicates if this person can be fought with by other persons/users/players.getGod()voidsetFightable(Boolean fightable) Bots cannot fight.Methods inherited from class Person
addItem, decreaseHealth, destroyItem, drop, equals, findItems, get, getAfk, getAge, getAlignment, getArm, getAttribute, getBandage, getBeard, getBirth, getBody, getComplexion, getConstitution, getCopper, getCreation, getDescription, getDexterity, getDrinkstats, getEatstats, getExperience, getEyes, getFace, getFamilyname, getFightingwho, getFysically, getHair, getHealth, getHeight, getImage, getIntelligence, getItems, getJumpmana, getJumpmove, getJumpvital, getLeg, getLevel, getLongDescription, getMainTitle, getManastats, getMaxmana, getMaxmove, getMaxvital, getMentally, getMoney, getMovementstats, getName, getNotes, getOwner, getPractises, getRace, getRoom, getSex, getSleep, getState, getStatistics, getStrength, getTitle, getTraining, getTransform, getVisible, getVitals, getWebsocketSupport, getWidth, getWimpy, getWisdom, give, hashCode, increaseHealth, isActive, isAfk, isDead, isIgnoring, isShopkeeper, isUser, isWearing, isWielding, receive, removeAttribute, setActive, setAfk, setAge, setAlignment, setArm, setAttribute, setBandage, setBeard, setBirth, setComplexion, setConstitution, setCopper, setCreation, setDexterity, setDrinkstats, setEatstats, setEyes, setFace, setFamilyname, setFightingwho, setFysically, setHair, setHeight, setIntelligence, setJumpmana, setJumpmove, setJumpvital, setLeg, setManastats, setMaxmana, setMaxmove, setMaxvital, setMentally, setMovementstats, setName, setNotes, setOwner, setPractises, setRace, setRoom, setSex, setSleep, setState, setStrength, setTitle, setTraining, setTransform, setVisible, setWebsocketSupport, setWidth, setWimpy, setWisdom, toString, transferMoney, unused, verifyAttribute, wear, wears, wield, wields
-
Constructor Details
-
Bot
public Bot()
-
-
Method Details
-
getFightable
Description copied from class:PersonIndicates if this person can be fought with by other persons/users/players.- Overrides:
getFightablein classPerson- Returns:
- true if can be fought with, false otherwise.
-
setFightable
Bots cannot fight. Use mobs for that. Any entry is ignored.- Overrides:
setFightablein classPerson- Parameters:
fightable-- See Also:
-
canReceive
public boolean canReceive()Description copied from class:PersonIndicates whether or not this person can receive items or money from other players.- Specified by:
canReceivein classPerson- Returns:
-
getGod
-