Removing some deprecated stuff and fixing some ASCII art.
This commit is contained in:
parent
27cee7d6f7
commit
57f5372d43
@ -296,9 +296,9 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Implement a has enough feature.
|
// TODO: Implement a has enough feature.
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Power
|
// Power
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
public double getPower()
|
public double getPower()
|
||||||
{
|
{
|
||||||
if (this.getFlag(FFlag.INFPOWER))
|
if (this.getFlag(FFlag.INFPOWER))
|
||||||
@ -361,9 +361,9 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
return this.getLandRounded() > this.getPowerRounded();
|
return this.getLandRounded() > this.getPowerRounded();
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------
|
// -------------------------------------------- //
|
||||||
// FPlayers
|
// FPlayers
|
||||||
// -------------------------------
|
// -------------------------------------------- //
|
||||||
|
|
||||||
// maintain the reference list of FPlayers in this faction
|
// maintain the reference list of FPlayers in this faction
|
||||||
public void refreshFPlayers()
|
public void refreshFPlayers()
|
||||||
@ -504,9 +504,9 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Messages
|
// Messages
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
public void msg(String message, Object... args)
|
public void msg(String message, Object... args)
|
||||||
{
|
{
|
||||||
message = Factions.get().txt.parse(message, args);
|
message = Factions.get().txt.parse(message, args);
|
||||||
@ -533,53 +533,9 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Deprecated
|
|
||||||
//----------------------------------------------//
|
|
||||||
/**
|
|
||||||
* @deprecated As of release 1.7, replaced by {@link #getFPlayerLeader()}
|
|
||||||
*/
|
|
||||||
public FPlayer getFPlayerAdmin()
|
|
||||||
{
|
|
||||||
return getFPlayerLeader();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of release 1.7, replaced by {@link #getFlag()}
|
|
||||||
*/
|
|
||||||
public boolean isPeaceful()
|
|
||||||
{
|
|
||||||
return this.getFlag(FFlag.PEACEFUL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of release 1.7, replaced by {@link #getFlag()}
|
|
||||||
*/
|
|
||||||
public boolean getPeacefulExplosionsEnabled()
|
|
||||||
{
|
|
||||||
return this.getFlag(FFlag.EXPLOSIONS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of release 1.7, replaced by {@link #getFlag()}
|
|
||||||
*/
|
|
||||||
public boolean noExplosionsInTerritory()
|
|
||||||
{
|
|
||||||
return ! this.getFlag(FFlag.EXPLOSIONS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of release 1.7, replaced by {@link #getFlag()}
|
|
||||||
*/
|
|
||||||
public boolean isSafeZone()
|
|
||||||
{
|
|
||||||
return ! this.getFlag(FFlag.EXPLOSIONS);
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------//
|
|
||||||
// Persistance and entity management
|
// Persistance and entity management
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void postDetach()
|
public void postDetach()
|
||||||
|
@ -43,9 +43,9 @@ public class FactionColl extends EntityCollection<Faction>
|
|||||||
{
|
{
|
||||||
if ( ! super.loadFromDisc()) return false;
|
if ( ! super.loadFromDisc()) return false;
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Create Default Special Factions
|
// Create Default Special Factions
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
if ( ! this.exists("0"))
|
if ( ! this.exists("0"))
|
||||||
{
|
{
|
||||||
Faction faction = this.create("0");
|
Faction faction = this.create("0");
|
||||||
@ -69,9 +69,9 @@ public class FactionColl extends EntityCollection<Faction>
|
|||||||
this.setFlagsForWarZone(faction);
|
this.setFlagsForWarZone(faction);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Fix From Old Formats
|
// Fix From Old Formats
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
Faction wild = this.get("0");
|
Faction wild = this.get("0");
|
||||||
Faction safeZone = this.get("-1");
|
Faction safeZone = this.get("-1");
|
||||||
Faction warZone = this.get("-2");
|
Faction warZone = this.get("-2");
|
||||||
@ -99,9 +99,9 @@ public class FactionColl extends EntityCollection<Faction>
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Flag Setters
|
// Flag Setters
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
public void setFlagsForWilderness(Faction faction)
|
public void setFlagsForWilderness(Faction faction)
|
||||||
{
|
{
|
||||||
faction.setOpen(false);
|
faction.setOpen(false);
|
||||||
@ -172,9 +172,9 @@ public class FactionColl extends EntityCollection<Faction>
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// GET
|
// GET
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Faction get(String id)
|
public Faction get(String id)
|
||||||
@ -194,9 +194,9 @@ public class FactionColl extends EntityCollection<Faction>
|
|||||||
return this.get("0");
|
return this.get("0");
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
// Faction tag
|
// Faction tag
|
||||||
//----------------------------------------------//
|
// -------------------------------------------- //
|
||||||
|
|
||||||
public static ArrayList<String> validateTag(String str)
|
public static ArrayList<String> validateTag(String str)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@ public class TerritoryAccess
|
|||||||
|
|
||||||
private boolean hostFactionAllowed = true;
|
private boolean hostFactionAllowed = true;
|
||||||
public boolean isHostFactionAllowed() { return this.hostFactionAllowed; }
|
public boolean isHostFactionAllowed() { return this.hostFactionAllowed; }
|
||||||
public void setHostFactionAllowed(boolean allowed) { this.hostFactionAllowed = allowed; }
|
public void setHostFactionAllowed(boolean hostFactionAllowed) { this.hostFactionAllowed = hostFactionAllowed; }
|
||||||
|
|
||||||
private Set<String> factionIds = new LinkedHashSet<String>();
|
private Set<String> factionIds = new LinkedHashSet<String>();
|
||||||
public Set<String> getFactionIds() { return this.factionIds; }
|
public Set<String> getFactionIds() { return this.factionIds; }
|
||||||
@ -30,11 +30,9 @@ public class TerritoryAccess
|
|||||||
// CONSTRUCT
|
// CONSTRUCT
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public TerritoryAccess(String hostFactionId)
|
||||||
|
|
||||||
public TerritoryAccess(String factionID)
|
|
||||||
{
|
{
|
||||||
hostFactionId = factionID;
|
this.hostFactionId = hostFactionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerritoryAccess()
|
public TerritoryAccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user