Class ScrapComponent
java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.currency.ScrapComponent
Component holding the currency value granted by a single sunlight pickup. Attach to an
entity/actor representing a sun if you need ECS-side access.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.csse3200.game.components.Component
create, earlyUpdate, getEntity, getPriority, setEnabled, setEntity, toString, triggerEarlyUpdate, triggerUpdate, update
-
Constructor Details
-
ScrapComponent
public ScrapComponent()
-
-
Method Details
-
getValue
public int getValue()- Returns:
- configured currency value of this sun
-
setValue
- Parameters:
v
- new value; @return this for chaining
-
dispose
public void dispose()Description copied from class:Component
Called when the component is disposed. Dispose of any internal resources here.
-