Archived
1
0

-Started deciding on how police will function

Signed-off-by: Tony Grosinger <tony@grosinger.net>
This commit is contained in:
Tony Grosinger 2011-08-30 15:39:28 -07:00
parent 3bd4981079
commit 92387b4759
2 changed files with 26 additions and 9 deletions

View File

@ -3,19 +3,22 @@ package net.grosinger.nomads;
import net.grosinger.nomads.DroneListItem.EnumMove; import net.grosinger.nomads.DroneListItem.EnumMove;
/** /**
* Enforcer of the law. Has the ability to arrest drones that are wanted. * Enforcer of the law. Has the ability to arrest drones that are wanted. Police
* Police have a move speed of 2 squares/turn and get faster each time they catch a criminal. * have a move speed of 2 squares/turn and get faster each time they catch a
* Captured money and objects are turned into money which funds the police department. * criminal.
*
* (Possible Idea) Captured money and objects are turned into money which funds
* the police department.
* *
* Police have a visible distance of 2X BASE_VISIBLEDISTANCE * Police have a visible distance of 2X BASE_VISIBLEDISTANCE
* *
*/ */
public class Police implements Drone{ public class Police implements Drone {
// TODO - Implement Police // TODO - Implement Police
private static final boolean DEBUGGINGALL = true; private static final boolean DEBUGGINGALL = true;
//Do not change these // Do not change these
private String name; private String name;
private String UID; private String UID;
@ -53,21 +56,35 @@ public class Police implements Drone{
@Override @Override
public EnumMove move() { public EnumMove 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
// discern their direction of travel. Based on direction of travel it
// will call in reinforcements that are in the area.
// TODO - Implement Police Move
return null; return null;
} }
@Override @Override
public Neighbor steal() { public Neighbor steal() {
// This method is not used by the police drones
return null; return null;
} }
@Override @Override
public Neighbor attack() { public Neighbor attack() {
// When attacked, a police drone will automatically retaliate, dealing
// 2x the damage that was done to itself.
// TODO - Implement Police Attack
return null; return null;
} }
@Override @Override
public Upgrade upgrade() { public Upgrade upgrade() {
// Police drones do not have upgrades. They will automatically upgrade
// throughout the game based on time played.
// TODO - Implement Police Upgrade
return null; return null;
} }
} }