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 string)
static boolean
canCreateFaction(IsoPlayer player)
boolean
canCreateTag()
static Faction
createFaction(java.lang.String string, java.lang.String string2)
static boolean
factionExist(java.lang.String string)
static Faction
getFaction(java.lang.String string)
static java.util.ArrayList
getFactions()
java.lang.String
getName()
java.lang.String
getOwner()
static Faction
getPlayerFaction(java.lang.String string)
static Faction
getPlayerFaction(IsoPlayer player)
java.util.ArrayList
getPlayers()
java.lang.String
getTag()
ColorInfo
getTagColor()
static boolean
isAlreadyInFaction(java.lang.String string)
static boolean
isAlreadyInFaction(IsoPlayer player)
boolean
isMember(java.lang.String string)
boolean
isOwner(java.lang.String string)
boolean
isPlayerMember(IsoPlayer player)
void
load(java.nio.ByteBuffer byteBuffer, int int1)
void
removeFaction()
void
removePlayer(java.lang.String string)
void
save(java.nio.ByteBuffer byteBuffer)
void
setName(java.lang.String string)
void
setOwner(java.lang.String string)
void
setTag(java.lang.String string)
void
setTagColor(ColorInfo colorInfo)
void
syncFaction()
static boolean
tagExist(java.lang.String string)
void
writeToBuffer(ByteBufferWriter byteBufferWriter, boolean boolean1)
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 string, java.lang.String string2)
-
-
Method Details
-
createFaction
-
getFactions
public static java.util.ArrayList getFactions() -
canCreateFaction
-
canCreateTag
public boolean canCreateTag() -
isAlreadyInFaction
public static boolean isAlreadyInFaction(java.lang.String string) -
isAlreadyInFaction
-
removePlayer
public void removePlayer(java.lang.String string) -
factionExist
public static boolean factionExist(java.lang.String string) -
tagExist
public static boolean tagExist(java.lang.String string) -
getPlayerFaction
-
getPlayerFaction
-
getFaction
-
removeFaction
public void removeFaction() -
syncFaction
public void syncFaction() -
isOwner
public boolean isOwner(java.lang.String string) -
isPlayerMember
-
isMember
public boolean isMember(java.lang.String string) -
writeToBuffer
-
save
public void save(java.nio.ByteBuffer byteBuffer) -
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) -
addPlayer
public void addPlayer(java.lang.String string) -
getPlayers
public java.util.ArrayList getPlayers() -
getTagColor
-
setTagColor
-
getTag
public java.lang.String getTag() -
setTag
public void setTag(java.lang.String string) -
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String string) -
getOwner
public java.lang.String getOwner() -
setOwner
public void setOwner(java.lang.String string)
-