package Game; /** * Created with IntelliJ IDEA. * User: megatlantis * Date: 10/01/14 * Time: 15:49 * To change this template use File | Settings | File Templates. */ public class Buff { int bufftype; boolean isDebuff; int bufftime = 1; float currenttime = 0; EntityLiving entity; int speedBoost; int damageOnTime; public Buff() { } public boolean updateBuff(float delta){ currenttime+=delta; if(currenttime>bufftime) return true; return false; } public void setEntity(EntityLiving entity) { this.entity = entity; } public EntityLiving getEntity() { return entity; } }