wyvern.lib.classes.random
Class WeaponEnchanter.WeaponEnchantment

java.lang.Object
  extended bywyvern.lib.classes.random.WeaponEnchanter.WeaponEnchantment
Enclosing class:
WeaponEnchanter

public static class WeaponEnchanter.WeaponEnchantment
extends java.lang.Object

A class to encapsulate an enchantment.


Constructor Summary
WeaponEnchanter.WeaponEnchantment(java.lang.String type, int value)
          Constructs a new WeaponEnchantment
 
Method Summary
 java.lang.String getType()
           
 int getValue()
           
 void setType(java.lang.String type)
           
 void setValue(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeaponEnchanter.WeaponEnchantment

public WeaponEnchanter.WeaponEnchantment(java.lang.String type,
                                         int value)
Constructs a new WeaponEnchantment

Parameters:
type - the enchantment type, e.g. "dodge"
value - the enchantment value, 1-10
Method Detail

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getValue

public int getValue()

setValue

public void setValue(int value)