|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.customer.Customer
public abstract class Customer
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 |
---|
public Customer(int _id, Game ga, java.lang.String _name, int _settingPrice, int _developmentRate)
_id
- ga
- _name
- _settingPrice
- _developmentRate
- Method Detail |
---|
public void setName(java.lang.String nam)
nam
- public void setSettingPrice(int setting)
setting
- public abstract void compute(int time)
public java.lang.String getName()
public void addProvider(Supplying supp)
supp
- public abstract java.lang.String getDefineMessage()
public int getId()
public boolean isCity()
public boolean isIndustry()
public City getCity()
public Industry getIndustry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |