-
Notifications
You must be signed in to change notification settings - Fork 1
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 #42 from martinjonsson01/12-build-using-resources
12 build using resources
- Loading branch information
Showing
30 changed files
with
1,087 additions
and
129 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.thebois.models; | ||
|
||
import java.util.Optional; | ||
|
||
import com.thebois.models.world.structures.IStructure; | ||
import com.thebois.models.world.structures.StructureType; | ||
|
||
/** | ||
* Allows for locating of specific types of objects. | ||
*/ | ||
public interface IStructureFinder { | ||
|
||
/** | ||
* Finds and returns the closest IStructure to the passed position. | ||
* | ||
* @param origin The position to find a structure closest to. | ||
* @param type The type of structure to find. | ||
* | ||
* @return The found IStructure. | ||
*/ | ||
Optional<IStructure> getNearbyStructureOfType(Position origin, StructureType type); | ||
|
||
/** | ||
* Finds and returns the closest incomplete IStructure to the passed position. | ||
* | ||
* @param origin The position to find an incomplete structure closest to. | ||
* | ||
* @return The found IStructure. | ||
*/ | ||
Optional<IStructure> getNearbyIncompleteStructure(Position origin); | ||
|
||
} |
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 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 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 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 |
---|---|---|
|
@@ -77,5 +77,4 @@ public interface IInventory extends Serializable { | |
* @return The counter. | ||
*/ | ||
int numberOf(ItemType itemType); | ||
|
||
} |
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
Oops, something went wrong.