|
||||||||||
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 nullMethod Detail |
---|
public void acceptObjectJoinRoom(Room room, RoomListener object)
RoomListener
acceptObjectJoinRoom
in interface RoomListener
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
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
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 acceptUserAction(Room r, AbstractUser u)
RoomListener
acceptUserAction
in interface RoomListener
r
- 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 RoomListener
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
buddy
- WRITEMEAbstractUser.addBuddy(org.starhope.appius.user.AbstractUser)
public void assertLocationUnlocked()
AbstractUser
assertLocationUnlocked
in interface AbstractUser
AbstractUser.assertLocationUnlocked()
@Deprecated public void assertStaffLevel(int staffLevelNeeded) throws PrivilegeRequiredException
Security.hasCapability(AbstractUser, org.starhope.appius.sys.admin.SecurityCapability)
assertStaffLevel
in interface AbstractUser
staffLevelNeeded
- 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 AbstractUser
interestingFellow
- 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 HasVariables
key
- WRITEMEHasVariables.deleteVariable(java.lang.String)
public void doffClothes()
AbstractUser
doffClothes
in interface AbstractUser
AbstractUser.doffClothes()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int getAge()
getAge
in interface AbstractUser
AbstractUser.getAge()
public AgeBracket getAgeGroup()
AbstractUser
AgeBracket.System
.
getAgeGroup
in interface AbstractUser
AbstractUser.getAgeGroup()
public String getApprovedDateString()
getApprovedDateString
in interface AbstractUser
AbstractUser.getApprovedDateString()
public DamageTypeRanks getBaseDefenses()
public int getBaseStat(UserStat stat)
stat
- stat
public Coord2D getCenterOfMass()
Collidable
getCenterOfMass
in interface Collidable
Collidable.getCenterOfMass()
public PolygonPrimitive<?> getCollisionBounds()
Collidable
getCollisionBounds
in interface Collidable
Collidable.getCollisionBounds()
public String getCurrentAction()
getCurrentAction
in interface AbstractUser
protected String getD()
public String getDialect()
getDialect
in interface AbstractUser
AbstractUser.getDialect()
public String getDisplayName()
getDisplayName
in interface AbstractUser
AbstractUser.getDisplayName()
public DamageTypeRanks getEffectiveDefenses()
public long getEndMovementTime(long currentTime)
getEndMovementTime
in interface Collidable
currentTime
- The current time
Collidable.getEndMovementTime(long)
public Colour getExtraColor()
getExtraColor
in interface AbstractUser
AbstractUser.getExtraColor()
public String getFacing()
AbstractUser
getFacing
in interface AbstractUser
AbstractUser.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 AbstractUser
AbstractUser.getHeight()
public UserHouse getHouse()
public Inventory getInventory()
AbstractUser
getInventory
in interface AbstractUser
AbstractUser.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 AbstractUser
AbstractUser.getKickedByUserID()
public String getKickedReasonCode()
getKickedReasonCode
in interface AbstractUser
AbstractUser.getKickedReasonCode()
public Timestamp getKickedUntil()
getKickedUntil
in interface AbstractUser
AbstractUser.getKickedUntil()
public Coord3D getLocationForUpdate()
AbstractUser
AbstractUser.unlockLocation()
to free up other threads' ability
to position this AbstractUser
.
getLocationForUpdate
in interface AbstractUser
AbstractUser.getLocationForUpdate()
public double getMass()
Collidable
getMass
in interface Collidable
Collidable.getMass()
public BigDecimal getMoney(Currency currency)
AbstractUser
AbstractUser.getWallet()
ASAP!
getMoney
in interface AbstractUser
currency
- units
AbstractUser.getMoney(org.starhope.appius.mb.Currency)
public PathFinder getPathFinder()
AbstractUser
getPathFinder
in interface AbstractUser
AbstractUser.getPathFinder()
public org.json.JSONObject getPublicInfo()
AbstractUser
Returned packet contains:
getPublicInfo
in interface AbstractUser
Returned 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 AbstractUser
getRegisteredDate()
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 AbstractUser
public Room getRoom()
RoomListener
getRoom
in interface RoomListener
public int getRoomNumber()
AbstractUser
getRoomNumber
in interface AbstractUser
public double getSizeScalar()
AbstractUser
getSizeScalar
in interface AbstractUser
public int getStaffLevel()
AbstractUser
getStaffLevel
in interface AbstractUser
public long getStartMovementTime()
getStartMovementTime
in interface Collidable
Collidable.getStartMovementTime()
public long getStartT()
getStartT
in interface AbstractUser
public int getStat(UserStat stat)
stat
- the stat to query
public Coord3D getTarget()
AbstractUser
getTarget
in interface AbstractUser
AbstractUser.getTarget()
public double getTravelRate()
getTravelRate
in interface AbstractUser
AbstractUser.getTravelRate()
public long getTravelStart()
getTravelStart
in interface AbstractUser
AbstractUser.getTravelStart()
public int getUserID()
AbstractUser
getUserID
in interface AbstractUser
public UserListIterator getUserListIterator(String moniker)
getUserListIterator
in interface AbstractUser
moniker
- usually either $buddy or $ignore
public String getUserName()
public Map<String,String> getUserVariables()
AbstractUser
getUserVariables
in interface AbstractUser
AbstractUser.getUserVariables()
public String getVariable(String string)
getVariable
in interface HasVariables
getVariable
in interface AbstractUser
string
- Variable key
public Map<String,String> getVariables()
getVariables
in interface HasVariables
public org.json.JSONObject getVariablesJSON()
public Vector2D getVelocity()
Collidable
getVelocity
in interface Collidable
Collidable.getVelocity()
public Wallet getWallet()
getWallet
in interface AbstractUser
public Zone getZone()
RoomListener
getZone
in interface RoomListener
RoomListener.getZone()
public Coord3D handleWalkFail(Room room, Coord3D to)
AbstractUser
handleWalkFail
in interface AbstractUser
room
- 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 Object
Object.hashCode()
@Deprecated public boolean hasStaffLevel(int staffLevelNeeded)
hasStaffLevel
in interface AbstractUser
staffLevelNeeded
- 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
string
- WRITEME
AbstractUser.hasVariable(java.lang.String)
public void ignore(AbstractUser boringFellow)
ignore
in interface AbstractUser
boringFellow
- The user, whom this user wishes to ignorepublic boolean isActive()
public boolean isApproved()
UserRecord.isApproved()
public boolean isBanned()
isBanned
in interface AbstractUser
AbstractUser.isBanned()
public boolean isCanceled()
isCanceled
in interface AbstractUser
AbstractUser.isCanceled()
public boolean isKicked()
isKicked
in interface AbstractUser
AbstractUser.isKicked()
public boolean isPaidMember()
isPaidMember
in interface AbstractUser
AbstractUser.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 AbstractUser
itemToBuy
- WRITEME
NonSufficientFundsException
- WRITEME
NotFoundException
- WRITEME
AlreadyExistsException
- WRITEMEAbstractUser.purchase(org.starhope.appius.game.inventory.GenericItemReference)
public void removeBuddy(AbstractUser byLogin)
removeBuddy
in interface AbstractUser
byLogin
- WRITEMEAbstractUser.removeBuddy(org.starhope.appius.user.AbstractUser)
@Setter(getter="getVariables") public void resetVariables(Map<String,String> map)
HasVariables
resetVariables
in interface HasVariables
HasVariables.resetVariables(java.util.Map)
public void sendBuddyList(String whichList, List<UserListEntry> users)
sendBuddyList
in interface AbstractUser
whichList
- the list nameusers
- users on that listpublic void sendEarnings(Room room, String string)
sendEarnings
in interface AbstractUser
room
- WRITEMEstring
- WRITEMEAbstractUser.sendEarnings(org.starhope.appius.game.Room,
java.lang.String)
public void sendWardrobe()
AbstractUser
sendWardrobe
in interface AbstractUser
AbstractUser.sendWardrobe()
public void setAgeGroupToSystem()
AbstractUser
setAgeGroupToSystem
in interface AbstractUser
AbstractUser.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 AbstractUser
colour
- WRITEMEAbstractUser.setBaseColor(org.starhope.appius.types.Colour)
@Setter(getter="canTalk") public void setCanTalk(boolean b)
AbstractUser
setCanTalk
in interface AbstractUser
b
- WRITEMEAbstractUser.setCanTalk(boolean)
public void setCenterOfMass(Coord2D com)
Collidable
setCenterOfMass
in interface Collidable
com
- New center of mass in world coordinatesCollidable.setCenterOfMass(Coord2D)
@Setter(getter="getCurrentAction") public void setCurrentAction(String newAction)
setCurrentAction
in interface AbstractUser
newAction
- the currentAction to set@Setter(getter="getExtraColor") public void setExtraColor(Colour colour)
setExtraColor
in interface AbstractUser
colour
- WRITEMEAbstractUser.setExtraColor(org.starhope.appius.types.Colour)
@Setter(getter="getFacing") public void setFacing(String newFacing)
setFacing
in interface AbstractUser
newFacing
- the new facing directionAbstractUser.setFacing(java.lang.String)
@Setter(getter="getLocation") public void setLocation(Coord3D coord3d)
setLocation
in interface AbstractUser
coord3d
- new 3D coordinatesAbstractUser.setLocation(org.starhope.appius.geometry.Coord3D)
@Setter(getter="getRoom") public int setRoom(Room room)
setRoom
in interface AbstractUser
room
- the room in which the user must exist
@Setter(getter="getStartT") 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
when
- 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 AbstractUser
newTarget
- target coördinates@Setter(getter="getTravelRate") public void setTravelRate(double rate)
setTravelRate
in interface AbstractUser
rate
- WRITEMEAbstractUser.setTravelRate(double)
@Setter(getter="getTravelStart") public void setTravelStart(long l)
AbstractUser
setTravelStart
in interface AbstractUser
l
- WRITEMEAbstractUser.setTravelStart(long)
public void setVariable(Map.Entry<String,String> var)
setVariable
in interface HasVariables
var
- 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 HasVariables
setVariable
in interface AbstractUser
varName
- The name of the variablevarValue
- The valuepublic void setVariables(Map<String,String> map)
setVariables
in interface HasVariables
map
- WRITEMEHasVariables.setVariables(java.util.Map)
public void setVelocity(Vector2D velocity)
WRITEME: explain why? We do manipulate these values, regardless…
setVelocity
in interface Collidable
velocity
- WRITEMECollidable.setVelocity(Vector2D
velocity)
public boolean takeAttack(DamageTypeRanks attack)
takeAttack
in interface AbstractUser
attack
- WRITEME
public void unlockLocation()
AbstractUser
AbstractUser.getLocationForUpdate()
(q.v.)
unlockLocation
in interface AbstractUser
AbstractUser.unlockLocation()
public void updateWallet()
AbstractUser
updateWallet
in interface AbstractUser
AbstractUser.updateWallet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |