|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.user.GeneralUser
public abstract class GeneralUser
WRITEME: Document this type.
| Field Summary | |
|---|---|
(package private) DamageTypeRanks |
baseDefenses
Inherent basic defenses |
protected Map<UserStat,Integer> |
baseStats
The user's base stats |
PolygonPrimitive<?> |
collisionBounds
Collision boundaries for an unknown thing or other |
private String |
currentAction
The action or movement currently being performed by the NPC. |
protected Room |
currentRoom
The current room in which the user is active. |
protected String |
facing
The direction in which the user is facing. |
protected long |
lastUserMovement
the last time that the user intentionally started moving. |
(package private) Coord3D |
location
Current coördinates for the user (as of travelStartTime) |
private ReentrantLock |
locationLock
Locking semaphore for location |
protected PathFinder |
pathFinder
path controller |
private static long |
serialVersionUID
Java serialisation unique ID |
(package private) Coord3D |
target
Destination coördinates towards which the user is currently moving; May be identical to location |
(package private) long |
travelStartTime
The time at which the user started moving on their current movement vector. |
protected UserRecord |
userRecord
The user record backing this user |
(package private) ConcurrentHashMap<String,String> |
userVariables
Arbitrary user variables which can be set or retrieved by the front-end |
| Constructor Summary | |
|---|---|
GeneralUser()
WRITEME: Document this constructor brpocock@star-hope.org |
|
GeneralUser(UserRecord newRecord)
|
|
| Method Summary | |
|---|---|
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 |
acceptUserAction(Room r,
AbstractUser u)
User actions (go/do actions) propagate through this channel. |
void |
acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
Receive notification of the change of an user variable |
void |
addBuddy(AbstractUser buddy)
|
void |
assertLocationUnlocked()
WRITEME: Document this method brpocock@star-hope.org |
void |
assertStaffLevel(int staffLevelNeeded)
Deprecated. use Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability) |
void |
attend(AbstractUser interestingFellow)
Attend to an user who may previously have been ignored |
boolean |
canApproveSelf()
If the user is a teen (13+) or adult, they are allowed to approve their own account. |
boolean |
canBetaTest()
|
boolean |
canEnterChatZone()
|
boolean |
canEnterMenuZone()
|
DamageTypeRanks |
changeBaseDefenses(DamageTypeRanks alteration)
|
int |
compareTo(Object o)
|
void |
deleteVariable(String key)
This is an overriding method. |
void |
doffClothes()
WRITEME |
boolean |
equals(Object obj)
|
int |
getAge()
|
AgeBracket |
getAgeGroup()
Get the user's age bracket. |
String |
getApprovedDateString()
|
DamageTypeRanks |
getBaseDefenses()
|
int |
getBaseStat(UserStat stat)
get a base stat (before any modifiers for items or transient effects are applied) |
Coord2D |
getCenterOfMass()
Gets the object's current center of mass in world coordinates |
PolygonPrimitive<?> |
getCollisionBounds()
Gets the collision boundaries for the object |
String |
getCurrentAction()
Normally “Walk” but can be any action that the client recognises for the avatar type |
protected String |
getD()
Get the archaïc “d” variable |
String |
getDialect()
|
String |
getDisplayName()
|
DamageTypeRanks |
getEffectiveDefenses()
Get the effective defenses of the user (including transient and item effects) |
long |
getEndMovementTime(long currentTime)
|
Colour |
getExtraColor()
|
String |
getFacing()
Get the string identifying the direction which this object is facing. |
org.json.JSONObject |
getGameEquipItems_JSON()
|
Collection<InventoryItem> |
getGameEquipItems()
If the user has a game item equipped (e.g. |
double |
getHeight()
Height in pixels. |
UserHouse |
getHouse()
WRITEME: Document this method brpocock@star-hope.org |
Inventory |
getInventory()
WRITEME: document this method (brpocock@star-hope.org, Feb 19, 2010) |
Collection<InventoryItem> |
getItemsByType(String typeString)
Get all items that identify as the type string. |
Collection<InventoryItem> |
getItemsByType(String[] types)
Get all inventory items which are (any of) the given type(s). |
InventoryItem[] |
getItemsByTypeAsArray(String typeString)
Get all items that identify as the type string. |
int |
getKickedByUserID()
|
String |
getKickedReasonCode()
|
Timestamp |
getKickedUntil()
|
Coord3D |
getLocationForUpdate()
Gets the current coördinates. |
double |
getMass()
Gets the mass of the collidable object |
BigDecimal |
getMoney(Currency currency)
To be deprecated in favour of AbstractUser.getWallet() ASAP! |
PathFinder |
getPathFinder()
WRITEME: Document this method brpocock@star-hope.org |
org.json.JSONObject |
getPublicInfo()
Returned packet contains: |
Timestamp |
getRegisteredAt()
|
Date |
getRegisteredDate()
|
String |
getRegisteredDateString()
|
String |
getRequestedName()
|
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) |
double |
getSizeScalar()
WRITEME: Document this method brpocock@star-hope.org |
int |
getStaffLevel()
WRITEME: document this method (brpocock@star-hope.org, Jan 11, 2010) |
long |
getStartMovementTime()
|
long |
getStartT()
|
int |
getStat(UserStat stat)
Get the user's effective stat value (considering any transient effects in place as well as the base stat) |
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 |
UserListIterator |
getUserListIterator(String moniker)
WRITEME: Document this method brpocock@star-hope.org |
String |
getUserName()
|
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. |
Map<String,String> |
getVariables()
Get all user variables in a hash map |
org.json.JSONObject |
getVariablesJSON()
Get all values in JSON form |
Vector2D |
getVelocity()
Gets the object's current velocity |
Wallet |
getWallet()
|
Zone |
getZone()
WRITEME: document this method (brpocock@star-hope.org, Oct 31, 2009) |
Coord3D |
handleWalkFail(Room room,
Coord3D to)
Called from pathfinders and rooms when the user tries to go someplace and can't get there, to allow them to plot a course around obstacles. |
int |
hashCode()
|
boolean |
hasStaffLevel(int staffLevelNeeded)
Deprecated. |
boolean |
hasVariable(String string)
WRITEME: document this method (brpocock@star-hope.org, Nov 30, 2009) |
void |
ignore(AbstractUser boringFellow)
Calling this method indicates that this user wants to ignore the other specified user. |
boolean |
isActive()
|
boolean |
isApproved()
|
boolean |
isBanned()
|
boolean |
isCanceled()
|
boolean |
isKicked()
|
boolean |
isPaidMember()
|
protected void |
local_publicInfo(org.json.JSONObject userInfo)
Append information in the subclass to the already-prepared JSON data for the getPublicInfo call |
boolean |
needsParent()
Kid accounts (under 13) require parental confirmation. |
void |
purchase(GenericItemReference itemToBuy)
WRITEME: Document this method brpocock@star-hope.org |
void |
removeBuddy(AbstractUser byLogin)
|
void |
resetVariables(Map<String,String> map)
WRITEME: Document this method brpocock@star-hope.org |
void |
sendBuddyList(String whichList,
List<UserListEntry> users)
WRITEME: Document this method brpocock@star-hope.org |
void |
sendEarnings(Room room,
String string)
|
void |
sendWardrobe()
WRITEME |
void |
setAgeGroupToSystem()
WRITEME |
void |
setBackingRecord(UserRecord rec)
Force the backing record for this object to be the given one. |
void |
setBaseColor(Colour colour)
WRITEME |
void |
setCanTalk(boolean b)
WRITEME |
void |
setCenterOfMass(Coord2D com)
Sets the object's new center of mass in world space coordinates (i.e. |
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 |
setLocation(Coord3D coord3d)
|
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 newTarget)
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(Map.Entry<String,String> var)
This is an overriding method. |
void |
setVariable(String varName,
String varValue)
Set an user variable. |
void |
setVariables(Map<String,String> map)
This is an overriding method. |
void |
setVelocity(Vector2D velocity)
This method does nothing because we shouldn't be setting the speed and direction of users |
boolean |
takeAttack(DamageTypeRanks attack)
WRITEME: Document this method brpocock@star-hope.org |
void |
unlockLocation()
Unlock an user's location, locked by a call to AbstractUser.getLocationForUpdate() (q.v.) |
void |
updateWallet()
review your current wallet currency amounts, they may have changed |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.starhope.appius.user.AbstractUser |
|---|
acceptErrorReply, acceptMessage, acceptPrivateMessage, acceptSuccessReply, addGiftSubscription, addItem, ban, canTalk, doTransport, getAvatarClass, getAvatarLabel, getBaseColor, getBuddyListNames, getDebugName, getIPAddress, getKickedMessage, getLag, getLanguage, getLocation, getMail, getNameApprovedAt, getNameRequestedAt, getServerThread, isNPC, isOnline, kick, liftBan, reportedToModeratorBy, reportedToModeratorBy, sendMigrate, sendOops, sendResponse, setLastActive, setMail, setParent, speak, toJSON, toSFSXML |
| Methods inherited from interface org.starhope.appius.game.RoomListener |
|---|
acceptGameAction, acceptGameStateChange, acceptPublicMessage, acceptPublicMessage |
| Field Detail |
|---|
private static final long serialVersionUID
public PolygonPrimitive<?> collisionBounds
private String currentAction
protected transient Room currentRoom
protected String facing
protected long lastUserMovement
Coord3D location
travelStartTime)
private final ReentrantLock locationLock
AbstractUser.getLocationForUpdate(),
AbstractUser.unlockLocation()Coord3D target
location
long travelStartTime
protected UserRecord userRecord
final ConcurrentHashMap<String,String> userVariables
protected final PathFinder pathFinder
protected final Map<UserStat,Integer> baseStats
DamageTypeRanks baseDefenses
| Constructor Detail |
|---|
public GeneralUser()
public GeneralUser(UserRecord newRecord)
throws GameLogicException
newRecord - the user data record backing this user
GameLogicException - if the record is null| Method Detail |
|---|
public void acceptObjectJoinRoom(Room room,
RoomListener object)
RoomListener
acceptObjectJoinRoom in interface RoomListenerroom - 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 RoomListenerroom - 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 RoomListenersender - 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 acceptUserAction(Room r,
AbstractUser u)
RoomListener
acceptUserAction in interface RoomListenerr - the room in which the user is taking an actionu - the user taking an actionRoomListener.acceptUserAction(org.starhope.appius.game.Room,
org.starhope.appius.user.AbstractUser)
public void acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
RoomListener
acceptUserVariableUpdate in interface RoomListeneruser - 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 AbstractUserbuddy - WRITEMEAbstractUser.addBuddy(org.starhope.appius.user.AbstractUser)public void assertLocationUnlocked()
AbstractUser
assertLocationUnlocked in interface AbstractUserAbstractUser.assertLocationUnlocked()
@Deprecated
public void assertStaffLevel(int staffLevelNeeded)
throws PrivilegeRequiredException
Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability)
assertStaffLevel in interface AbstractUserstaffLevelNeeded - The minimum staff level which is being
asserted
PrivilegeRequiredException - if the minimum staff level is
not met.public void attend(AbstractUser interestingFellow)
attend in interface AbstractUserinterestingFellow - the user to whom to now attendpublic boolean canApproveSelf()
public boolean canBetaTest()
public boolean canEnterChatZone()
public boolean canEnterMenuZone()
public DamageTypeRanks changeBaseDefenses(DamageTypeRanks alteration)
alteration - amount(s) to alter base defenses
public int compareTo(Object o)
compareTo in interface Comparable<Object>Comparable.compareTo(java.lang.Object)public void deleteVariable(String key)
deleteVariable in interface HasVariableskey - WRITEMEHasVariables.deleteVariable(java.lang.String)public void doffClothes()
AbstractUser
doffClothes in interface AbstractUserAbstractUser.doffClothes()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int getAge()
getAge in interface AbstractUserAbstractUser.getAge()public AgeBracket getAgeGroup()
AbstractUserAgeBracket.System.
getAgeGroup in interface AbstractUserAbstractUser.getAgeGroup()public String getApprovedDateString()
getApprovedDateString in interface AbstractUserAbstractUser.getApprovedDateString()public DamageTypeRanks getBaseDefenses()
public int getBaseStat(UserStat stat)
stat - stat
public Coord2D getCenterOfMass()
Collidable
getCenterOfMass in interface CollidableCollidable.getCenterOfMass()public PolygonPrimitive<?> getCollisionBounds()
Collidable
getCollisionBounds in interface CollidableCollidable.getCollisionBounds()public String getCurrentAction()
getCurrentAction in interface AbstractUserprotected String getD()
public String getDialect()
getDialect in interface AbstractUserAbstractUser.getDialect()public String getDisplayName()
getDisplayName in interface AbstractUserAbstractUser.getDisplayName()public DamageTypeRanks getEffectiveDefenses()
public long getEndMovementTime(long currentTime)
getEndMovementTime in interface CollidablecurrentTime - The current time
Collidable.getEndMovementTime(long)public Colour getExtraColor()
getExtraColor in interface AbstractUserAbstractUser.getExtraColor()public String getFacing()
AbstractUser
getFacing in interface AbstractUserAbstractUser.getFacing()public Collection<InventoryItem> getGameEquipItems()
getGameEquipItems_JSON()
public org.json.JSONObject getGameEquipItems_JSON()
throws org.json.JSONException
org.json.JSONException - if something goes wronggetGameEquipItems()public double getHeight()
AbstractUser
getHeight in interface AbstractUserAbstractUser.getHeight()public UserHouse getHouse()
public Inventory getInventory()
AbstractUser
getInventory in interface AbstractUserAbstractUser.getInventory()public Collection<InventoryItem> getItemsByType(String typeString)
typeString - A type string from the config file
getItemsByType(String[])public Collection<InventoryItem> getItemsByType(String[] types)
types - The set of types of inventory items which are wanted
public InventoryItem[] getItemsByTypeAsArray(String typeString)
typeString - A type string specified in the config file
public int getKickedByUserID()
getKickedByUserID in interface AbstractUserAbstractUser.getKickedByUserID()public String getKickedReasonCode()
getKickedReasonCode in interface AbstractUserAbstractUser.getKickedReasonCode()public Timestamp getKickedUntil()
getKickedUntil in interface AbstractUserAbstractUser.getKickedUntil()public Coord3D getLocationForUpdate()
AbstractUserAbstractUser.unlockLocation() to free up other threads' ability
to position this AbstractUser.
getLocationForUpdate in interface AbstractUserAbstractUser.getLocationForUpdate()public double getMass()
Collidable
getMass in interface CollidableCollidable.getMass()public BigDecimal getMoney(Currency currency)
AbstractUserAbstractUser.getWallet() ASAP!
getMoney in interface AbstractUsercurrency - units
AbstractUser.getMoney(org.starhope.appius.mb.Currency)public PathFinder getPathFinder()
AbstractUser
getPathFinder in interface AbstractUserAbstractUser.getPathFinder()public org.json.JSONObject getPublicInfo()
AbstractUserReturned packet contains:
getPublicInfo in interface AbstractUserReturned packet contains:
- "avatar": FILENAME,
- "avatarClass": ID#,
- chatFG: foreground colour (RGB int),
- chatBG: background colour (RGB int),
- "avatarClass_B": avatar class's default base colour,
- "avatarClass_E": avatar class's default extra colour,
- "avatarClass_P": avatar class's default pattern colour,
- "inRoom": room moniker (if in a room),
- "userName": avatar label (user visible name, including
hidden names),
- "colors": { ... array of colour filters to be applied to
the avatar file itself ... },
- "clothes": { ... array of clothing items ... },
- "gameItem": game equipped item ID (carrying object),
- "vars": { ... user variables, including "d" or "s" ... }
- "id": USER-ID
public Timestamp getRegisteredAt()
public Date getRegisteredDate()
UserRecord.getRegisteredDate()public String getRegisteredDateString()
getRegisteredDateString in interface AbstractUsergetRegisteredDate()public String getRequestedName()
public String getResponsibleMail()
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 AbstractUserpublic Room getRoom()
RoomListener
getRoom in interface RoomListenerpublic int getRoomNumber()
AbstractUser
getRoomNumber in interface AbstractUserpublic double getSizeScalar()
AbstractUser
getSizeScalar in interface AbstractUserpublic int getStaffLevel()
AbstractUser
getStaffLevel in interface AbstractUserpublic long getStartMovementTime()
getStartMovementTime in interface CollidableCollidable.getStartMovementTime()public long getStartT()
getStartT in interface AbstractUserpublic int getStat(UserStat stat)
stat - the stat to query
public Coord3D getTarget()
AbstractUser
getTarget in interface AbstractUserAbstractUser.getTarget()public double getTravelRate()
getTravelRate in interface AbstractUserAbstractUser.getTravelRate()public long getTravelStart()
getTravelStart in interface AbstractUserAbstractUser.getTravelStart()public int getUserID()
AbstractUser
getUserID in interface AbstractUserpublic UserListIterator getUserListIterator(String moniker)
getUserListIterator in interface AbstractUsermoniker - usually either $buddy or $ignore
public String getUserName()
public Map<String,String> getUserVariables()
AbstractUser
getUserVariables in interface AbstractUserAbstractUser.getUserVariables()public String getVariable(String string)
getVariable in interface HasVariablesgetVariable in interface AbstractUserstring - Variable key
public Map<String,String> getVariables()
getVariables in interface HasVariablespublic org.json.JSONObject getVariablesJSON()
public Vector2D getVelocity()
Collidable
getVelocity in interface CollidableCollidable.getVelocity()public Wallet getWallet()
getWallet in interface AbstractUserpublic Zone getZone()
RoomListener
getZone in interface RoomListenerRoomListener.getZone()
public Coord3D handleWalkFail(Room room,
Coord3D to)
AbstractUser
handleWalkFail in interface AbstractUserroom - the destination roomto - the destination coördinates
AbstractUser.handleWalkFail(org.starhope.appius.game.Room,
org.starhope.appius.geometry.Coord3D)public int hashCode()
hashCode in class ObjectObject.hashCode()@Deprecated public boolean hasStaffLevel(int staffLevelNeeded)
hasStaffLevel in interface AbstractUserstaffLevelNeeded - 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 AbstractUserstring - WRITEME
AbstractUser.hasVariable(java.lang.String)public void ignore(AbstractUser boringFellow)
ignore in interface AbstractUserboringFellow - The user, whom this user wishes to ignorepublic boolean isActive()
public boolean isApproved()
UserRecord.isApproved()public boolean isBanned()
isBanned in interface AbstractUserAbstractUser.isBanned()public boolean isCanceled()
isCanceled in interface AbstractUserAbstractUser.isCanceled()public boolean isKicked()
isKicked in interface AbstractUserAbstractUser.isKicked()public boolean isPaidMember()
isPaidMember in interface AbstractUserAbstractUser.isPaidMember()protected void local_publicInfo(org.json.JSONObject userInfo)
userInfo - the public info JSON object to which additional
info. should be appendedpublic boolean needsParent()
needsParent in interface AbstractUser
public void purchase(GenericItemReference itemToBuy)
throws NonSufficientFundsException,
NotFoundException,
AlreadyExistsException
AbstractUser
purchase in interface AbstractUseritemToBuy - WRITEME
NonSufficientFundsException - WRITEME
NotFoundException - WRITEME
AlreadyExistsException - WRITEMEAbstractUser.purchase(org.starhope.appius.game.inventory.GenericItemReference)public void removeBuddy(AbstractUser byLogin)
removeBuddy in interface AbstractUserbyLogin - WRITEMEAbstractUser.removeBuddy(org.starhope.appius.user.AbstractUser)@Setter(getter="getVariables") public void resetVariables(Map<String,String> map)
HasVariables
resetVariables in interface HasVariablesHasVariables.resetVariables(java.util.Map)
public void sendBuddyList(String whichList,
List<UserListEntry> users)
sendBuddyList in interface AbstractUserwhichList - the list nameusers - users on that list
public void sendEarnings(Room room,
String string)
sendEarnings in interface AbstractUserroom - WRITEMEstring - WRITEMEAbstractUser.sendEarnings(org.starhope.appius.game.Room,
java.lang.String)public void sendWardrobe()
AbstractUser
sendWardrobe in interface AbstractUserAbstractUser.sendWardrobe()public void setAgeGroupToSystem()
AbstractUser
setAgeGroupToSystem in interface AbstractUserAbstractUser.setAgeGroupToSystem()public void setBackingRecord(UserRecord rec)
DataRecordBacked
setBackingRecord in interface DataRecordBacked<UserRecord>rec - the backing recordDataRecordBacked.setBackingRecord(org.starhope.appius.util.DataRecord)@Setter(getter="getBaseColor") public void setBaseColor(Colour colour)
AbstractUser
setBaseColor in interface AbstractUsercolour - WRITEMEAbstractUser.setBaseColor(org.starhope.appius.types.Colour)@Setter(getter="canTalk") public void setCanTalk(boolean b)
AbstractUser
setCanTalk in interface AbstractUserb - WRITEMEAbstractUser.setCanTalk(boolean)public void setCenterOfMass(Coord2D com)
Collidable
setCenterOfMass in interface Collidablecom - New center of mass in world coordinatesCollidable.setCenterOfMass(Coord2D)@Setter(getter="getCurrentAction") public void setCurrentAction(String newAction)
setCurrentAction in interface AbstractUsernewAction - the currentAction to set@Setter(getter="getExtraColor") public void setExtraColor(Colour colour)
setExtraColor in interface AbstractUsercolour - WRITEMEAbstractUser.setExtraColor(org.starhope.appius.types.Colour)@Setter(getter="getFacing") public void setFacing(String newFacing)
setFacing in interface AbstractUsernewFacing - the new facing directionAbstractUser.setFacing(java.lang.String)@Setter(getter="getLocation") public void setLocation(Coord3D coord3d)
setLocation in interface AbstractUsercoord3d - new 3D coordinatesAbstractUser.setLocation(org.starhope.appius.geometry.Coord3D)@Setter(getter="getRoom") public int setRoom(Room room)
setRoom in interface AbstractUserroom - the room in which the user must exist
@Setter(getter="getStartT") public void setStartT(long when)
AbstractUserAbstractUser.getTravelStart() because that value is
updated over time, this value is when they actually started
moving along the path altogether
setStartT in interface AbstractUserwhen - the time at which the user last made a conscious
change in their movementAbstractUser.setStartT(long)@Setter(getter="getTarget") public void setTarget(Coord3D newTarget)
setTarget in interface AbstractUsernewTarget - target coördinates@Setter(getter="getTravelRate") public void setTravelRate(double rate)
setTravelRate in interface AbstractUserrate - WRITEMEAbstractUser.setTravelRate(double)@Setter(getter="getTravelStart") public void setTravelStart(long l)
AbstractUser
setTravelStart in interface AbstractUserl - WRITEMEAbstractUser.setTravelStart(long)public void setVariable(Map.Entry<String,String> var)
setVariable in interface HasVariablesvar - A Hash type Entry object containing a key-value pair
to be used to set a variable.HasVariables.setVariable(java.util.Map.Entry)
public void setVariable(String varName,
String varValue)
AbstractUser
manual page.
setVariable in interface HasVariablessetVariable in interface AbstractUservarName - The name of the variablevarValue - The valuepublic void setVariables(Map<String,String> map)
setVariables in interface HasVariablesmap - WRITEMEHasVariables.setVariables(java.util.Map)public void setVelocity(Vector2D velocity)
WRITEME: explain why? We do manipulate these values, regardless…
setVelocity in interface Collidablevelocity - WRITEMECollidable.setVelocity(Vector2D
velocity)public boolean takeAttack(DamageTypeRanks attack)
takeAttack in interface AbstractUserattack - WRITEME
public void unlockLocation()
AbstractUserAbstractUser.getLocationForUpdate() (q.v.)
unlockLocation in interface AbstractUserAbstractUser.unlockLocation()public void updateWallet()
AbstractUser
updateWallet in interface AbstractUserAbstractUser.updateWallet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||