energyTycoon.player
Class PhysicPlayer

java.lang.Object
  extended by energyTycoon.player.Player
      extended by energyTycoon.player.FullPlayer
          extended by energyTycoon.player.PhysicPlayer

public class PhysicPlayer
extends FullPlayer


Field Summary
 ClientGame game
           
 
Constructor Summary
PhysicPlayer(int id, ClientGame game)
           
 
Method Summary
 void addPowerStation(PowerStation powerStation)
          add A power station
 void askBuild(PowerStationType building)
           
 void askChangeBuyPrice(NetworkDistantPlayer player, int price)
           
 void askChangeMaxBuy(NetworkDistantPlayer player, int qt)
           
 void askChangeMaximumStock(int qt)
           
 void askChangeMaxSell(NetworkDistantPlayer player, int qt)
           
 void askChangeMinimumStock(int qt)
           
 void askChangeResearchBudget(int budget)
           
 void askChangeSellPrice(NetworkDistantPlayer player, int price)
           
 void askCitySetting(City city)
           
 void askEraseBuilding(PowerStation station)
           
 void askQuitCity(City city)
           
 void changeExchangeMinAndMax(int min, int max)
          change minimum and maximum energy stock
 void delete()
           
 java.util.List<PowerStation> getAllStations()
          get all player stations
 void quit()
           
 
Methods inherited from class energyTycoon.player.FullPlayer
addPowerStationGeneration, addPowerStationGroup, askChangeClientPrice, build, changeMoney, citySetting, deletePowerStation, deletePowerStationsInRemoveList, deleteStation, eraseBuilding, explodeStation, getAllAvailablePowerStationGroup, getAllAvailablePowerStationType, getBattery, getGroupMaxGenerationAvailable, getMaximumStock, getMinimumStock, getMoney, getNbPowerStationByType, getPowerStation, getResearchKnownEnergyBudget, getResearchNewEnergyBudget, getTotalPollution, newMessage, quitCity, setMaximumStock, setMinimumStock, setMoney, setResearchBudget
 
Methods inherited from class energyTycoon.player.Player
getEcology, getId, getName, setEcology
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

game

public ClientGame game
Constructor Detail

PhysicPlayer

public PhysicPlayer(int id,
                    ClientGame game)
Method Detail

askBuild

public void askBuild(PowerStationType building)

quit

public void quit()

askChangeResearchBudget

public void askChangeResearchBudget(int budget)

askEraseBuilding

public void askEraseBuilding(PowerStation station)

askCitySetting

public void askCitySetting(City city)

askQuitCity

public void askQuitCity(City city)

askChangeMinimumStock

public void askChangeMinimumStock(int qt)

askChangeMaximumStock

public void askChangeMaximumStock(int qt)

askChangeSellPrice

public void askChangeSellPrice(NetworkDistantPlayer player,
                               int price)

askChangeBuyPrice

public void askChangeBuyPrice(NetworkDistantPlayer player,
                              int price)

askChangeMaxSell

public void askChangeMaxSell(NetworkDistantPlayer player,
                             int qt)

askChangeMaxBuy

public void askChangeMaxBuy(NetworkDistantPlayer player,
                            int qt)

addPowerStation

public void addPowerStation(PowerStation powerStation)
add A power station

Parameters:
powerStation -

getAllStations

public java.util.List<PowerStation> getAllStations()
get all player stations

Returns:
power station list

changeExchangeMinAndMax

public void changeExchangeMinAndMax(int min,
                                    int max)
change minimum and maximum energy stock

Overrides:
changeExchangeMinAndMax in class FullPlayer
Parameters:
min -
max -

delete

public void delete()
Specified by:
delete in class FullPlayer