ch.sahits.game.openpatrician.model.personal.impl
Class SpouseData

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.personal.impl.PersonalData
      extended by ch.sahits.game.openpatrician.model.personal.impl.SpouseData
All Implemented Interfaces:
IPersonalData, ISpouseData

public class SpouseData
extends PersonalData
implements ISpouseData


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

popHer

private final int popHer

popYour

private final int popYour

conHer

private final int conHer

conYour

private final int conYour

portrait

private final BufferedImage portrait

nbChildren

private int nbChildren
Constructor Detail

SpouseData

public SpouseData(String name,
                  String lastName,
                  boolean male,
                  ICity birthplace,
                  DateObject birthDate,
                  int popHer,
                  int popYour,
                  int conHer,
                  int conYour,
                  BufferedImage portrait)
Method Detail

getPortrait

public BufferedImage getPortrait()
Description copied from interface: ISpouseData
Retrieve an optional portrait

Specified by:
getPortrait in interface ISpouseData
Returns:

getPopularityInHerHomeTown

public int getPopularityInHerHomeTown()
Description copied from interface: ISpouseData
Retrieve her popularity in her home town

Specified by:
getPopularityInHerHomeTown in interface ISpouseData
Returns:

getPopularityInYourHomeTown

public int getPopularityInYourHomeTown()
Description copied from interface: ISpouseData
Retrieve her popularity in your home town

Specified by:
getPopularityInYourHomeTown in interface ISpouseData
Returns:

getConnectionsInHerHomeTown

public int getConnectionsInHerHomeTown()
Description copied from interface: ISpouseData
Retrieve the connectivity to the counsilmen in her home town

Specified by:
getConnectionsInHerHomeTown in interface ISpouseData
Returns:

getConnectionsInYourHomeTown

public int getConnectionsInYourHomeTown()
Description copied from interface: ISpouseData
Retrieve the connectivity to the counsilmen in your home town

Specified by:
getConnectionsInYourHomeTown in interface ISpouseData
Returns:

getNumberOfChildren

public int getNumberOfChildren()
Description copied from interface: ISpouseData
Retrieve the number of children you have with the spouse

Specified by:
getNumberOfChildren in interface ISpouseData
Returns:

newChild

public void newChild()
Description copied from interface: ISpouseData
New child is born to you

Specified by:
newChild in interface ISpouseData


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.