ch.sahits.game.openpatrician.model
Class AIPlayer

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.Player
      extended by ch.sahits.game.openpatrician.model.AIPlayer
All Implemented Interfaces:
IAIPlayer, IPlayer

 class AIPlayer
extends Player
implements IAIPlayer

Implementation of an artificial intelligence player.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Sep 17, 2011

Field Summary
private static RandomNameLoader firstNameLoader
           
private static RandomNameLoader lastNameLoader
           
 
Constructor Summary
AIPlayer(ICity homeTown, long cash, DateObject birthDate)
           
 
Method Summary
private static PersonalData getPersonalData(ICity homeTown, DateObject birthDate)
           
private static String getRandomFirstName()
           
private static String getRandomLastName()
           
 
Methods inherited from class ch.sahits.game.openpatrician.model.Player
addShip, equals, findBuildings, findBuildings, findTradingOffice, getCareerLevel, getCash, getCompany, getFleet, getHometown, getLastName, getName, getPersonalData, getRank, getSpouseData, hashCode, isMale, marry, removeShip, updateCash, updateRank, widow
 
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.IPlayer
addShip, findBuildings, findBuildings, findTradingOffice, getCareerLevel, getCash, getCompany, getFleet, getHometown, getLastName, getName, getPersonalData, getRank, getSpouseData, isMale, removeShip, updateCash, updateRank
 

Field Detail

firstNameLoader

private static RandomNameLoader firstNameLoader

lastNameLoader

private static RandomNameLoader lastNameLoader
Constructor Detail

AIPlayer

public AIPlayer(ICity homeTown,
                long cash,
                DateObject birthDate)
Method Detail

getPersonalData

private static PersonalData getPersonalData(ICity homeTown,
                                            DateObject birthDate)

getRandomFirstName

private static String getRandomFirstName()

getRandomLastName

private static String getRandomLastName()


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