Archived
1
0

-Supressed warnings about exceptions

Signed-off-by: Tony Grosinger <tony@grosinger.net>
This commit is contained in:
Tony Grosinger 2011-09-23 09:50:41 -07:00
parent 8b0ec5fcc0
commit 2004a1a636
19 changed files with 17 additions and 5 deletions

View File

@ -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;

View File

@ -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
}

View File

@ -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) {

View File

@ -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() {
}
}

View File

@ -1,5 +1,6 @@
package net.grosinger.nomads.exceptions;
@SuppressWarnings("serial")
public class BadRequestException extends Exception {
public BadRequestException(String message) {

View File

@ -1,5 +1,6 @@
package net.grosinger.nomads.exceptions;
@SuppressWarnings("serial")
public class FullInventoryException extends Exception {
public FullInventoryException() {

View File

@ -1,5 +1,6 @@
package net.grosinger.nomads.exceptions;
@SuppressWarnings("serial")
public class InsufficientFundsException extends Exception {
public InsufficientFundsException() {

View File

@ -1,5 +1,6 @@
package net.grosinger.nomads.exceptions;
@SuppressWarnings("serial")
public class InvalidUpgradeException extends Exception {
public InvalidUpgradeException(String reason){

View File

@ -1,5 +1,6 @@
package net.grosinger.nomads.exceptions;
@SuppressWarnings("serial")
public class ObjectReferenceOutdatedException extends Exception {
public ObjectReferenceOutdatedException() {