public class Faction
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
category |
protected int |
defaultStance |
protected java.lang.String |
group |
protected int |
id |
protected boolean |
isPublic |
protected java.lang.String |
name |
Constructor and Description |
---|
Faction(int id,
java.lang.String name,
java.lang.String group,
int category) |
Modifier and Type | Method and Description |
---|---|
static PlayerFactionData |
addFactionToPlayer(OID targetOid,
Faction faction,
int playerFaction,
java.util.HashMap<java.lang.Integer,PlayerFactionData> pfdMap) |
int |
getCategory() |
int |
getDefaultReputation(int factionID) |
int |
getDefaultStance() |
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getDefaultStances() |
java.lang.String |
getGroup() |
int |
getID() |
boolean |
getIsPublic() |
java.lang.String |
getName() |
static void |
sendFactionData(OID oid) |
void |
setCategory(int category) |
void |
setDefaultStance(int defaultStance) |
void |
setDefaultStances(java.util.HashMap<java.lang.Integer,java.lang.Integer> defaultStances) |
void |
setGroup(java.lang.String group) |
void |
setID(int id) |
void |
setIsPublic(boolean isPublic) |
void |
setName(java.lang.String name) |
protected int id
protected java.lang.String name
protected java.lang.String group
protected int category
protected boolean isPublic
protected int defaultStance
public Faction(int id, java.lang.String name, java.lang.String group, int category)
public int getDefaultReputation(int factionID)
public static PlayerFactionData addFactionToPlayer(OID targetOid, Faction faction, int playerFaction, java.util.HashMap<java.lang.Integer,PlayerFactionData> pfdMap)
targetOid:
- The oid of the playeroid:
- The oid of the mob whose faction data we are gettingfaction
- public static void sendFactionData(OID oid)
public int getID()
public void setID(int id)
public int getCategory()
public void setCategory(int category)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
public boolean getIsPublic()
public void setIsPublic(boolean isPublic)
public int getDefaultStance()
public void setDefaultStance(int defaultStance)
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getDefaultStances()
public void setDefaultStances(java.util.HashMap<java.lang.Integer,java.lang.Integer> defaultStances)