|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Info
com.swath.Identity
com.swath.Corporation
This class represents a corporation in TW.
| Method Summary | |
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()
|
| Methods inherited from class com.swath.Identity |
getCorporation, getTrader, isCorporation, isRealPlayer, isTrader, isUnknown, isYou |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public java.lang.String toString()
public 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
clone in class Identityjava.lang.CloneNotSupportedExceptionpublic 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.Exception
public java.lang.String name()
throws java.lang.Exception
java.lang.Exception
public Trader ceo()
throws java.lang.Exception
java.lang.ExceptionTrader
public int rank()
throws java.lang.Exception
java.lang.Exception
public int relation()
throws java.lang.Exception
java.lang.ExceptionSwath.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||