|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.personal.impl.PersonalData
ch.sahits.game.openpatrician.model.personal.impl.SpouseData
public class SpouseData
| Field Summary | |
|---|---|
private int |
conHer
|
private int |
conYour
|
private int |
nbChildren
|
private int |
popHer
|
private int |
popYour
|
private BufferedImage |
portrait
|
| Constructor Summary | |
|---|---|
SpouseData(String name,
String lastName,
boolean male,
ICity birthplace,
DateObject birthDate,
int popHer,
int popYour,
int conHer,
int conYour,
BufferedImage portrait)
|
|
| Method Summary | |
|---|---|
int |
getConnectionsInHerHomeTown()
Retrieve the connectivity to the counsilmen in her home town |
int |
getConnectionsInYourHomeTown()
Retrieve the connectivity to the counsilmen in your home town |
int |
getNumberOfChildren()
Retrieve the number of children you have with the spouse |
int |
getPopularityInHerHomeTown()
Retrieve her popularity in her home town |
int |
getPopularityInYourHomeTown()
Retrieve her popularity in your home town |
BufferedImage |
getPortrait()
Retrieve an optional portrait |
void |
newChild()
New child is born to you |
| Methods inherited from class ch.sahits.game.openpatrician.model.personal.impl.PersonalData |
|---|
equals, getAge, getBirthDate, getBirthPlace, getLastName, getName, hashCode, isMale |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.game.openpatrician.model.personal.IPersonalData |
|---|
getAge, getBirthDate, getBirthPlace, getLastName, getName, isMale |
| Field Detail |
|---|
private final int popHer
private final int popYour
private final int conHer
private final int conYour
private final BufferedImage portrait
private int nbChildren
| Constructor Detail |
|---|
public SpouseData(String name,
String lastName,
boolean male,
ICity birthplace,
DateObject birthDate,
int popHer,
int popYour,
int conHer,
int conYour,
BufferedImage portrait)
| Method Detail |
|---|
public BufferedImage getPortrait()
ISpouseData
getPortrait in interface ISpouseDatapublic int getPopularityInHerHomeTown()
ISpouseData
getPopularityInHerHomeTown in interface ISpouseDatapublic int getPopularityInYourHomeTown()
ISpouseData
getPopularityInYourHomeTown in interface ISpouseDatapublic int getConnectionsInHerHomeTown()
ISpouseData
getConnectionsInHerHomeTown in interface ISpouseDatapublic int getConnectionsInYourHomeTown()
ISpouseData
getConnectionsInYourHomeTown in interface ISpouseDatapublic int getNumberOfChildren()
ISpouseData
getNumberOfChildren in interface ISpouseDatapublic void newChild()
ISpouseData
newChild in interface ISpouseData
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||