This repository was archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Market
Matthew Pohlmann edited this page Jan 1, 2014
·
1 revision
####Description A Market in SimCity201. People can buy items and cars.
####Class Signature
public class Market extends Structure {}####Data
MarketManagerRole manager; // This market's manager. The market isn't open if no manager is present
List<MarketEmployeeRole> marketEmployees; // The market's list of employees.
int bankAccountNumber; /* This Restaurant's account number at SimCity Bank (assigned when first making
a transaction at a bank */
boolean isOpen; // Whether this Restaurant is open or closed to new Customers####Constructors
public Market(int x, int y, int width, int height) {
super(x, y, width, height);
}####Methods
// Returns this Market's manager if someone is currently acting as a Manager, null otherwise
public MarketManagerRole getManager() {
return (manager.getPerson() != null) ? manager : null;
}// Returns a list of this Markets's employees
public List<MarketEmployeeRole> getEmployees() {
return marketEmployees;
}// Sets this Market's bank account number
public void setBankAccountNumber(int newNumber) {
bankAccountNumber = newNumber;
}// Sets whether this Market is open or closed
public void setOpen(boolean open) {
isOpen = open;
}// Returns whether or not this Market is open
public boolean getOpen() {
return isOpen;
}