Class DeBuff
java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.buff.DeBuff
public class DeBuff extends Component
- 
Field Summary
 - 
Constructor Summary
 - 
Method Summary
Modifier and Type Method Description voidcreate()Called when the entity is created and registered.voiddecreaseHealth()Decreasing HEALTHvoidHunger()when player is hunger,player will be slowvoidpoisoning()A poisoning status of PlayervoidremoveBuff_Debuff()voidremoveSlowSpeed()voidslowSpeed()Player's movement will be slowvoidThirsty()when player is thirst ,player will be lose hpMethods inherited from class com.deco2800.game.components.Component
dispose, earlyUpdate, getEntity, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update 
- 
Constructor Details
 - 
Method Details
- 
create
public void create()Description copied from class:ComponentCalled when the entity is created and registered. Initial logic such as calls to GetComponent should be made here, not in the constructor which is called before an entity is finished. - 
decreaseHealth
public void decreaseHealth()Decreasing HEALTH - 
poisoning
public void poisoning()A poisoning status of Player - 
slowSpeed
public void slowSpeed()Player's movement will be slow - 
removeBuff_Debuff
public void removeBuff_Debuff() - 
removeSlowSpeed
public void removeSlowSpeed() - 
Hunger
public void Hunger()when player is hunger,player will be slow - 
Thirsty
public void Thirsty()when player is thirst ,player will be lose hp 
 -