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 void
create()
Called when the entity is created and registered.void
decreaseHealth()
Decreasing HEALTHvoid
Hunger()
when player is hunger,player will be slowvoid
poisoning()
A poisoning status of Playervoid
removeBuff_Debuff()
void
removeSlowSpeed()
void
slowSpeed()
Player's movement will be slowvoid
Thirsty()
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:Component
Called 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
-