|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hagenah.diplomacy.game.PersonInfo
public class PersonInfo
Information of a person in a game
| Constructor Summary | |
|---|---|
PersonInfo(Person person,
Phase firstphase,
java.lang.String name,
java.lang.String email)
Creates a new PersonInfo. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares two PersonInfos by Person and FirstPhase (Note: This is not consistent with equals) |
java.lang.String |
getEmail()
Returns the e-mail address |
Phase |
getFirstPhase()
Returns the first phase of the game where this person entered orders |
java.lang.String |
getName()
Returns the name of the person |
Person |
getPerson()
Return sthe person |
java.lang.String |
toString()
Returns a string e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PersonInfo(Person person,
Phase firstphase,
java.lang.String name,
java.lang.String email)
person - The personfirstphase - The first phase of the game where this person entered ordersname - The name of the personemail - The e-mail address| Method Detail |
|---|
public Person getPerson()
public Phase getFirstPhase()
public java.lang.String getName()
public java.lang.String getEmail()
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||