Package zombie.characters
Class IsoGameCharacter.XP
java.lang.Object
zombie.characters.IsoGameCharacter.XP
- Enclosing class:
- IsoGameCharacter
public class IsoGameCharacter.XP
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description int
lastlevel
int
level
float
TotalXP
java.util.HashMap
XPMap
java.util.HashMap
XPMapMultiplier
-
Constructor Summary
Constructors Constructor Description XP(IsoGameCharacter chr)
-
Method Summary
Modifier and Type Method Description void
addGlobalXP(float amount)
void
AddXP(PerkFactory.Perks type, float amount)
void
AddXP(PerkFactory.Perks type, float amount, boolean callLua)
void
AddXP(PerkFactory.Perks type, float amount, boolean callLua, boolean addGlobalXp)
void
AddXP(PerkFactory.Perks type, float amount, boolean callLua, boolean addGlobalXp, boolean doXPBoost, boolean remote)
void
AddXP(HandWeapon weapon, int amount)
void
addXpMultiplier(PerkFactory.Perks perks, float multiplier, int minLevel, int maxLevel)
void
AddXPNoMultiplier(PerkFactory.Perks type, float amount)
int
getLevel()
float
getMultiplier(PerkFactory.Perks perk)
java.util.HashMap
getMultiplierMap()
int
getPerkBoost(PerkFactory.Perks type)
float
getTotalXp()
float
getXP(PerkFactory.Perks type)
void
load(java.nio.ByteBuffer input, int WorldVersion)
void
save(java.nio.ByteBuffer output)
void
setLevel(int newlevel)
void
setTotalXP(float xp)
void
setXPToLevel(PerkFactory.Perks key, int perkLevel)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
level
public int level -
lastlevel
public int lastlevel -
TotalXP
public float TotalXP -
XPMap
public java.util.HashMap XPMap -
XPMapMultiplier
public java.util.HashMap XPMapMultiplier
-
-
Constructor Details
-
XP
-
-
Method Details
-
addXpMultiplier
-
getMultiplierMap
public java.util.HashMap getMultiplierMap() -
getMultiplier
-
getPerkBoost
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int newlevel) -
getTotalXp
public float getTotalXp() -
AddXP
-
AddXPNoMultiplier
-
AddXP
-
AddXP
-
AddXP
public void AddXP(PerkFactory.Perks type, float amount, boolean callLua, boolean addGlobalXp, boolean doXPBoost, boolean remote) -
addGlobalXP
public void addGlobalXP(float amount) -
getXP
-
AddXP
-
setTotalXP
public void setTotalXP(float xp) -
load
public void load(java.nio.ByteBuffer input, int WorldVersion) throws java.io.IOException- Throws:
java.io.IOException
-
save
public void save(java.nio.ByteBuffer output) throws java.io.IOException- Throws:
java.io.IOException
-
setXPToLevel
-