-
Notifications
You must be signed in to change notification settings - Fork 5
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 #129 from TiagoFar78/chestsConsideringLocations
Chests Considering Location
- Loading branch information
Showing
10 changed files
with
386 additions
and
143 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 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
24 changes: 24 additions & 0 deletions
24
src/main/java/net/tiagofar78/prisonescape/game/prisonbuilding/regions/ComplexRegion.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,24 @@ | ||
package net.tiagofar78.prisonescape.game.prisonbuilding.regions; | ||
|
||
import net.tiagofar78.prisonescape.game.prisonbuilding.PrisonEscapeLocation; | ||
|
||
import java.util.List; | ||
|
||
public class ComplexRegion extends Region { | ||
|
||
public ComplexRegion(String name, boolean isRestricted, List<PrisonEscapeLocation> locations) { | ||
super(name, isRestricted); | ||
} | ||
|
||
@Override | ||
public boolean contains(PrisonEscapeLocation loc) { | ||
// TODO | ||
return false; | ||
} | ||
|
||
@Override | ||
public void add(PrisonEscapeLocation location) { | ||
// TODO | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/net/tiagofar78/prisonescape/game/prisonbuilding/regions/Locatable.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,9 @@ | ||
package net.tiagofar78.prisonescape.game.prisonbuilding.regions; | ||
|
||
import net.tiagofar78.prisonescape.game.prisonbuilding.PrisonEscapeLocation; | ||
|
||
public interface Locatable { | ||
|
||
public boolean contains(PrisonEscapeLocation loc); | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/net/tiagofar78/prisonescape/game/prisonbuilding/regions/Region.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,28 @@ | ||
package net.tiagofar78.prisonescape.game.prisonbuilding.regions; | ||
|
||
import net.tiagofar78.prisonescape.game.prisonbuilding.PrisonEscapeLocation; | ||
|
||
public abstract class Region implements Locatable { | ||
|
||
private String _name; | ||
private boolean _isRestricted; | ||
|
||
public Region(String name, boolean isRestricted) { | ||
_name = name; | ||
_isRestricted = isRestricted; | ||
} | ||
|
||
public String getName() { | ||
return _name; | ||
} | ||
|
||
public boolean isRestricted() { | ||
return _isRestricted; | ||
} | ||
|
||
public abstract void add(PrisonEscapeLocation location); | ||
|
||
@Override | ||
public abstract boolean contains(PrisonEscapeLocation loc); | ||
|
||
} |
Oops, something went wrong.