Modifier and Type | Field and Description |
---|---|
(package private) int |
magicBonus
Magic bonus value.
|
(package private) static int |
MAX_MAGIC_BONUS
Maximum magic bonus allowed.
|
(package private) String |
name
Name of this piece of equipment.
|
Constructor and Description |
---|
Equipment(String name,
int magicBonus)
Basic constructor
|
Modifier and Type | Method and Description |
---|---|
(package private) String |
formatBonus(int bonus)
Format magic bonus.
|
int |
getMagicBonus() |
String |
getName() |
void |
incMagicBonus()
Increment the magic bonus.
|
void |
setMagicBonus(int bonus) |
String |
toString()
Identify this object as a string.
|
static final int MAX_MAGIC_BONUS
String name
int magicBonus
Equipment(String name, int magicBonus)