Allow subclasses to translate the status if a nonstandard one is in use.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4911 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-12-19 19:14:47 +00:00
parent 5e2a70bf5c
commit dd8fcfc0a7
2 changed files with 20 additions and 2 deletions
@@ -222,10 +222,19 @@ public class BodyObject extends ClientObject
{
buf.append(getOid());
if (status != OccupantInfo.ACTIVE) {
buf.append(" ").append(OccupantInfo.X_STATUS[status]);
buf.append(" ").append(getStatusTranslation());
}
}
/**
* Get a translation suffix for this occupant's status.
* Can be overridden to translate nonstandard statuses.
*/
protected String getStatusTranslation ()
{
return OccupantInfo.X_STATUS[status];
}
/** The default (no tokens) access control. */
protected static final TokenRing EMPTY_TOKENS = new TokenRing();
}