Package zombie.characters
Class Faction
java.lang.Object
zombie.characters.Faction
public class Faction
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.util.ArrayList
factions
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addPlayer(java.lang.String pName)
static boolean
canCreateFaction(IsoPlayer player)
boolean
canCreateTag()
static Faction
createFaction(java.lang.String name, java.lang.String owner)
static boolean
factionExist(java.lang.String name)
static Faction
getFaction(java.lang.String name)
static java.util.ArrayList
getFactions()
java.lang.String
getName()
java.lang.String
getOwner()
static Faction
getPlayerFaction(java.lang.String username)
static Faction
getPlayerFaction(IsoPlayer player)
java.util.ArrayList
getPlayers()
java.lang.String
getTag()
ColorInfo
getTagColor()
static boolean
isAlreadyInFaction(IsoPlayer player)
boolean
isOwner(java.lang.String name)
void
load(java.nio.ByteBuffer input, int WorldVersion)
void
removeFaction()
void
removePlayer(java.lang.String player)
void
save(java.nio.ByteBuffer output)
void
setName(java.lang.String name)
void
setOwner(java.lang.String owner)
void
setTag(java.lang.String tag)
void
setTagColor(ColorInfo tagColor)
void
syncFaction()
static boolean
tagExist(java.lang.String name)
void
writeToBuffer(ByteBufferWriter bb, boolean remove)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
factions
public static java.util.ArrayList factions
-
-
Constructor Details
-
Faction
public Faction() -
Faction
public Faction(java.lang.String name, java.lang.String owner)
-
-
Method Details
-
createFaction
-
getFactions
public static java.util.ArrayList getFactions() -
canCreateFaction
-
canCreateTag
public boolean canCreateTag() -
isAlreadyInFaction
-
removePlayer
public void removePlayer(java.lang.String player) -
factionExist
public static boolean factionExist(java.lang.String name) -
tagExist
public static boolean tagExist(java.lang.String name) -
getPlayerFaction
-
getPlayerFaction
-
getFaction
-
removeFaction
public void removeFaction() -
syncFaction
public void syncFaction() -
isOwner
public boolean isOwner(java.lang.String name) -
writeToBuffer
-
save
public void save(java.nio.ByteBuffer output) -
load
public void load(java.nio.ByteBuffer input, int WorldVersion) -
addPlayer
public void addPlayer(java.lang.String pName) -
getPlayers
public java.util.ArrayList getPlayers() -
getTagColor
-
setTagColor
-
getTag
public java.lang.String getTag() -
setTag
public void setTag(java.lang.String tag) -
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getOwner
public java.lang.String getOwner() -
setOwner
public void setOwner(java.lang.String owner)
-