|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.user.GeneralUser
org.starhope.appius.user.AbstractNonPlayerCharacter
org.starhope.appius.game.npc.GenericNPC
public class GenericNPC
WRITEME: The documentation for this type (GenericNPC) is incomplete. (brpocock@star-hope.org, Feb 17, 2010)
| Field Summary | |
|---|---|
protected AbstractRoom |
currentRoom
The room in which the NPC is standing |
private String |
facing
the direction of facing |
private long |
nextOperationTime
The time at which to perform another operation |
(package private) static double |
octant
The width of one octant (demi-quadrant) of a circle, for facing computations |
(package private) String[] |
octantFacing
the string values of facings in each of the eight octants of a circle (and a repeat of #1 for padding's sake) |
private long |
startT
|
private double |
targetX
The target of the current travel |
private double |
targetY
The target of the current travel |
private long |
travelStarted
The time at which the user started traveling |
private double |
x
WRITEME |
private double |
y
WRITEME |
| Fields inherited from class org.starhope.appius.user.AbstractNonPlayerCharacter |
|---|
instanceID |
| Fields inherited from class org.starhope.appius.user.GeneralUser |
|---|
collisionBounds, userRecord |
| Constructor Summary | |
|---|---|
GenericNPC(int userID)
WRITEME: Document this constructor brpocock@star-hope.org |
|
| Method Summary | |
|---|---|
void |
acceptErrorReply(String command,
String error,
org.json.JSONObject result,
AbstractRoom userCurrentRoomInZone)
This is an overriding method. |
void |
acceptGameAction(AbstractUser u,
org.json.JSONObject action)
This is an overriding method. |
void |
acceptGameStateChange(GameEvent gameCode,
GameStateFlag gameState)
This is an overriding method. |
void |
acceptMessage(String title,
String label,
String content)
This is an overriding method. |
void |
acceptObjectJoinRoom(AbstractRoom room,
RoomListener object)
This is an overriding method. |
void |
acceptObjectPartRoom(AbstractRoom room,
RoomListener thing)
This is an overriding method. |
void |
acceptOutOfBandMessage(AbstractUser sender,
AbstractRoom room,
org.json.JSONObject body)
This is an overriding method. |
void |
acceptPublicMessage(AbstractUser sender,
AbstractRoom room,
String message)
This is an overriding method. |
void |
acceptPublicMessage(AbstractUser from,
String message)
This is an overriding method. |
void |
acceptSuccessReply(String command,
org.json.JSONObject jsonData,
AbstractRoom room)
This is an overriding method. |
void |
acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
This is an overriding method. |
void |
addBuddy(AbstractUser buddy)
This is an overriding method. |
void |
addGiftSubscription(int i,
int days)
This is an overriding method. |
void |
addItem(int parseInt)
This is an overriding method. |
void |
assertStaffLevel(int staffLevelStaffMember)
This is an overriding method. |
void |
attend(AbstractUser byLogin)
This is an overriding method. |
void |
ban(AbstractUser u,
String banReason)
This is an overriding method. |
boolean |
canTalk()
This is an overriding method. |
void |
doAfter(double seconds,
FutureActionVerb action,
Object... args)
Do something in the future, appending the script to the end of the queue |
void |
doffClothes()
This is an overriding method. |
void |
doTransport()
This is an overriding method. |
private double |
findCurrentPos(double fromX,
double toX,
AbstractUser them)
Figure out the current X or Y position of a moving avatar |
private String |
findFacingTo(AbstractUser them)
WRITEME: document this method (brpocock@star-hope.org, Feb 17, 2010) |
int |
getAge()
This is an overriding method. |
AgeBracket |
getAgeGroup()
This is an overriding method. |
String |
getApprovedDateString()
This is an overriding method. |
AvatarClass |
getAvatarClass()
This is an overriding method. |
String |
getAvatarLabel()
This is an overriding method. |
private String |
getAvatarNick(AbstractUser them)
WRITEME: document this method (brpocock@star-hope.org, Feb 17, 2010) |
Collection<String> |
getBuddyListNames()
This is an overriding method. |
String |
getDebugName()
This is an overriding method. |
String |
getDialect()
This is an overriding method. |
String |
getDisplayName()
This is an overriding method. |
String |
getFacing()
This is an overriding method. |
protected int |
getInstanceID()
|
Inventory |
getInventory()
This is an overriding method. |
String |
getIPAddress()
This is an overriding method. |
int |
getKickedByUserID()
This is an overriding method. |
String |
getKickedMessage()
This is an overriding method. |
String |
getKickedReasonCode()
This is an overriding method. |
Timestamp |
getKickedUntil()
This is an overriding method. |
long |
getLag()
|
String |
getLanguage()
This is an overriding method. |
String |
getMail()
This is an overriding method. |
BigDecimal |
getMoney(Currency currency)
To be deprecated in favour of AbstractUser.getWallet() ASAP! |
String |
getName()
This is an overriding method. |
Date |
getNameApprovedAt()
This is an overriding method. |
Date |
getNameRequestedAt()
This is an overriding method. |
long |
getNextOperationTime()
|
org.json.JSONObject |
getPublicInfo()
This is an overriding method. |
String |
getRegisteredDateString()
This is an overriding method. |
String |
getResponsibleMail()
This is an overriding method. |
AbstractRoom |
getRoom()
This is an overriding method. |
int |
getRoomNumber()
This is an overriding method. |
ServerThread |
getServerThread()
This is an overriding method. |
int |
getStaffLevel()
This is an overriding method. |
long |
getStartT()
|
double |
getTravelRate()
This is an overriding method. |
long |
getTravelStart()
This is an overriding method. |
int |
getUserID()
This is an overriding method. |
Map<String,String> |
getUserVariables()
This is an overriding method. |
String |
getVariable(String string)
This is an overriding method. |
AbstractZone |
getZone()
This is an overriding method. |
boolean |
hasStaffLevel(int i)
Deprecated. use Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability) |
boolean |
hasVariable(String string)
This is an overriding method. |
void |
ignore(AbstractUser byLogin)
This is an overriding method. |
boolean |
isBanned()
This is an overriding method. |
boolean |
isCanceled()
This is an overriding method. |
boolean |
isKicked()
This is an overriding method. |
boolean |
isOnline()
This is an overriding method. |
boolean |
isPaidMember()
This is an overriding method. |
void |
kick(AbstractUser u,
String kickReason,
int duration)
This is an overriding method. |
void |
liftBan(AbstractUser authority)
This is an overriding method. |
boolean |
needsParent()
This is an overriding method. |
void |
parentApprovedAccount(boolean b)
This is an overriding method. |
void |
removeBuddy(AbstractUser byLogin)
This is an overriding method. |
void |
reportedToModeratorBy(AbstractUser u)
This is an overriding method. |
void |
reportedToModeratorBy(AbstractUser u,
String reason)
This is an overriding method. |
void |
sendEarnings(AbstractRoom room,
String string)
This is an overriding method. |
void |
sendMigrate(AbstractZone refugeeZone)
This is an overriding method. |
void |
sendOops()
This is an overriding method. |
void |
sendResponse(org.json.JSONObject result)
This is an overriding method. |
void |
sendUserLists()
This is an overriding method. |
void |
sendWardrobe()
This is an overriding method. |
void |
setAgeGroupToSystem()
This is an overriding method. |
void |
setBaseColor(Colour colour)
This is an overriding method. |
void |
setCanTalk(boolean b)
This is an overriding method. |
void |
setExtraColor(Colour colour)
This is an overriding method. |
void |
setFacing()
WRITEME |
void |
setLastActive()
This is an overriding method. |
void |
setMail(String email)
This is an overriding method. |
void |
setNextOperationTime(long nextOperationTime1)
|
void |
setParent(Parent newParent)
This is an overriding method. |
int |
setRoom(AbstractRoom room)
This is an overriding method. |
void |
setStartT(long when)
This is an overriding method. |
void |
setTravelRate(double rate)
This is an overriding method. |
void |
setTravelStart(long l)
WRITEME: Document this method brpocock@star-hope.org |
void |
setVariable(String varName,
String varValue)
This is an overriding method. |
void |
speak(AbstractRoom room,
String string)
This is an overriding method. |
void |
tick(long currentTime,
long deltaTime)
This is an overriding method. |
org.json.JSONObject |
toJSON()
This is an overriding method. |
String |
toSFSXML()
This is an overriding method. |
private void |
updatePos()
WRITEME: document this method (brpocock@star-hope.org, Feb 17, 2010) |
| Methods inherited from class org.starhope.appius.user.AbstractNonPlayerCharacter |
|---|
acceptPrivateMessage, compareTo, destroy, getBaseColor, getGreeting, getLocation, getNameStripped, getPublicInfo_new, getTarget, getWallet, isNPC, setFacing, setLocation, setTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AbstractRoom currentRoom
private String facing
private long nextOperationTime
static final double octant
final String[] octantFacing
private final double targetX
private final double targetY
private long travelStarted
private double x
private double y
private long startT
| Constructor Detail |
|---|
public GenericNPC(int userID)
throws NotFoundException,
GameLogicException
userID - the user ID of the user record for this NPC
NotFoundException - if the user ID isn't found or isn't an
NPC
GameLogicException - WRITEME| Method Detail |
|---|
public void acceptErrorReply(String command,
String error,
org.json.JSONObject result,
AbstractRoom userCurrentRoomInZone)
acceptErrorReply in interface AbstractUseracceptErrorReply in class AbstractNonPlayerCharactercommand - The command which produced the errorerror - The error coderesult - The additional JSON data describing the erroruserCurrentRoomInZone - The room in which the user was
standing when the error occurred.AbstractUser.acceptErrorReply(java.lang.String,
java.lang.String, org.json.JSONObject,
org.starhope.appius.game.AbstractRoom)
public void acceptGameAction(AbstractUser u,
org.json.JSONObject action)
acceptGameAction in interface RoomListeneracceptGameAction in class AbstractNonPlayerCharacteru - the senderaction - The game action. The verb is in
action.getString("action").RoomListener.acceptGameAction(org.starhope.appius.user.AbstractUser,
org.json.JSONObject)
public void acceptGameStateChange(GameEvent gameCode,
GameStateFlag gameState)
acceptGameStateChange in interface RoomListeneracceptGameStateChange in class AbstractNonPlayerCharactergameCode - The GameEvent whose state is changinggameState - The new stateRoomListener.acceptGameStateChange(org.starhope.appius.game.GameEvent,
org.starhope.appius.game.GameStateFlag)
public void acceptMessage(String title,
String label,
String content)
acceptMessage in interface AbstractUseracceptMessage in class AbstractNonPlayerCharactertitle - The title of the messagelabel - A label which nominally identifies the source of the
messagecontent - The contents of the messageAbstractUser.acceptMessage(java.lang.String,
java.lang.String, java.lang.String)
public void acceptObjectJoinRoom(AbstractRoom room,
RoomListener object)
room - The roomobject - The thing (probably user) enteringRoomListener.acceptObjectJoinRoom(org.starhope.appius.game.AbstractRoom,
org.starhope.appius.game.RoomListener)
public void acceptObjectPartRoom(AbstractRoom room,
RoomListener thing)
room - The roomthing - The thing (probably user) departingRoomListener.acceptObjectPartRoom(org.starhope.appius.game.AbstractRoom, org.starhope.appius.game.RoomListener)
public void acceptOutOfBandMessage(AbstractUser sender,
AbstractRoom room,
org.json.JSONObject body)
sender - The sender of the OOB messageroom - The room in which the OOB message is being broadcastbody - A JSON object containing the OOB message. The
contents of this message are not constrained.RoomListener.acceptOutOfBandMessage(org.starhope.appius.user.AbstractUser, org.starhope.appius.game.AbstractRoom, org.json.JSONObject)
public void acceptPublicMessage(AbstractUser sender,
AbstractRoom room,
String message)
acceptPublicMessage in interface RoomListeneracceptPublicMessage in class AbstractNonPlayerCharactersender - The speakerroom - The room in which the words were spokenmessage - The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.user.AbstractUser, org.starhope.appius.game.AbstractRoom, java.lang.String)
public void acceptPublicMessage(AbstractUser from,
String message)
acceptPublicMessage in interface RoomListeneracceptPublicMessage in class AbstractNonPlayerCharacterfrom - The speakermessage - The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.user.AbstractUser, java.lang.String)
public void acceptSuccessReply(String command,
org.json.JSONObject jsonData,
AbstractRoom room)
acceptSuccessReply in interface AbstractUseracceptSuccessReply in class AbstractNonPlayerCharactercommand - WRITEMEjsonData - WRITEMEroom - WRITEMEAbstractUser.acceptSuccessReply(java.lang.String, org.json.JSONObject, org.starhope.appius.game.AbstractRoom)
public void acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
user - The user updating their variablevarName - The name of the variable (key)varValue - The new value (null if unset)RoomListener.acceptUserVariableUpdate(org.starhope.appius.user.AbstractUser,
java.lang.String, java.lang.String)public void addBuddy(AbstractUser buddy)
addBuddy in interface AbstractUseraddBuddy in class AbstractNonPlayerCharacterbuddy - WRITEMEAbstractUser.addBuddy(org.starhope.appius.user.AbstractUser)
public void addGiftSubscription(int i,
int days)
addGiftSubscription in interface AbstractUseraddGiftSubscription in class AbstractNonPlayerCharacteri - WRITEMEdays - WRITEMEAbstractUser.addGiftSubscription(int,
int)public void addItem(int parseInt)
addItem in interface AbstractUseraddItem in class AbstractNonPlayerCharacterparseInt - the item ID to be instantiated and addedAbstractUser.addItem(int)
public void assertStaffLevel(int staffLevelStaffMember)
throws PrivilegeRequiredException
assertStaffLevel in interface AbstractUserassertStaffLevel in class AbstractNonPlayerCharacterstaffLevelStaffMember - The minimum staff level which is being
asserted
PrivilegeRequiredException - if the minimum staff level is
not met.AbstractUser.assertStaffLevel(int)public void attend(AbstractUser byLogin)
attend in interface AbstractUserattend in class AbstractNonPlayerCharacterbyLogin - the user to whom to now attendAbstractUser.attend(org.starhope.appius.user.AbstractUser)
public void ban(AbstractUser u,
String banReason)
throws PrivilegeRequiredException
u - WRITEMEbanReason - WRITEME
PrivilegeRequiredException - WRITEMEAbstractUser.ban(org.starhope.appius.user.AbstractUser,
java.lang.String)public boolean canTalk()
canTalk in interface AbstractUsercanTalk in class AbstractNonPlayerCharacterAbstractUser.canTalk()
public void doAfter(double seconds,
FutureActionVerb action,
Object... args)
seconds - The approximate number of seconds to delayaction - The type of action to be performedargs - Arguments specific to the type of actionpublic void doffClothes()
doffClothes in interface AbstractUserdoffClothes in class AbstractNonPlayerCharacterAbstractUser.doffClothes()public void doTransport()
doTransport in interface AbstractUserdoTransport in class AbstractNonPlayerCharacterAbstractUser.doTransport()
private double findCurrentPos(double fromX,
double toX,
AbstractUser them)
fromX - the starting X or Y valuetoX - the ending X or Y valuethem - the moving avatar
private String findFacingTo(AbstractUser them)
them - WRITEME
public int getAge()
getAge in interface AbstractUsergetAge in class AbstractNonPlayerCharacterAbstractUser.getAge()public AgeBracket getAgeGroup()
getAgeGroup in interface AbstractUsergetAgeGroup in class AbstractNonPlayerCharacterAbstractUser.getAgeGroup()public String getApprovedDateString()
getApprovedDateString in interface AbstractUsergetApprovedDateString in class AbstractNonPlayerCharacterAbstractUser.getApprovedDateString()public AvatarClass getAvatarClass()
getAvatarClass in interface AbstractUsergetAvatarClass in class AbstractNonPlayerCharacterAbstractUser.getAvatarClass()public String getAvatarLabel()
getAvatarLabel in interface AbstractUsergetAvatarLabel in class AbstractNonPlayerCharacterAbstractUser.getAvatarLabel()private String getAvatarNick(AbstractUser them)
them - the user whose nickname is about to be shortened
public Collection<String> getBuddyListNames()
getBuddyListNames in interface AbstractUsergetBuddyListNames in class AbstractNonPlayerCharacterAbstractUser.getBuddyListNames()public String getDebugName()
getDebugName in interface AbstractUsergetDebugName in class AbstractNonPlayerCharacterAbstractUser.getDebugName()public String getDialect()
getDialect in interface AbstractUsergetDialect in class GeneralUserAbstractUser.getDialect()public String getDisplayName()
getDisplayName in interface AbstractUsergetDisplayName in class GeneralUserAbstractUser.getDisplayName()public String getFacing()
getFacing in interface AbstractUsergetFacing in class GeneralUserAbstractUser.getFacing()protected int getInstanceID()
getInstanceID in class AbstractNonPlayerCharacterAbstractNonPlayerCharacter.getInstanceID()public Inventory getInventory()
getInventory in interface AbstractUsergetInventory in class AbstractNonPlayerCharacterAbstractUser.getInventory()public String getIPAddress()
getIPAddress in interface AbstractUsergetIPAddress in class AbstractNonPlayerCharacterAbstractUser.getIPAddress()public int getKickedByUserID()
getKickedByUserID in interface AbstractUsergetKickedByUserID in class GeneralUserAbstractUser.getKickedByUserID()public String getKickedMessage()
getKickedMessage in interface AbstractUsergetKickedMessage in class AbstractNonPlayerCharacterAbstractUser.getKickedMessage()public String getKickedReasonCode()
getKickedReasonCode in interface AbstractUsergetKickedReasonCode in class GeneralUserAbstractUser.getKickedReasonCode()public Timestamp getKickedUntil()
getKickedUntil in interface AbstractUsergetKickedUntil in class GeneralUserAbstractUser.getKickedUntil()public long getLag()
getLag in interface AbstractUsergetLag in class AbstractNonPlayerCharacterAbstractUser.getLag()public String getLanguage()
getLanguage in interface AbstractUsergetLanguage in class AbstractNonPlayerCharacterAbstractUser.getLanguage()public String getMail()
getMail in interface AbstractUsergetMail in class AbstractNonPlayerCharacterAbstractUser.getMail()public BigDecimal getMoney(Currency currency)
AbstractUserAbstractUser.getWallet() ASAP!
getMoney in interface AbstractUsergetMoney in class AbstractNonPlayerCharactercurrency - units
AbstractUser.getMoney(org.starhope.appius.mb.Currency)public String getName()
getName in interface HasNamegetName in class AbstractNonPlayerCharacterHasName.getName()public Date getNameApprovedAt()
getNameApprovedAt in interface AbstractUsergetNameApprovedAt in class AbstractNonPlayerCharacterAbstractUser.getNameApprovedAt()public Date getNameRequestedAt()
getNameRequestedAt in interface AbstractUsergetNameRequestedAt in class AbstractNonPlayerCharacterAbstractUser.getNameRequestedAt()public long getNextOperationTime()
public org.json.JSONObject getPublicInfo()
getPublicInfo in interface AbstractUsergetPublicInfo in class GeneralUserAbstractUser.getPublicInfo()public String getRegisteredDateString()
getRegisteredDateString in interface AbstractUsergetRegisteredDateString in class AbstractNonPlayerCharacterAbstractUser.getRegisteredDateString()public String getResponsibleMail()
getResponsibleMail in interface AbstractUsergetResponsibleMail in class AbstractNonPlayerCharacterAbstractUser.getResponsibleMail()public AbstractRoom getRoom()
getRoom in interface RoomListenergetRoom in class GeneralUserRoomListener.getRoom()public int getRoomNumber()
getRoomNumber in interface AbstractUsergetRoomNumber in class GeneralUserAbstractUser.getRoomNumber()public ServerThread getServerThread()
getServerThread in interface AbstractUsergetServerThread in class AbstractNonPlayerCharacterAbstractUser.getServerThread()public int getStaffLevel()
getStaffLevel in interface AbstractUsergetStaffLevel in class AbstractNonPlayerCharacterAbstractUser.getStaffLevel()public long getStartT()
getStartT in interface AbstractUsergetStartT in class AbstractNonPlayerCharacterAbstractUser.getStartT()public double getTravelRate()
getTravelRate in interface AbstractUsergetTravelRate in class GeneralUserAbstractUser.getTravelRate()public long getTravelStart()
getTravelStart in interface AbstractUsergetTravelStart in class AbstractNonPlayerCharacterAbstractUser.getTravelStart()public int getUserID()
getUserID in interface AbstractUsergetUserID in class AbstractNonPlayerCharacterAbstractUser.getUserID()public Map<String,String> getUserVariables()
getUserVariables in interface AbstractUsergetUserVariables in class AbstractNonPlayerCharacterAbstractUser.getUserVariables()public String getVariable(String string)
getVariable in interface HasVariablesgetVariable in interface AbstractUsergetVariable in class AbstractNonPlayerCharacterstring - Variable key
AbstractUser.getVariable(java.lang.String)public AbstractZone getZone()
getZone in interface RoomListenergetZone in class AbstractNonPlayerCharacterRoomListener.getZone()@Deprecated public boolean hasStaffLevel(int i)
Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability)
hasStaffLevel in interface AbstractUserhasStaffLevel in class AbstractNonPlayerCharacteri - The minimum staff level for which we are
testing.
AbstractUser.hasStaffLevel(int)public boolean hasVariable(String string)
hasVariable in interface AbstractUserhasVariable in class AbstractNonPlayerCharacterstring - WRITEME
AbstractUser.hasVariable(java.lang.String)public void ignore(AbstractUser byLogin)
ignore in interface AbstractUserignore in class AbstractNonPlayerCharacterbyLogin - The user, whom this user wishes to ignoreAbstractUser.ignore(org.starhope.appius.user.AbstractUser)public boolean isBanned()
isBanned in interface AbstractUserisBanned in class AbstractNonPlayerCharacterAbstractUser.isBanned()public boolean isCanceled()
isCanceled in interface AbstractUserisCanceled in class AbstractNonPlayerCharacterAbstractUser.isCanceled()public boolean isKicked()
isKicked in interface AbstractUserisKicked in class AbstractNonPlayerCharacterAbstractUser.isKicked()public boolean isOnline()
isOnline in interface AbstractUserisOnline in class AbstractNonPlayerCharacterAbstractUser.isOnline()public boolean isPaidMember()
isPaidMember in interface AbstractUserisPaidMember in class AbstractNonPlayerCharacterAbstractUser.isPaidMember()
public void kick(AbstractUser u,
String kickReason,
int duration)
throws PrivilegeRequiredException
kick in interface AbstractUserkick in class AbstractNonPlayerCharacteru - WRITEMEkickReason - WRITEMEduration - WRITEME
PrivilegeRequiredException - WRITEMEAbstractUser.kick(org.starhope.appius.user.AbstractUser,
java.lang.String, int)
public void liftBan(AbstractUser authority)
throws PrivilegeRequiredException
liftBan in interface AbstractUserliftBan in class AbstractNonPlayerCharacterauthority - WRITEME
PrivilegeRequiredException - WRITEMEAbstractUser.liftBan(org.starhope.appius.user.AbstractUser)public boolean needsParent()
needsParent in interface AbstractUserneedsParent in class AbstractNonPlayerCharacterAbstractUser.needsParent()public void parentApprovedAccount(boolean b)
b - WRITEMEpublic void removeBuddy(AbstractUser byLogin)
removeBuddy in interface AbstractUserremoveBuddy in class AbstractNonPlayerCharacterbyLogin - WRITEMEAbstractUser.removeBuddy(org.starhope.appius.user.AbstractUser)public void reportedToModeratorBy(AbstractUser u)
reportedToModeratorBy in interface AbstractUserreportedToModeratorBy in class AbstractNonPlayerCharacteru - WRITEMEAbstractUser.reportedToModeratorBy(org.starhope.appius.user.AbstractUser)
public void reportedToModeratorBy(AbstractUser u,
String reason)
reportedToModeratorBy in interface AbstractUserreportedToModeratorBy in class AbstractNonPlayerCharacteru - WRITEMEreason - WRITEMEAbstractUser.reportedToModeratorBy(org.starhope.appius.user.AbstractUser,
java.lang.String)
public void sendEarnings(AbstractRoom room,
String string)
room - WRITEMEstring - WRITEMEAbstractUser.sendEarnings(org.starhope.appius.game.AbstractRoom,
java.lang.String)
public void sendMigrate(AbstractZone refugeeZone)
throws UserDeadException
refugeeZone - WRITEME
UserDeadException - WRITEMEAbstractUser.sendMigrate(org.starhope.appius.types.AbstractZone)public void sendOops()
sendOops in interface AbstractUsersendOops in class AbstractNonPlayerCharacterAbstractUser.sendOops()public void sendResponse(org.json.JSONObject result)
sendResponse in interface AbstractUsersendResponse in class AbstractNonPlayerCharacterresult - WRITEMEAbstractUser.sendResponse(org.json.JSONObject)public void sendUserLists()
AbstractUser.sendUserLists()public void sendWardrobe()
AbstractUser.sendWardrobe()public void setAgeGroupToSystem()
setAgeGroupToSystem in interface AbstractUsersetAgeGroupToSystem in class GeneralUserAbstractUser.setAgeGroupToSystem()public void setBaseColor(Colour colour)
setBaseColor in interface AbstractUsersetBaseColor in class GeneralUsercolour - WRITEMEAbstractUser.setBaseColor(org.starhope.appius.types.Colour)public void setCanTalk(boolean b)
setCanTalk in interface AbstractUsersetCanTalk in class GeneralUserb - WRITEMEAbstractUser.setCanTalk(boolean)public void setExtraColor(Colour colour)
setExtraColor in interface AbstractUsersetExtraColor in class AbstractNonPlayerCharactercolour - WRITEMEAbstractUser.setExtraColor(org.starhope.appius.types.Colour)public void setFacing()
public void setLastActive()
setLastActive in interface AbstractUsersetLastActive in class AbstractNonPlayerCharacterAbstractUser.setLastActive()
public void setMail(String email)
throws GameLogicException
setMail in interface AbstractUsersetMail in class AbstractNonPlayerCharacteremail - WRITEME
GameLogicException - WRITEMEAbstractUser.setMail(java.lang.String)public void setNextOperationTime(long nextOperationTime1)
nextOperationTime1 - the nextOperationTime to set
public void setParent(Parent newParent)
throws GameLogicException,
ForbiddenUserException
setParent in interface AbstractUsersetParent in class AbstractNonPlayerCharacternewParent - the new parent record to associate with this
user
GameLogicException - if this user account does not need a
parent record (adult account or system/robot account)
ForbiddenUserException - if the parent is not allowed to
register/associate new child accounts (usually due to
having other child accounts which are banned)AbstractUser.setParent(org.starhope.appius.user.Parent)public int setRoom(AbstractRoom room)
setRoom in interface AbstractUsersetRoom in class AbstractNonPlayerCharacterroom - the room in which the user must exist
AbstractUser.setRoom(org.starhope.appius.game.AbstractRoom)public void setStartT(long when)
setStartT in interface AbstractUsersetStartT in class AbstractNonPlayerCharacterwhen - the time at which the user last made a conscious
change in their movementAbstractUser.setStartT(long)public void setTravelRate(double rate)
setTravelRate in interface AbstractUsersetTravelRate in class GeneralUserrate - WRITEMEAbstractUser.setTravelRate(double)public void setTravelStart(long l)
AbstractUser
setTravelStart in interface AbstractUsersetTravelStart in class AbstractNonPlayerCharacterl - WRITEMEAbstractUser.setTravelStart(long)
public void setVariable(String varName,
String varValue)
setVariable in interface HasVariablessetVariable in interface AbstractUsersetVariable in class AbstractNonPlayerCharactervarName - The name of the variablevarValue - The valueAbstractUser.setVariable(java.lang.String,
java.lang.String)
public void speak(AbstractRoom room,
String string)
speak in interface AbstractUserspeak in class AbstractNonPlayerCharacterroom - the room in which to speak. Typically, the user must
be present in that room.string - the speech (or emote)AbstractUser.speak(org.starhope.appius.game.AbstractRoom,
java.lang.String)
public void tick(long currentTime,
long deltaTime)
throws UserDeadException
currentTime - Time since epoch at the start of the global
metronome propagation, as per
System.currentTimeMillis()deltaTime - Delta-time in milliseconds since the prior
global metronome tick
UserDeadException - if a user has died during this tickAcceptsMetronomeTicks.tick(long,
long)public org.json.JSONObject toJSON()
toJSON in interface AbstractUsertoJSON in class AbstractNonPlayerCharacterAbstractUser.toJSON()public String toSFSXML()
toSFSXML in interface AbstractUsertoSFSXML in class AbstractNonPlayerCharacterAbstractUser.toSFSXML()private void updatePos()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||