ch.sahits.game.openpatrician.model.personal
Interface IPersonalData

All Known Subinterfaces:
ISpouseData
All Known Implementing Classes:
PersonalData, SpouseData

public interface IPersonalData

Defining the personal data of a person.

Author:
Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 23, 2012

Method Summary
 int getAge(DateObject now)
          Compute the current age
 DateObject getBirthDate()
          Retrieve the birth date
 ICity getBirthPlace()
          Retrieve the birth place
 String getLastName()
          Get a players last name
 String getName()
          Retrieve the players name
 boolean isMale()
          Check if the player is male
 

Method Detail

getName

String getName()
Retrieve the players name

Returns:

getLastName

String getLastName()
Get a players last name

Returns:

isMale

boolean isMale()
Check if the player is male

Returns:

getBirthPlace

ICity getBirthPlace()
Retrieve the birth place

Returns:

getBirthDate

DateObject getBirthDate()
Retrieve the birth date

Returns:

getAge

int getAge(DateObject now)
Compute the current age

Parameters:
current - date
Returns:


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