Package zombie
Class PersistentOutfits
java.lang.Object
zombie.PersistentOutfits
public class PersistentOutfits
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PersistentOutfits.IOutfitter
-
Field Summary
Fields Modifier and Type Field Description static int
FEMALE_BIT
static PersistentOutfits
instance
static int
INVALID_ID
static int
NO_HAT_BIT
-
Constructor Summary
Constructors Constructor Description PersistentOutfits()
-
Method Summary
Modifier and Type Method Description void
dressInOutfit(IsoGameCharacter gameCharacter, int int1)
int
getOutfit(int int1)
java.util.ArrayList
getOutfitNames()
void
init()
boolean
isHatFallen(int int1)
boolean
isHatFallen(IsoGameCharacter gameCharacter)
void
load()
void
load(java.nio.ByteBuffer byteBuffer)
int
pickOutfit(java.lang.String string, boolean boolean1)
int
pickOutfitFemale(java.lang.String string)
int
pickOutfitMale(java.lang.String string)
int
pickRandomFemale()
int
pickRandomMale()
void
registerOutfitter(java.lang.String string, boolean boolean1, PersistentOutfits.IOutfitter ioutfitter)
boolean
removeFallenHat(int int1, IsoGameCharacter gameCharacter)
void
save()
void
save(java.nio.ByteBuffer byteBuffer)
void
setFallenHat(IsoGameCharacter gameCharacter, boolean boolean1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
INVALID_ID
public static final int INVALID_ID- See Also:
- Constant Field Values
-
FEMALE_BIT
public static final int FEMALE_BIT- See Also:
- Constant Field Values
-
NO_HAT_BIT
public static final int NO_HAT_BIT- See Also:
- Constant Field Values
-
-
Constructor Details
-
PersistentOutfits
public PersistentOutfits()
-
-
Method Details
-
init
public void init() -
getOutfitNames
public java.util.ArrayList getOutfitNames() -
pickRandomFemale
public int pickRandomFemale() -
pickRandomMale
public int pickRandomMale() -
pickOutfitFemale
public int pickOutfitFemale(java.lang.String string) -
pickOutfitMale
public int pickOutfitMale(java.lang.String string) -
pickOutfit
public int pickOutfit(java.lang.String string, boolean boolean1) -
getOutfit
public int getOutfit(int int1) -
save
public void save() -
save
public void save(java.nio.ByteBuffer byteBuffer) -
load
public void load() -
load
public void load(java.nio.ByteBuffer byteBuffer) throws java.io.IOException- Throws:
java.io.IOException
-
registerOutfitter
public void registerOutfitter(java.lang.String string, boolean boolean1, PersistentOutfits.IOutfitter ioutfitter) -
isHatFallen
-
isHatFallen
public boolean isHatFallen(int int1) -
setFallenHat
-
removeFallenHat
-
dressInOutfit
-