-Supressed warnings about exceptions
Signed-off-by: Tony Grosinger <tony@grosinger.net>
This commit is contained in:
parent
8b0ec5fcc0
commit
2004a1a636
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -3,9 +3,9 @@ package net.grosinger.nomads;
|
||||
public class NeighborObjective implements GameObject {
|
||||
|
||||
private String name;
|
||||
int x;
|
||||
int y;
|
||||
Objective reference;
|
||||
private int x;
|
||||
private int y;
|
||||
private Objective reference;
|
||||
|
||||
public NeighborObjective(int x, int y, Objective obj) {
|
||||
reference = obj;
|
||||
|
@ -12,6 +12,6 @@ public class PoliceStation extends NeighborBuilding {
|
||||
super(x, y, name, building, drone);
|
||||
}
|
||||
|
||||
// TODO - Implement Police Station
|
||||
// There are no special actions performed from a Police Station
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,6 @@ import net.grosinger.nomads.Inventory;
|
||||
import net.grosinger.nomads.MoneyPile;
|
||||
import net.grosinger.nomads.Nomads;
|
||||
import net.grosinger.nomads.Objective;
|
||||
import net.grosinger.nomads.Upgrade;
|
||||
import net.grosinger.nomads.Upgrade.UpgradeType;
|
||||
import net.grosinger.nomads.exceptions.FullInventoryException;
|
||||
|
||||
@ -502,6 +501,7 @@ public class DroneListItem {
|
||||
* Finds who the drone wants to attack and attempts to perform attack.
|
||||
*/
|
||||
private void doAttack() {
|
||||
// TODO - Add damage, instead of just killing instantly
|
||||
NeighborDrone victimNeighbor = current.attack();
|
||||
|
||||
if (victimNeighbor == null) {
|
||||
|
@ -57,6 +57,9 @@ public class Police implements Drone {
|
||||
|
||||
@Override
|
||||
public EnumMove move() {
|
||||
if (DEBUGGINGALL) {
|
||||
System.out.println("Policeman about to move");
|
||||
}
|
||||
// A police drone will move semi-randomly, looking for neighbors.
|
||||
// Upon finding neighbors it will scan them to see if any of them are
|
||||
// wanted. If one is wanted it will start to pursue them and attempt to
|
||||
@ -79,4 +82,8 @@ public class Police implements Drone {
|
||||
// TODO - Implement Police Attack
|
||||
return null;
|
||||
}
|
||||
|
||||
public void requestBackup() {
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.grosinger.nomads.exceptions;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class BadRequestException extends Exception {
|
||||
|
||||
public BadRequestException(String message) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.grosinger.nomads.exceptions;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class FullInventoryException extends Exception {
|
||||
|
||||
public FullInventoryException() {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.grosinger.nomads.exceptions;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class InsufficientFundsException extends Exception {
|
||||
|
||||
public InsufficientFundsException() {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.grosinger.nomads.exceptions;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class InvalidUpgradeException extends Exception {
|
||||
|
||||
public InvalidUpgradeException(String reason){
|
||||
|
@ -1,5 +1,6 @@
|
||||
package net.grosinger.nomads.exceptions;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class ObjectReferenceOutdatedException extends Exception {
|
||||
|
||||
public ObjectReferenceOutdatedException() {
|
||||
|
Reference in New Issue
Block a user