Split out the "chat name" from the rest of the visible name usage - Unfortuantely, visible name is used by various game bits as a lookup, so sometimes we want to just override the name to display in chat without affecting those lookups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5431 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -94,7 +94,7 @@ public class BodyObject extends ClientObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name that should be displayed to other users and used for the chat system. The
|
||||
* Returns the name that should be displayed to other users. The
|
||||
* default is to use {@link #username}.
|
||||
*/
|
||||
public Name getVisibleName ()
|
||||
@@ -102,6 +102,15 @@ public class BodyObject extends ClientObject
|
||||
return username;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name that should be used for the chat system. The
|
||||
* default is to use {@link #username}.
|
||||
*/
|
||||
public Name getChatName ()
|
||||
{
|
||||
return getVisibleName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a blank occupant info instance that will used to publish information about the
|
||||
* various bodies occupying a place.
|
||||
|
||||
Reference in New Issue
Block a user