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, isYou
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class Identity
obj
- 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 Identity
true
if this is your corporation,
otherwise false
.equals(Object)
public java.util.Date lastUpdate() throws java.lang.Exception
null
if never updated.java.lang.Exception
public java.lang.String name() throws java.lang.Exception
java.lang.Exception
public Trader ceo() throws java.lang.Exception
java.lang.Exception
Trader
public int rank() throws java.lang.Exception
java.lang.Exception
public int relation() throws java.lang.Exception
java.lang.Exception
Swath.WITH_YOU
,
Swath.ALLIED
,
Swath.NEUTRAL
,
Swath.ENEMY
public boolean isOnline() throws java.lang.Exception
true
if someone is online,
otherwise false
.java.lang.Exception
public void dump() throws java.lang.Exception
java.lang.Exception