Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
+34 -35
View File
@@ -8,50 +8,49 @@ import engine.objects.Building;
import engine.objects.PlayerCharacter;
public class ShowOffsetCmd extends AbstractDevCmd {
public ShowOffsetCmd() {
public ShowOffsetCmd() {
super("showoffset");
}
// AbstractDevCmd Overridden methods
@Override
protected void _doCmd(PlayerCharacter pc, String[] args,
AbstractGameObject target) {
// AbstractDevCmd Overridden methods
Building targetBuilding;
String outString;
Vector3fImmutable offset;
String newline = "\r\n ";
targetBuilding = (Building)target;
if (targetBuilding.getObjectType() != GameObjectType.Building) {
throwbackInfo(pc, "showgate: target must be an Building");
return;
}
offset = pc.getLoc().subtract(targetBuilding.getLoc());
outString = "Location: " + pc.getLoc().x + "x " + pc.getLoc().z + 'y';
outString += newline;
outString += "Offset: " + offset.x + "x " + offset.y + 'y';
throwbackInfo(pc, outString);
@Override
protected void _doCmd(PlayerCharacter pc, String[] args,
AbstractGameObject target) {
Building targetBuilding;
String outString;
Vector3fImmutable offset;
String newline = "\r\n ";
targetBuilding = (Building) target;
if (targetBuilding.getObjectType() != GameObjectType.Building) {
throwbackInfo(pc, "showgate: target must be an Building");
return;
}
@Override
protected String _getHelpString() {
return "Shows offset to current building";
}
offset = pc.getLoc().subtract(targetBuilding.getLoc());
@Override
protected String _getUsageString() {
outString = "Location: " + pc.getLoc().x + "x " + pc.getLoc().z + 'y';
outString += newline;
outString += "Offset: " + offset.x + "x " + offset.y + 'y';
throwbackInfo(pc, outString);
}
@Override
protected String _getHelpString() {
return "Shows offset to current building";
}
@Override
protected String _getUsageString() {
return "Shows offset to current building";
}
}
}