|
||||||||||
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.game.npc.Ejecta
public class Ejecta
An Ejecta object is a particle effect, transient effect, or projectile moving through the game world.
Field Summary | |
---|---|
private ReentrantLock |
locationLock
Locking semaphore for location |
private String |
myAction
The action currently being played for the Ejecta |
private AvatarClass |
myAvatar
The avatar class for the Ejecta |
private String |
myFacing
The avatar's facing direction |
private Coord3D |
myPosition
The Ejecta's position |
private Room |
myRoom
The Ejecta's room |
private long |
myStartT
|
private Coord3D |
myTarget
The Ejecta's destination coördinates |
private double |
myTravelRate
The Ejecta's rate of travel |
private long |
myTravelStart
The Ejecta's travel start time |
private int |
myUserID
The Ejecta's user ID |
private static AtomicInteger |
nextUserID
The next user ID available for Ejecta |
private static long |
serialVersionUID
WRITEME: Document this brpocock@star-hope.org |
Fields inherited from class org.starhope.appius.user.GeneralUser |
---|
baseStats, collisionBounds, currentRoom, facing, lastUserMovement, pathFinder, userRecord |
Constructor Summary | |
---|---|
Ejecta(AvatarClass avatar,
Room room,
Coord3D origin,
long birth,
Coord3D target,
double travelRate)
Specify the avatar file to be provided to the client, and the point of origination, and motion vector. |
Method Summary | |
---|---|
void |
acceptErrorReply(String command,
String error,
org.json.JSONObject result,
Room userCurrentRoomInZone)
|
void |
acceptGameAction(AbstractUser u,
org.json.JSONObject action)
Broadcast message of a game action taking place |
void |
acceptGameStateChange(GameEvent gameCode,
GameStateFlag gameState)
Notification of a GameEvent changing state for the room |
void |
acceptMessage(String title,
String label,
String content)
Accept an administrative/moderator message with the full range of options. |
void |
acceptObjectJoinRoom(Room room,
RoomListener object)
Notification that someone has entered the room. |
void |
acceptObjectPartRoom(Room room,
RoomListener thing)
Notification that someone has left a room |
void |
acceptOutOfBandMessage(AbstractUser sender,
Room room,
org.json.JSONObject body)
Accept an out-of-band communications packet that was broadcast to a room in which this Listener is listening. |
void |
acceptPrivateMessage(AbstractUser speaker,
String speech)
Accept a private message from another user (a whisper) |
void |
acceptPublicMessage(AbstractUser sender,
Room room,
String message)
Accept a public chat message or /emote. |
void |
acceptPublicMessage(AbstractUser from,
String message)
Accept a public chat message. |
void |
acceptSuccessReply(String command,
org.json.JSONObject jsonData,
Room room)
|
void |
acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
Receive notification of the change of an user variable |
void |
addBuddy(AbstractUser buddy)
|
void |
addGiftSubscription(int i,
int days)
|
void |
addItem(int parseInt)
|
void |
assertLocationUnlocked()
WRITEME: Document this method brpocock@star-hope.org |
void |
assertStaffLevel(int staffLevelStaffMember)
Deprecated. use Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability) |
void |
attend(AbstractUser byLogin)
Attend to an user who may previously have been ignored |
void |
ban(AbstractUser u,
String banReason)
|
boolean |
canTalk()
|
void |
destroy()
remove this object from the world |
void |
doffClothes()
WRITEME |
void |
doTransport()
WRITEME |
boolean |
equals(Object obj)
|
protected void |
finalize()
|
int |
getAge()
|
AgeBracket |
getAgeGroup()
Get the user's age bracket. |
String |
getApprovedDateString()
|
AvatarClass |
getAvatarClass()
|
String |
getAvatarLabel()
The avatar label is the text block that is displayed with the avatar for this object. |
Colour |
getBaseColor()
|
Collection<String> |
getBuddyListNames()
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
String |
getCurrentAction()
Normally “Walk” but can be any action that the client recognises for the avatar type |
String |
getDebugName()
Get a version of the user's ID and name suitable for use in debugging dumps. |
String |
getDialect()
|
String |
getDisplayName()
|
Colour |
getExtraColor()
|
String |
getFacing()
Get the string identifying the direction which this object is facing. |
Inventory |
getInventory()
WRITEME: document this method (brpocock@star-hope.org, Feb 19, 2010) |
String |
getIPAddress()
|
int |
getKickedByUserID()
|
String |
getKickedMessage()
|
String |
getKickedReasonCode()
|
Timestamp |
getKickedUntil()
|
long |
getLag()
|
String |
getLanguage()
|
Coord3D |
getLocation()
Gets the current start coördinates |
Coord3D |
getLocationForUpdate()
Gets the current coördinates. |
String |
getMail()
|
BigDecimal |
getMoney(Currency currency)
To be deprecated in favour of AbstractUser.getWallet() ASAP! |
Date |
getNameApprovedAt()
|
Date |
getNameRequestedAt()
|
org.json.JSONObject |
getPublicInfo()
Returned packet contains: |
String |
getRegisteredDateString()
|
String |
getResponsibleMail()
Get the eMail address of a responsible person: either the player, or the parent. |
Room |
getRoom()
WRITEME: document this method (brpocock@star-hope.org, Oct 31, 2009) |
int |
getRoomNumber()
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
ServerThread |
getServerThread()
|
int |
getStaffLevel()
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
long |
getStartT()
|
Coord3D |
getTarget()
Gets the current target |
double |
getTravelRate()
This is an overriding method. |
long |
getTravelStart()
This is an overriding method. |
int |
getUserID()
Get the user ID number for this user |
Map<String,String> |
getUserVariables()
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
String |
getVariable(String string)
Get the value of a given variable by name. |
Wallet |
getWallet()
|
Zone |
getZone()
WRITEME: document this method (brpocock@star-hope.org, Oct 31, 2009) |
int |
hashCode()
|
boolean |
hasStaffLevel(int i)
Deprecated. use Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability) |
boolean |
hasVariable(String string)
WRITEME: document this method (brpocock@star-hope.org, Nov 30, 2009) |
void |
ignore(AbstractUser byLogin)
Calling this method indicates that this user wants to ignore the other specified user. |
boolean |
isBanned()
|
boolean |
isCanceled()
|
boolean |
isKicked()
|
boolean |
isNPC()
WRITEME: document this method (brpocock@star-hope.org, Oct 31, 2009) |
boolean |
isOnline()
WRITEME: document this method (brpocock@star-hope.org, Oct 31, 2009) |
boolean |
isPaidMember()
|
void |
kick(AbstractUser u,
String kickReason,
int duration)
|
void |
liftBan(AbstractUser authority)
remove a ban placed upon this user |
boolean |
needsParent()
Kid accounts (under 13) require parental confirmation. |
void |
removeBuddy(AbstractUser byLogin)
|
void |
reportedToModeratorBy(AbstractUser u)
|
void |
reportedToModeratorBy(AbstractUser u,
String reason)
|
void |
sendEarnings(Room room,
String string)
|
void |
sendMigrate(AbstractZone refugeeZone)
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
void |
sendOops()
WRITEME |
void |
sendResponse(org.json.JSONObject result)
|
void |
sendWardrobe()
WRITEME |
void |
setAgeGroupToSystem()
WRITEME |
void |
setBaseColor(Colour colour)
WRITEME |
void |
setCanTalk(boolean b)
WRITEME |
void |
setCurrentAction(String newAction)
Normally “Walk” but can be any action that the client recognizes for the avatar type |
void |
setExtraColor(Colour colour)
|
void |
setFacing(String newFacing)
|
void |
setLastActive()
WRITEME |
void |
setLocation(Coord3D coord3d)
|
void |
setMail(String email)
WRITEME |
void |
setParent(Parent newParent)
If this is a child account (per COPPA), then associate a parent record with it. |
int |
setRoom(Room room)
Set the user's current room to the given room. |
void |
setStartT(long when)
set the time at which the player started moving — not necessarily the same as AbstractUser.getTravelStart() because that value is
updated over time, this value is when they actually started
moving along the path altogether |
void |
setTarget(Coord3D coord3d)
Sets the new target coördinates |
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)
Set an user variable. |
void |
speak(Room room,
String string)
|
org.json.JSONObject |
toJSON()
|
String |
toSFSXML()
|
String |
toString()
|
void |
unlockLocation()
Unlock an user's location, locked by a call to AbstractUser.getLocationForUpdate() (q.v.) |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static AtomicInteger nextUserID
private String myAction
private final AvatarClass myAvatar
private String myFacing
private Coord3D myPosition
private Room myRoom
private Coord3D myTarget
private double myTravelRate
private long myTravelStart
private final int myUserID
private long myStartT
AbstractUser.getStartT()
private final ReentrantLock locationLock
AbstractUser.getLocationForUpdate()
,
AbstractUser.unlockLocation()
Constructor Detail |
---|
public Ejecta(AvatarClass avatar, Room room, Coord3D origin, long birth, Coord3D target, double travelRate)
avatar
- The avatar file to be provided to the clientroom
- The room in which the Ejecta is bornorigin
- The point of originbirth
- The time of originationtarget
- The destination of motiontravelRate
- The rate of travelMethod Detail |
---|
public void acceptErrorReply(String command, String error, org.json.JSONObject result, Room userCurrentRoomInZone)
command
- 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.Room)
public void acceptGameAction(AbstractUser u, org.json.JSONObject action)
RoomListener
u
- 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)
RoomListener
gameCode
- 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)
AbstractUser
title
- 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(Room room, RoomListener object)
RoomListener
acceptObjectJoinRoom
in interface RoomListener
acceptObjectJoinRoom
in class GeneralUser
room
- The roomobject
- The thing (probably user) enteringRoomListener.acceptObjectJoinRoom(org.starhope.appius.game.Room,
org.starhope.appius.game.RoomListener)
public void acceptObjectPartRoom(Room room, RoomListener thing)
RoomListener
acceptObjectPartRoom
in interface RoomListener
acceptObjectPartRoom
in class GeneralUser
room
- The roomthing
- The thing (probably user) departingRoomListener.acceptObjectPartRoom(org.starhope.appius.game.Room,
org.starhope.appius.game.RoomListener)
public void acceptOutOfBandMessage(AbstractUser sender, Room room, org.json.JSONObject body)
RoomListener
acceptOutOfBandMessage
in interface RoomListener
acceptOutOfBandMessage
in class GeneralUser
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.Room, org.json.JSONObject)
public void acceptPrivateMessage(AbstractUser speaker, String speech)
AbstractUser
speaker
- the person whisperingspeech
- what was whisperedAbstractUser.acceptPrivateMessage(org.starhope.appius.user.AbstractUser,
java.lang.String)
public void acceptPublicMessage(AbstractUser sender, Room room, String message)
RoomListener
sender
- 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.Room, java.lang.String)
public void acceptPublicMessage(AbstractUser from, String message)
RoomListener
from
- 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, Room room)
command
- WRITEMEjsonData
- WRITEMEroom
- WRITEMEAbstractUser.acceptSuccessReply(java.lang.String,
org.json.JSONObject, org.starhope.appius.game.Room)
public void acceptUserVariableUpdate(AbstractUser user, String varName, String varValue)
RoomListener
acceptUserVariableUpdate
in interface RoomListener
acceptUserVariableUpdate
in class GeneralUser
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 AbstractUser
addBuddy
in class GeneralUser
buddy
- WRITEMEAbstractUser.addBuddy(org.starhope.appius.user.AbstractUser)
public void addGiftSubscription(int i, int days)
i
- WRITEMEdays
- WRITEMEAbstractUser.addGiftSubscription(int,
int)
public void addItem(int parseInt)
parseInt
- the item ID to be instantiated and addedAbstractUser.addItem(int)
public void assertLocationUnlocked()
AbstractUser
assertLocationUnlocked
in interface AbstractUser
assertLocationUnlocked
in class GeneralUser
AbstractUser.assertLocationUnlocked()
@Deprecated public void assertStaffLevel(int staffLevelStaffMember) throws PrivilegeRequiredException
Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability)
GeneralUser
assertStaffLevel
in interface AbstractUser
assertStaffLevel
in class GeneralUser
staffLevelStaffMember
- The minimum staff level which is being
asserted
PrivilegeRequiredException
- if the minimum staff level is
not met.public void attend(AbstractUser byLogin)
GeneralUser
attend
in interface AbstractUser
attend
in class GeneralUser
byLogin
- 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()
AbstractUser.canTalk()
public void destroy()
public void doffClothes()
AbstractUser
doffClothes
in interface AbstractUser
doffClothes
in class GeneralUser
AbstractUser.doffClothes()
public void doTransport()
AbstractUser
AbstractUser.doTransport()
public boolean equals(Object obj)
equals
in class GeneralUser
Object.equals(java.lang.Object)
protected void finalize() throws Throwable
finalize
in class Object
Throwable
Object.finalize()
public int getAge()
getAge
in interface AbstractUser
getAge
in class GeneralUser
AbstractUser.getAge()
public AgeBracket getAgeGroup()
AbstractUser
AgeBracket.System
.
getAgeGroup
in interface AbstractUser
getAgeGroup
in class GeneralUser
AbstractUser.getAgeGroup()
public String getApprovedDateString()
getApprovedDateString
in interface AbstractUser
getApprovedDateString
in class GeneralUser
AbstractUser.getApprovedDateString()
public AvatarClass getAvatarClass()
AbstractUser.getAvatarClass()
public String getAvatarLabel()
AbstractUser
AbstractUser.getAvatarLabel()
public Colour getBaseColor()
AbstractUser.getBaseColor()
public Collection<String> getBuddyListNames()
AbstractUser
AbstractUser.getBuddyListNames()
public String getCurrentAction()
GeneralUser
getCurrentAction
in interface AbstractUser
getCurrentAction
in class GeneralUser
AbstractUser.getCurrentAction()
public String getDebugName()
AbstractUser
AbstractUser.getDebugName()
public String getDialect()
getDialect
in interface AbstractUser
getDialect
in class GeneralUser
AbstractUser.getDialect()
public String getDisplayName()
getDisplayName
in interface AbstractUser
getDisplayName
in class GeneralUser
AbstractUser.getDisplayName()
public Colour getExtraColor()
getExtraColor
in interface AbstractUser
getExtraColor
in class GeneralUser
AbstractUser.getExtraColor()
public String getFacing()
AbstractUser
getFacing
in interface AbstractUser
getFacing
in class GeneralUser
AbstractUser.getFacing()
public Inventory getInventory()
AbstractUser
getInventory
in interface AbstractUser
getInventory
in class GeneralUser
AbstractUser.getInventory()
public String getIPAddress()
AbstractUser.getIPAddress()
public int getKickedByUserID()
getKickedByUserID
in interface AbstractUser
getKickedByUserID
in class GeneralUser
AbstractUser.getKickedByUserID()
public String getKickedMessage()
AbstractUser.getKickedMessage()
public String getKickedReasonCode()
getKickedReasonCode
in interface AbstractUser
getKickedReasonCode
in class GeneralUser
AbstractUser.getKickedReasonCode()
public Timestamp getKickedUntil()
getKickedUntil
in interface AbstractUser
getKickedUntil
in class GeneralUser
AbstractUser.getKickedUntil()
public long getLag()
AbstractUser.getLag()
public String getLanguage()
AbstractUser.getLanguage()
public Coord3D getLocation()
AbstractUser
AbstractUser.getTravelStart()
AbstractUser.getLocation()
public Coord3D getLocationForUpdate()
AbstractUser
AbstractUser.unlockLocation()
to free up other threads' ability
to position this AbstractUser
.
getLocationForUpdate
in interface AbstractUser
getLocationForUpdate
in class GeneralUser
AbstractUser.getLocationForUpdate()
public String getMail()
AbstractUser.getMail()
public BigDecimal getMoney(Currency currency)
AbstractUser
AbstractUser.getWallet()
ASAP!
getMoney
in interface AbstractUser
getMoney
in class GeneralUser
currency
- units
AbstractUser.getMoney(org.starhope.appius.mb.Currency)
public Date getNameApprovedAt()
AbstractUser.getNameApprovedAt()
public Date getNameRequestedAt()
AbstractUser.getNameRequestedAt()
public org.json.JSONObject getPublicInfo()
AbstractUser
Returned packet contains:
getPublicInfo
in interface AbstractUser
getPublicInfo
in class GeneralUser
AbstractUser.getPublicInfo()
public String getRegisteredDateString()
getRegisteredDateString
in interface AbstractUser
getRegisteredDateString
in class GeneralUser
AbstractUser.getRegisteredDateString()
public String getResponsibleMail()
GeneralUser
Get the eMail address of a responsible person: either the player, or the parent.
Currently, kids 13-17 return their own mail.
getResponsibleMail
in interface AbstractUser
getResponsibleMail
in class GeneralUser
AbstractUser.getResponsibleMail()
public Room getRoom()
RoomListener
getRoom
in interface RoomListener
getRoom
in class GeneralUser
RoomListener.getRoom()
public int getRoomNumber()
AbstractUser
getRoomNumber
in interface AbstractUser
getRoomNumber
in class GeneralUser
AbstractUser.getRoomNumber()
public ServerThread getServerThread()
AbstractUser.getServerThread()
public int getStaffLevel()
AbstractUser
getStaffLevel
in interface AbstractUser
getStaffLevel
in class GeneralUser
AbstractUser.getStaffLevel()
public long getStartT()
getStartT
in interface AbstractUser
getStartT
in class GeneralUser
AbstractUser.getStartT()
public Coord3D getTarget()
AbstractUser
getTarget
in interface AbstractUser
getTarget
in class GeneralUser
AbstractUser.getTarget()
public double getTravelRate()
GeneralUser
getTravelRate
in interface AbstractUser
getTravelRate
in class GeneralUser
AbstractUser.getTravelRate()
public long getTravelStart()
GeneralUser
getTravelStart
in interface AbstractUser
getTravelStart
in class GeneralUser
AbstractUser.getTravelStart()
public int getUserID()
AbstractUser
getUserID
in interface AbstractUser
getUserID
in class GeneralUser
AbstractUser.getUserID()
public Map<String,String> getUserVariables()
AbstractUser
getUserVariables
in interface AbstractUser
getUserVariables
in class GeneralUser
AbstractUser.getUserVariables()
public String getVariable(String string)
GeneralUser
getVariable
in interface HasVariables
getVariable
in interface AbstractUser
getVariable
in class GeneralUser
string
- Variable key
AbstractUser.getVariable(java.lang.String)
public Wallet getWallet()
getWallet
in interface AbstractUser
getWallet
in class GeneralUser
public Zone getZone()
RoomListener
getZone
in interface RoomListener
getZone
in class GeneralUser
RoomListener.getZone()
public int hashCode()
hashCode
in class GeneralUser
Object.hashCode()
@Deprecated public boolean hasStaffLevel(int i)
Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability)
GeneralUser
hasStaffLevel
in interface AbstractUser
hasStaffLevel
in class GeneralUser
i
- The minimum staff level for which we are
testing.
Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability)
public boolean hasVariable(String string)
AbstractUser
hasVariable
in interface AbstractUser
hasVariable
in class GeneralUser
string
- WRITEME
AbstractUser.hasVariable(java.lang.String)
public void ignore(AbstractUser byLogin)
GeneralUser
ignore
in interface AbstractUser
ignore
in class GeneralUser
byLogin
- The user, whom this user wishes to ignoreAbstractUser.ignore(org.starhope.appius.user.AbstractUser)
public boolean isBanned()
isBanned
in interface AbstractUser
isBanned
in class GeneralUser
AbstractUser.isBanned()
public boolean isCanceled()
isCanceled
in interface AbstractUser
isCanceled
in class GeneralUser
AbstractUser.isCanceled()
public boolean isKicked()
isKicked
in interface AbstractUser
isKicked
in class GeneralUser
AbstractUser.isKicked()
public boolean isNPC()
AbstractUser
AbstractUser.isNPC()
public boolean isOnline()
AbstractUser
AbstractUser.isOnline()
public boolean isPaidMember()
isPaidMember
in interface AbstractUser
isPaidMember
in class GeneralUser
AbstractUser.isPaidMember()
public void kick(AbstractUser u, String kickReason, int duration) throws PrivilegeRequiredException
u
- WRITEMEkickReason
- WRITEMEduration
- WRITEME
PrivilegeRequiredException
- WRITEMEAbstractUser.kick(org.starhope.appius.user.AbstractUser,
java.lang.String, int)
public void liftBan(AbstractUser authority) throws PrivilegeRequiredException
AbstractUser
authority
- WRITEME
PrivilegeRequiredException
- WRITEMEAbstractUser.liftBan(org.starhope.appius.user.AbstractUser)
public boolean needsParent()
GeneralUser
needsParent
in interface AbstractUser
needsParent
in class GeneralUser
AbstractUser.needsParent()
public void removeBuddy(AbstractUser byLogin)
removeBuddy
in interface AbstractUser
removeBuddy
in class GeneralUser
byLogin
- WRITEMEAbstractUser.removeBuddy(org.starhope.appius.user.AbstractUser)
public void reportedToModeratorBy(AbstractUser u)
u
- WRITEMEAbstractUser.reportedToModeratorBy(org.starhope.appius.user.AbstractUser)
public void reportedToModeratorBy(AbstractUser u, String reason)
u
- WRITEMEreason
- WRITEMEAbstractUser.reportedToModeratorBy(org.starhope.appius.user.AbstractUser,
java.lang.String)
public void sendEarnings(Room room, String string)
sendEarnings
in interface AbstractUser
sendEarnings
in class GeneralUser
room
- WRITEMEstring
- WRITEMEAbstractUser.sendEarnings(org.starhope.appius.game.Room,
java.lang.String)
public void sendMigrate(AbstractZone refugeeZone) throws UserDeadException
AbstractUser
refugeeZone
- WRITEME
UserDeadException
- WRITEMEAbstractUser.sendMigrate(org.starhope.appius.types.AbstractZone)
public void sendOops()
AbstractUser
AbstractUser.sendOops()
public void sendResponse(org.json.JSONObject result)
result
- WRITEMEAbstractUser.sendResponse(org.json.JSONObject)
public void sendWardrobe()
AbstractUser
sendWardrobe
in interface AbstractUser
sendWardrobe
in class GeneralUser
AbstractUser.sendWardrobe()
public void setAgeGroupToSystem()
AbstractUser
setAgeGroupToSystem
in interface AbstractUser
setAgeGroupToSystem
in class GeneralUser
AbstractUser.setAgeGroupToSystem()
public void setBaseColor(Colour colour)
AbstractUser
setBaseColor
in interface AbstractUser
setBaseColor
in class GeneralUser
colour
- WRITEMEAbstractUser.setBaseColor(org.starhope.appius.types.Colour)
public void setCanTalk(boolean b)
AbstractUser
setCanTalk
in interface AbstractUser
setCanTalk
in class GeneralUser
b
- WRITEMEAbstractUser.setCanTalk(boolean)
public void setCurrentAction(String newAction)
GeneralUser
setCurrentAction
in interface AbstractUser
setCurrentAction
in class GeneralUser
newAction
- the currentAction to setAbstractUser.setCurrentAction(java.lang.String)
public void setExtraColor(Colour colour)
setExtraColor
in interface AbstractUser
setExtraColor
in class GeneralUser
colour
- WRITEMEAbstractUser.setExtraColor(org.starhope.appius.types.Colour)
public void setFacing(String newFacing)
setFacing
in interface AbstractUser
setFacing
in class GeneralUser
newFacing
- the new facing directionAbstractUser.setFacing(java.lang.String)
public void setLastActive()
AbstractUser
AbstractUser.setLastActive()
public void setLocation(Coord3D coord3d)
setLocation
in interface AbstractUser
setLocation
in class GeneralUser
coord3d
- new 3D coordinatesAbstractUser.setLocation(org.starhope.appius.geometry.Coord3D)
public void setMail(String email) throws GameLogicException
AbstractUser
email
- WRITEME
GameLogicException
- WRITEMEAbstractUser.setMail(java.lang.String)
public void setParent(Parent newParent) throws GameLogicException, ForbiddenUserException, AlreadyExistsException
AbstractUser
AbstractUser.needsParent()
newParent
- 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)
AlreadyExistsException
- if the parent account has the
maximum allowed children.AbstractUser.setParent(org.starhope.appius.user.Parent)
public int setRoom(Room room)
GeneralUser
setRoom
in interface AbstractUser
setRoom
in class GeneralUser
room
- the room in which the user must exist
AbstractUser.setRoom(org.starhope.appius.game.Room)
public void setStartT(long when)
AbstractUser
AbstractUser.getTravelStart()
because that value is
updated over time, this value is when they actually started
moving along the path altogether
setStartT
in interface AbstractUser
setStartT
in class GeneralUser
when
- the time at which the user last made a conscious
change in their movementAbstractUser.setStartT(long)
public void setTarget(Coord3D coord3d)
GeneralUser
setTarget
in interface AbstractUser
setTarget
in class GeneralUser
coord3d
- target coördinatesAbstractUser.setTarget(org.starhope.appius.geometry.Coord3D)
public void setTravelRate(double rate)
GeneralUser
setTravelRate
in interface AbstractUser
setTravelRate
in class GeneralUser
rate
- WRITEMEAbstractUser.setTravelRate(double)
public void setTravelStart(long l)
AbstractUser
setTravelStart
in interface AbstractUser
setTravelStart
in class GeneralUser
l
- WRITEMEAbstractUser.setTravelStart(long)
public void setVariable(String varName, String varValue)
GeneralUser
AbstractUser
manual page.
setVariable
in interface HasVariables
setVariable
in interface AbstractUser
setVariable
in class GeneralUser
varName
- The name of the variablevarValue
- The valueAbstractUser.setVariable(java.lang.String,
java.lang.String)
public void speak(Room room, String string)
room
- 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.Room,
java.lang.String)
public org.json.JSONObject toJSON()
AbstractUser.toJSON()
public String toSFSXML()
AbstractUser.toSFSXML()
public String toString()
toString
in class Object
Object.toString()
public void unlockLocation()
AbstractUser
AbstractUser.getLocationForUpdate()
(q.v.)
unlockLocation
in interface AbstractUser
unlockLocation
in class GeneralUser
AbstractUser.unlockLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |