Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/IslandSimulationPavel.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

204 changes: 204 additions & 0 deletions .idea/intellij-javadocs-4.0.1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added island/IslandAbstractionDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion island/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Optional task components:
- Introduce other factors influencing the simulation:
- More animal species
- Different plant species
- Custom behavior for animal groups (e.g., wolves hunting and moving in packs)
- Custom behavior for animal EOrganisms (e.g., wolves hunting and moving in packs)
- Terrain features, including rivers that restrict certain animal movements

About parameters (if you choose to implement):
Expand Down
26 changes: 7 additions & 19 deletions island/src/main/java/org/island/Main.java
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@
package org.island;

import org.island.entity.Simulation;
import org.island.location.Island;
import org.island.repo.MapCreator;
import org.island.repo.factory.EntityFactory;
import org.island.repo.factory.Factory;
import org.island.services.SimulationWorkerService;
import org.island.settings.Config;
import org.island.view.ConsoleView;
import org.island.view.View;

import org.island.initializer.Initializer;
import org.island.simulation.Simulation;

public class Main {
public static void main(String[] args) {
System.out.printf("Hello and Welcome to the Island Simulation!");

Config config = Config.getConfig();
Factory entityFactory = new EntityFactory();
MapCreator mapCreator = new MapCreator(entityFactory);
Island island = mapCreator.createIsland(config);
View view = new ConsoleView(island, entityFactory);
Simulation game = new Simulation(island, entityFactory, view);
SimulationWorkerService gameWorker = new SimulationWorkerService(game);
gameWorker.start();
System.out.println("Hello and Welcome to the Island Simulation!");

Initializer initializer = new Initializer();
Simulation simulation = initializer.initialize();

simulation.run();
}
}
7 changes: 0 additions & 7 deletions island/src/main/java/org/island/abilities/Eatable.java

This file was deleted.

7 changes: 0 additions & 7 deletions island/src/main/java/org/island/abilities/Movable.java

This file was deleted.

7 changes: 0 additions & 7 deletions island/src/main/java/org/island/abilities/Reproducible.java

This file was deleted.

Loading