public class ClassicDie
extends Die
This is a class that simulates a classic 6-sided die.
Constructor and Description |
---|
ClassicDie(BaseActivity context,
android.widget.ImageView view,
Theme theme,
java.lang.String storedValueKey,
int initialValue,
int wiggleAnimationResource)
This is a class that simulates a classic 6-sided die.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Draws the currently selected image resource
|
draw, getContext, getCurrentValue, getLimit, getMinimum, getRandom, getStoredValueKey, getTheme, getValue, getView, getWiggleAnimationResource, isAnimating, next, nextRandomNumber, roll, setCurrentValue, setLimit, setMinimum, setTheme, updateTheme
public ClassicDie(BaseActivity context, android.widget.ImageView view, Theme theme, java.lang.String storedValueKey, int initialValue, int wiggleAnimationResource)
This is a class that simulates a classic 6-sided die.
context
- : The context/Activity for this die.view
- : The view that represents this dietheme
- : The starting theme to be applied to the diestoredValueKey
- : The key string used to store the current value in the shared preferencesinitialValue
- : The initial value of the diewiggleAnimationResource
- : Can be used to override the default wiggle animationcontext
- : The context/Activity for this die.view
- : The view that represents this dietheme
- : The starting theme to be applied to the diestoredValueKey
- : The key string used to store the current value in the shared preferencesinitialValue
- : The initial value of the diewiggleAnimationResource
- : Can be used to override the default wiggle animation