Browse Source

Unused methods removed

combat-2
MagicBot 1 year ago
parent
commit
c7b2245005
  1. 82
      src/engine/objects/Realm.java

82
src/engine/objects/Realm.java

@ -175,22 +175,6 @@ public class Realm { @@ -175,22 +175,6 @@ public class Realm {
return (this.rulingCityUUID != 0);
}
public float getMapR() {
return this.mapR;
}
public float getMapG() {
return this.mapG;
}
public float getMapB() {
return this.mapB;
}
public float getMapA() {
return this.mapA;
}
public boolean getCanBeClaimed() {
return this.canBeClaimed;
}
@ -211,37 +195,6 @@ public class Realm { @@ -211,37 +195,6 @@ public class Realm {
return City.getCity(this.rulingCityUUID);
}
public float getMapY1() {
return this.mapY1;
}
public float getMapX1() {
return this.mapX1;
}
public float getMapY2() {
return this.mapY2;
}
public float getMapX2() {
return this.mapX2;
}
public int getStretchX() {
return this.stretchX;
}
public int getStretchY() {
return this.stretchY;
}
public int getlocX() {
return this.locX;
}
public int getlocY() {
return this.locY;
}
// Call this after changing ownership before you serialize a realm
@ -370,13 +323,6 @@ public class Realm { @@ -370,13 +323,6 @@ public class Realm {
return charterType;
}
/**
* @param charterType the charterType to set
*/
public void setCharterType(int charterType) {
this.charterType = charterType;
}
public void abandonRealm() {
// Push event to warehouse
@ -417,32 +363,4 @@ public class Realm { @@ -417,32 +363,4 @@ public class Realm {
return hash;
}
public void setHash() {
this.hash = DataWarehouse.hasher.encrypt(this.realmID);
// Write hash to player character table
DataWarehouse.writeHash(Enum.DataRecordType.REALM, this.realmID);
}
/* *** Keeping around in case needed for server wipe or some other emergency
public static void backfillRealms() {
// Backfill realm records
for (Realm realm : _realms.values()) {
realm.setHash();
if ( (realm.isRuled() == true) &&
(DataWarehouse.recordExists(Enum.DataRecordType.REALM, realm.getRealmID()) == false)) {
RealmRecord realmRecord = RealmRecord.borrow(realm, Enum.RecordEventType.CAPTURE);
DataWarehouse.pushToWarehouse(realmRecord);
}
}
}
*/
}

Loading…
Cancel
Save