public class Attack extends Object
Modifier and Type | Field and Description |
---|---|
(package private) int |
bonus
Attack bonus added to d20 hit rolls.
|
(package private) Dice |
damage
Damage dice on successful hit.
|
(package private) String |
name
Name descriptor of this attack form.
|
(package private) int |
rate
Rate of attacks per round.
|
Constructor and Description |
---|
Attack(int bonus,
int damDice)
Constructor (bonus, damage dice).
|
Attack(int rate,
int bonus,
int damDice)
Constructor (rate, bonus, damage dice).
|
Attack(String name,
int rate,
int bonus,
Dice damage)
Constructor (full fields).
|
Modifier and Type | Method and Description |
---|---|
int |
getBonus() |
Dice |
getDamage() |
String |
getName() |
int |
getRate() |
static void |
main(String[] args)
Main test function.
|
void |
setBonus(int bonus) |
void |
setRate(int rate) |
String |
toString()
Identify this object as a string.
|
String name
int bonus
int rate
Dice damage
Attack(int rate, int bonus, int damDice)
Attack(int bonus, int damDice)
public String getName()
public int getBonus()
public int getRate()
public Dice getDamage()
public void setBonus(int bonus)
public void setRate(int rate)
public String toString()
public static void main(String[] args)