atavism.agis.objects
Class Faction
java.lang.Object
atavism.agis.objects.Faction
- All Implemented Interfaces:
- java.io.Serializable
public class Faction
- extends java.lang.Object
- implements java.io.Serializable
The Faction class contains information about how a faction reacts to players/npcs of other factions.
- Author:
- Andrew Harrison
- See Also:
- Serialized Form
Constructor Summary |
Faction(int id,
java.lang.String name,
java.lang.String group,
int category)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected int id
name
protected java.lang.String name
group
protected java.lang.String group
category
protected int category
isPublic
protected boolean isPublic
defaultStance
protected int defaultStance
Faction
public Faction(int id,
java.lang.String name,
java.lang.String group,
int category)
getDefaultReputation
public int getDefaultReputation(int factionID)
addFactionToPlayer
public static PlayerFactionData addFactionToPlayer(OID targetOid,
Faction faction,
int playerFaction,
java.util.HashMap<java.lang.Integer,PlayerFactionData> pfdMap)
- Parameters:
targetOid:
- The oid of the playeroid:
- The oid of the mob whose faction data we are gettingfaction
-
sendFactionData
public static void sendFactionData(OID oid)
getID
public int getID()
setID
public void setID(int id)
getCategory
public int getCategory()
setCategory
public void setCategory(int category)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getGroup
public java.lang.String getGroup()
setGroup
public void setGroup(java.lang.String group)
getIsPublic
public boolean getIsPublic()
setIsPublic
public void setIsPublic(boolean isPublic)
getDefaultStance
public int getDefaultStance()
setDefaultStance
public void setDefaultStance(int defaultStance)
getDefaultStances
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getDefaultStances()
setDefaultStances
public void setDefaultStances(java.util.HashMap<java.lang.Integer,java.lang.Integer> defaultStances)