models
Class PowerUps
java.lang.Object
models.PowerUps
public class PowerUps
- extends java.lang.Object
Constructor Summary |
PowerUps(int min,
int max)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerUps
public PowerUps(int min,
int max)
- Parameters:
int
- min rangeint
- max range
Constructor for the Power Up class
getPriceCut
public int getPriceCut()
- Returns:
- value of price_cut
getPriceHalf
public int getPriceHalf()
- Returns:
- value of price_half
getMin
public int getMin()
- Returns:
- int min range
getMax
public int getMax()
- Returns:
- int max range
setNumber
public void setNumber(int num)
- Parameters:
integer
- number
setRange
public void setRange(int max,
int min)
- Parameters:
int
- max rangeint
- min rangeint
- number
half_range
public void half_range()
- split the range into two half
cut_range
public void cut_range()