Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
Building.java
Go to the documentation of this file.
1 package refactored;
2 
3 
4 public class Building extends MapObject {
5  private short playerID;
6  private int pollution;
7  private int population;
8  private short level;
9 
10  // CONSTRUCTORS
11  public Building() {
12  // short globalPlayerID = 2;
13  this((short) 2);
14  }
15 
16  public Building(short playerID) {
17  this.playerID = playerID;
18  this.level = 0;
19  this.population = 0;
20  }
21 
22 
23  // METHODS
24 
25  // GETTERS & SETTERS
26  public short getPlayerID() {
27  return playerID;
28  }
29 
30  public void setPlayerID(short playerID) {
31  this.playerID = playerID;
32  }
33 
34  public short getLevel() {
35  return level;
36  }
37 
38  public void setLevel(short level) {
39  this.level = level;
40  }
41 
42  public int getPollution() {
43  return pollution;
44  }
45 
46  public void setPollution(int pollution) {
47  this.pollution = pollution;
48  }
49 
50  public int getPopulation() {
51  return population;
52  }
53 
54  public void setPopulation(int population) {
55  this.population = population;
56  }
57 
58 }