main
Brett 2023-03-02 13:01:41 -05:00
parent 5b516418ed
commit 9a7aa7c6b3
19 changed files with 292 additions and 286 deletions

View File

@ -50,7 +50,9 @@ public abstract class Building {
this.health = health;
}
public void setStage(Stage stage) {this.stage = stage; }
public void setStage(Stage stage) {
this.stage = stage;
}
public void addInhabitant(Inhabitant newMember) {
inhabitants.add(newMember);

View File

@ -1,4 +1,5 @@
package ca.cosc3p91.a2.gameobjects;
import ca.cosc3p91.a2.game.Map;
public interface Inhabitant {
@ -8,10 +9,13 @@ public interface Inhabitant {
int lvl = 1;
void move(Tile t);
void getPosition();
default int getLevel() {
return lvl;
}
default int setLevel(int level) {
return lvl;
}

View File

@ -7,6 +7,7 @@ public class Worker implements Inhabitant {
public void set_IsBuilding(boolean state) {
currentlyBuilding = state;
}
public boolean isCurrentlyBuilding() {
return currentlyBuilding;
}

View File

@ -3,5 +3,4 @@ package ca.cosc3p91.a2.player;
public class Player {
}