public final class Corporation extends Identity
| Modifier and Type | Method and Description |
|---|---|
Trader |
ceo()
Gets the current ceo of the corporation.
|
java.lang.Object |
clone() |
void |
dump()
Dumps the corporation info in the terminal window.
|
boolean |
equals(java.lang.Object obj)
Compares this corporation to another one.
|
int |
id()
Gets the corporation identification number.
|
boolean |
isOnline()
Indicates if some member of this corporation is currently online.
|
boolean |
isYourCorporation()
Indicates if this is your corporation or not.
|
java.util.Date |
lastUpdate()
Gets the timestamp when the corporation information was last updated.
|
java.lang.String |
name()
Gets the name of the corporation.
|
int |
rank()
Gets the current rank of the corporation.
|
int |
relation()
Gets the current relation between you and this corporation.
|
java.lang.String |
toString() |
getCorporation, getTrader, isCorporation, isRealPlayer, isTrader, isUnknown, isYoupublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class Identityobj - The other corporation.true if they are equal, otherwise false.isYourCorporation()public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
public int id()
public boolean isYourCorporation()
isYourCorporation in class Identitytrue if this is your corporation,
otherwise false.equals(Object)public java.util.Date lastUpdate()
throws java.lang.Exception
null if never updated.java.lang.Exceptionpublic java.lang.String name()
throws java.lang.Exception
java.lang.Exceptionpublic Trader ceo() throws java.lang.Exception
java.lang.ExceptionTraderpublic int rank()
throws java.lang.Exception
java.lang.Exceptionpublic int relation()
throws java.lang.Exception
java.lang.ExceptionSwath.WITH_YOU,
Swath.ALLIED,
Swath.NEUTRAL,
Swath.ENEMYpublic boolean isOnline()
throws java.lang.Exception
true if someone is online,
otherwise false.java.lang.Exceptionpublic void dump()
throws java.lang.Exception
java.lang.Exception