-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from Metaphoriker/trunk
first step to pave pathetic the path to universality (4.0)
- Loading branch information
Showing
131 changed files
with
2,354 additions
and
2,388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
/target/ | ||
target/ | ||
/.idea/ | ||
*.iml | ||
/PathingLegacy/target/ | ||
/PathingMain/target/ | ||
dependency-reduced-pom.xml | ||
/javadoc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# API | ||
The API of Pathetic. | ||
|
||
For a better overview [check the javadocs](https://javadocs.pathetic.ollieee.xyz/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/event/EventPublisher.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/event/PathingEvent.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/event/PathingFinishedEvent.java
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/event/PathingStartFindEvent.java
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/event/package-info.java
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/factory/PathfinderFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package de.metaphoriker.pathetic.api.factory; | ||
|
||
import de.metaphoriker.pathetic.api.pathing.Pathfinder; | ||
import de.metaphoriker.pathetic.api.pathing.configuration.PathfinderConfiguration; | ||
|
||
/** | ||
* A factory interface for creating {@link Pathfinder} instances. | ||
*/ | ||
public interface PathfinderFactory { | ||
|
||
/** | ||
* Creates a new {@link Pathfinder} instance with the given configuration. | ||
* | ||
* @param configuration The configuration for the pathfinder. | ||
* @return A new {@link Pathfinder} instance. | ||
*/ | ||
Pathfinder createPathfinder(PathfinderConfiguration configuration); | ||
|
||
/** | ||
* Creates a new {@link Pathfinder} instance with the given configuration and initializer. This method | ||
* first creates a pathfinder using the {@link #createPathfinder(PathfinderConfiguration)} method and then | ||
* initializes it using the provided {@link PathfinderInitializer}. | ||
* | ||
* @param configuration The configuration for the pathfinder. | ||
* @param initializer The initializer to use for initializing the pathfinder. | ||
* @return A new, initialized {@link Pathfinder} instance. | ||
*/ | ||
default Pathfinder createPathfinder(PathfinderConfiguration configuration, PathfinderInitializer initializer) { | ||
Pathfinder pathfinder = createPathfinder(configuration); | ||
initializer.initialize(pathfinder, configuration); | ||
return pathfinder; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
pathetic-api/src/main/java/de/metaphoriker/pathetic/api/factory/PathfinderInitializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package de.metaphoriker.pathetic.api.factory; | ||
|
||
import de.metaphoriker.pathetic.api.pathing.Pathfinder; | ||
import de.metaphoriker.pathetic.api.pathing.configuration.PathfinderConfiguration; | ||
|
||
/** | ||
* An interface for initializing {@link Pathfinder} instances. | ||
*/ | ||
public interface PathfinderInitializer { | ||
|
||
/** | ||
* Initializes the given {@link Pathfinder} with the given {@link PathfinderConfiguration}. | ||
* | ||
* @param pathfinder The pathfinder to initialize. | ||
* @param configuration The configuration for the pathfinder. | ||
*/ | ||
void initialize(Pathfinder pathfinder, PathfinderConfiguration configuration); | ||
} |
Oops, something went wrong.