2014-08-10 10:07:38 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
public class OrcWeapon implements Weapon {
|
|
|
|
|
|
|
|
private WeaponType weaponType;
|
|
|
|
|
|
|
|
public OrcWeapon(WeaponType weaponType) {
|
|
|
|
this.weaponType = weaponType;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return "Orcish " + weaponType;
|
|
|
|
}
|
2014-10-08 13:42:12 +01:00
|
|
|
|
2014-08-10 10:07:38 +03:00
|
|
|
}
|