energyTycoon.customer
Class Customer

java.lang.Object
  extended by energyTycoon.customer.Customer
Direct Known Subclasses:
City, Industry

public abstract class Customer
extends java.lang.Object


Constructor Summary
Customer(int _id, Game ga, java.lang.String _name, int _settingPrice, int _developmentRate)
          Contructor of a customer with parameters
 
Method Summary
 void addProvider(Supplying supp)
          add a new provider
abstract  void compute(int time)
           
 City getCity()
           
abstract  java.lang.String getDefineMessage()
          Define the customer in a network string
 int getId()
          return object id
 Industry getIndustry()
           
 java.lang.String getName()
           
 boolean isCity()
           
 boolean isIndustry()
           
 void setName(java.lang.String nam)
          Set the value of name
 void setSettingPrice(int setting)
          Set the value of settingPrice
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Customer

public Customer(int _id,
                Game ga,
                java.lang.String _name,
                int _settingPrice,
                int _developmentRate)
Contructor of a customer with parameters

Parameters:
_id -
ga -
_name -
_settingPrice -
_developmentRate -
Method Detail

setName

public void setName(java.lang.String nam)
Set the value of name

Parameters:
nam -

setSettingPrice

public void setSettingPrice(int setting)
Set the value of settingPrice

Parameters:
setting -

compute

public abstract void compute(int time)

getName

public java.lang.String getName()

addProvider

public void addProvider(Supplying supp)
add a new provider

Parameters:
supp -

getDefineMessage

public abstract java.lang.String getDefineMessage()
Define the customer in a network string

Returns:
network customer definition

getId

public int getId()
return object id

Returns:

isCity

public boolean isCity()

isIndustry

public boolean isIndustry()

getCity

public City getCity()

getIndustry

public Industry getIndustry()