init repo

main
Brett 2023-03-01 12:38:32 -05:00
commit 9c6e536bff
72 changed files with 72353 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
Assignment 1/Submission.zip Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -0,0 +1,25 @@
package game;
import player.Player;
public class GameEngine {
private Player player;
private int pillageFactor;
private int currentTime;
public Map map;
public void attackVIllage(Map map) {
}
public Map generateMap() {
return null;
}
public void getScore(Map map) {
}
}

View File

@ -0,0 +1,36 @@
package game;
import java.util.List;
import gameobjects.Village_Hall;
import gameobjects.Building;
import gameobjects.Tile;
import gameobjects.Infantry;
import gameobjects.Inhabitant;
public class Map {
private Village_Hall townHall;
private int guardTime;
private List<Building> contains;
public List<Inhabitant> inhabitants;
public void move(Infantry i, Tile t) {
}
public void inRange(Infantry i, Building b) {
}
public void build(Village_Hall hall, Tile t, Building b) {
}
public int getGuardTime() {
return guardTime;
}
public void setGuardTime() {
}
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Archer extends Infantry {
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class ArcherTower extends DefenseBuilding {
}

View File

@ -0,0 +1,50 @@
package gameobjects;
import java.util.List;
public abstract class Building {
private static int level;
private int health;
private static Stage stages;
private int goldCost;
private int ironCost;
private int woodCost;
private int buildTime;
public List<Stage> stage;
public Tile tile;
public List<Inhabitant> inhabitant;
public int getLevel() {
return level;
}
public int getHealth() {
return health;
}
public int getCost(String type) {
return 0;
}
public int getUpgradeCost() {
return 0;
}
public void upgrade() {
}
public int getBuildTime() {
return 0;
}
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Cannon extends DefenseBuilding {
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Catapult extends Infantry {
}

View File

@ -0,0 +1,13 @@
package gameobjects;
import Integer;
public class Collector {
private Integer averageCollectionRate;
public int getCollectionRate() {
return averageCollectionRate;
}
}

View File

@ -0,0 +1,13 @@
package gameobjects;
public class DefenseBuilding extends Building {
public int damage;
public int range;
public void attack(Infantry attacker) {
}
}

View File

@ -0,0 +1,15 @@
package gameobjects;
class DefenseStage extends Stage {
protected int dDamge;
protected int dRange;
public void getDamageChange() {
}
public void getRangeChange() {
}
}

View File

@ -0,0 +1,9 @@
package gameobjects;
public class Farm extends ResourceBuidling {
public int getPopulationContribution() {
return 0;
}
}

View File

@ -0,0 +1,7 @@
package gameobjects;
public class GoldMine extends ResourceBuidling {
public static String resource = "good";
}

View File

@ -0,0 +1,23 @@
package gameobjects;
public abstract class Infantry {
private int health;
private int damage;
private int range;
public void attack(Building b) {
}
public void getHealth() {
}
public void getDamage() {
}
public void getRange() {
}
}

View File

@ -0,0 +1,14 @@
package gameobjects;
import game.Map;
public interface Inhabitant {
public Map map = null;
public Building building = null;
public void move(Tile t);
public void getPosition();
}

View File

@ -0,0 +1,7 @@
package gameobjects;
public class IronMine extends ResourceBuidling {
public static String resource = "iron";
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Knight extends Infantry {
}

View File

@ -0,0 +1,11 @@
package gameobjects;
public class LumberMine extends ResourceBuidling {
public static String resource = "wood";
public abstract void harvest(Village_Hall hall) {
}
}

View File

@ -0,0 +1,13 @@
package gameobjects;
import String;
public abstract class ResourceBuidling extends Building {
public static String resource;
private int harvest_rate;
public abstract void harvest(Village_Hall hall);
}

View File

@ -0,0 +1,11 @@
package gameobjects;
public class ResourceStage extends Stage {
protected int harvestRateIncrease;
public int getHarvestRateIncrease() {
return harvestRateIncrease;
}
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Soldier extends Infantry {
}

View File

@ -0,0 +1,34 @@
package gameobjects;
abstract class Stage {
protected int dHealth;
protected int goldCost;
protected int requiredVillageLevel;
protected int upgradeTime;
protected int ironCost;
protected int woodCost;
public Building building;
public void getHealthChange() {
}
public int getCost(String type) {
return 0;
}
public int getRequiredVillageLevel() {
return requiredVillageLevel;
}
public int getUpgradeTime() {
return upgradeTime;
}
}

View File

@ -0,0 +1,13 @@
package gameobjects;
import java.util.List;
public class Tile {
public int x;
public int y;
public List<Building> building;
}

View File

@ -0,0 +1,23 @@
package gameobjects;
class VillageStage extends Stage {
protected int goldCapacityIncrease;
protected int ironCapacityIncrease;
protected int woodCapacityIncrease;
public int getWoodCapacityIncrease() {
return goldCapacityIncrease;
}
public int getIronCapacityIncrease() {
return ironCapacityIncrease;
}
public int getWoodCapacityIncrease() {
return woodCapacityIncrease;
}
}

View File

@ -0,0 +1,23 @@
package gameobjects;
public class Village_Hall extends Building {
private int goldCapacity;
private int ironCapacity;
private int woodCapacity;
public int getGoldCapacity() {
return goldCapacity;
}
public int getIronCapacity() {
return ironCapacity;
}
public int getWoodCapacity() {
return woodCapacity;
}
}

View File

@ -0,0 +1,11 @@
package gameobjects;
public class Worker {
private boolean currentlyBuilding;
public boolean isCurrentlyBuilding() {
return currentlyBuilding;
}
}

View File

@ -0,0 +1,11 @@
package player;
public class Player {
public int currentGold;
public int currentIron;
public int currentWood;
}

View File

@ -0,0 +1,4 @@
package userinterface;
public class GuiManager {
}

View File

@ -0,0 +1,4 @@
#!/bin/bash
mkdir compiled
cd code
javac -verbose -d ../compiled game/GameEngine.java

View File

@ -0,0 +1,25 @@
package game;
import player.Player;
public class GameEngine {
private Player player;
private int pillageFactor;
private int currentTime;
public Map map;
public void attackVIllage(Map map) {
}
public Map generateMap() {
return null;
}
public void getScore(Map map) {
}
}

View File

@ -0,0 +1,36 @@
package game;
import java.util.List;
import gameobjects.Village_Hall;
import gameobjects.Building;
import gameobjects.Tile;
import gameobjects.Infantry;
import gameobjects.Inhabitant;
public class Map {
private Village_Hall townHall;
private int guardTime;
private List<Building> contains;
public List<Inhabitant> inhabitants;
public void move(Infantry i, Tile t) {
}
public void inRange(Infantry i, Building b) {
}
public void build(Village_Hall hall, Tile t, Building b) {
}
public int getGuardTime() {
return guardTime;
}
public void setGuardTime() {
}
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Archer extends Infantry {
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class ArcherTower extends DefenseBuilding {
}

View File

@ -0,0 +1,50 @@
package gameobjects;
import java.util.List;
public abstract class Building {
private static int level;
private int health;
private static Stage stages;
private int goldCost;
private int ironCost;
private int woodCost;
private int buildTime;
public List<Stage> stage;
public Tile tile;
public List<Inhabitant> inhabitant;
public int getLevel() {
return level;
}
public int getHealth() {
return health;
}
public int getCost(String type) {
return 0;
}
public int getUpgradeCost() {
return 0;
}
public void upgrade() {
}
public int getBuildTime() {
return 0;
}
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Cannon extends DefenseBuilding {
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Catapult extends Infantry {
}

View File

@ -0,0 +1,13 @@
package gameobjects;
import Integer;
public class Collector {
private Integer averageCollectionRate;
public int getCollectionRate() {
return averageCollectionRate;
}
}

View File

@ -0,0 +1,13 @@
package gameobjects;
public class DefenseBuilding extends Building {
public int damage;
public int range;
public void attack(Infantry attacker) {
}
}

View File

@ -0,0 +1,15 @@
package gameobjects;
class DefenseStage extends Stage {
protected int dDamge;
protected int dRange;
public void getDamageChange() {
}
public void getRangeChange() {
}
}

View File

@ -0,0 +1,9 @@
package gameobjects;
public class Farm extends ResourceBuidling {
public int getPopulationContribution() {
return 0;
}
}

View File

@ -0,0 +1,7 @@
package gameobjects;
public class GoldMine extends ResourceBuidling {
public static String resource = "good";
}

View File

@ -0,0 +1,23 @@
package gameobjects;
public abstract class Infantry {
private int health;
private int damage;
private int range;
public void attack(Building b) {
}
public void getHealth() {
}
public void getDamage() {
}
public void getRange() {
}
}

View File

@ -0,0 +1,14 @@
package gameobjects;
import game.Map;
public interface Inhabitant {
public Map map = null;
public Building building = null;
public void move(Tile t);
public void getPosition();
}

View File

@ -0,0 +1,7 @@
package gameobjects;
public class IronMine extends ResourceBuidling {
public static String resource = "iron";
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Knight extends Infantry {
}

View File

@ -0,0 +1,11 @@
package gameobjects;
public class LumberMine extends ResourceBuidling {
public static String resource = "wood";
public abstract void harvest(Village_Hall hall) {
}
}

View File

@ -0,0 +1,13 @@
package gameobjects;
import String;
public abstract class ResourceBuidling extends Building {
public static String resource;
private int harvest_rate;
public abstract void harvest(Village_Hall hall);
}

View File

@ -0,0 +1,11 @@
package gameobjects;
public class ResourceStage extends Stage {
protected int harvestRateIncrease;
public int getHarvestRateIncrease() {
return harvestRateIncrease;
}
}

View File

@ -0,0 +1,4 @@
package gameobjects;
public class Soldier extends Infantry {
}

View File

@ -0,0 +1,34 @@
package gameobjects;
abstract class Stage {
protected int dHealth;
protected int goldCost;
protected int requiredVillageLevel;
protected int upgradeTime;
protected int ironCost;
protected int woodCost;
public Building building;
public void getHealthChange() {
}
public int getCost(String type) {
return 0;
}
public int getRequiredVillageLevel() {
return requiredVillageLevel;
}
public int getUpgradeTime() {
return upgradeTime;
}
}

View File

@ -0,0 +1,13 @@
package gameobjects;
import java.util.List;
public class Tile {
public int x;
public int y;
public List<Building> building;
}

View File

@ -0,0 +1,23 @@
package gameobjects;
class VillageStage extends Stage {
protected int goldCapacityIncrease;
protected int ironCapacityIncrease;
protected int woodCapacityIncrease;
public int getWoodCapacityIncrease() {
return goldCapacityIncrease;
}
public int getIronCapacityIncrease() {
return ironCapacityIncrease;
}
public int getWoodCapacityIncrease() {
return woodCapacityIncrease;
}
}

View File

@ -0,0 +1,23 @@
package gameobjects;
public class Village_Hall extends Building {
private int goldCapacity;
private int ironCapacity;
private int woodCapacity;
public int getGoldCapacity() {
return goldCapacity;
}
public int getIronCapacity() {
return ironCapacity;
}
public int getWoodCapacity() {
return woodCapacity;
}
}

View File

@ -0,0 +1,11 @@
package gameobjects;
public class Worker {
private boolean currentlyBuilding;
public boolean isCurrentlyBuilding() {
return currentlyBuilding;
}
}

View File

@ -0,0 +1,11 @@
package player;
public class Player {
public int currentGold;
public int currentIron;
public int currentWood;
}

View File

@ -0,0 +1,4 @@
package userinterface;
public class GuiManager {
}

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB