public abstract class Identity extends Info implements java.lang.Cloneable
Trader
,
Corporation
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
clone() |
abstract boolean |
equals(java.lang.Object obj)
Compares this identity to another one.
|
Corporation |
getCorporation()
Returns the corporation.
|
Trader |
getTrader()
Returns the trader.
|
boolean |
isCorporation()
Indicates if the identity is a corporation or not.
|
boolean |
isRealPlayer()
Indicates if this is a real player or a computer controlled trader.
|
boolean |
isTrader()
Indicates if the identity is a trader or not.
|
boolean |
isUnknown()
Indicates if the identity is unknown or not.
|
boolean |
isYou()
Indicates if this is you or not.
|
boolean |
isYourCorporation()
Indicates if this is your corporation or not.
|
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other identity.true
if they are equal, otherwise false
.isYou()
,
isYourCorporation()
public abstract java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean isTrader()
true
if it is a trader, otherwise false
.isCorporation()
,
isUnknown()
,
getTrader()
public boolean isCorporation()
true
if it is a corporation, otherwise false
.isTrader()
,
isUnknown()
,
getCorporation()
public boolean isUnknown()
true
if it is unknown, otherwise false
.isTrader()
,
isCorporation()
public Trader getTrader()
null
if the identity is not a trader.isTrader()
,
getCorporation()
public Corporation getCorporation()
null
if the identity is not a corporation.isCorporation()
,
getTrader()
public boolean isYou()
true
if it is you, otherwise false
.isRealPlayer()
,
isYourCorporation()
,
equals(Object)
public boolean isRealPlayer()
true
if this is a real player, otherwise false
.isYou()
,
isYourCorporation()
,
equals(Object)
public boolean isYourCorporation()
true
if it is your corporation, otherwise false
.isYou()
,
isRealPlayer()
,
equals(Object)