public class Damages extends Object
Constructor and Description |
---|
Damages()
Create a damages handler with zero as default.
|
Damages(int min,
int max)
Create a damages handler with initial range.
|
Modifier and Type | Method and Description |
---|---|
Range |
getDamages()
Get the damages range.
|
int |
getLast()
Get last damages value.
|
int |
getMax()
Get maximum damages value.
|
int |
getMin()
Get minimum damages value.
|
int |
getRandom()
Get random damages between min-max.
|
void |
setDamages(int min,
int max)
Set the maximum damage value.
|
void |
setMax(int max)
Set the maximum damage value.
|
void |
setMin(int min)
Set the minimum damage value.
|
public Damages()
public Damages(int min, int max)
min
- The minimum damages value.max
- The maximum damages value.public void setMin(int min)
min
- The minimum damage value.public void setMax(int max)
max
- The maximum damage value.public void setDamages(int min, int max)
min
- The minimum damage value.max
- The maximum damage value.public int getRandom()
public int getLast()
public int getMin()
public int getMax()
public Range getDamages()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.