public abstract class Weapon extends Item {
Weapon (GameEngine parentEngine)
{
super(parentEngine);
}
abstract int getMinAttackDamage();
abstract int getMaxAttackDamage();
abstract String getAttackVisual(Character attacker, Character attacked, Room attackLocation);
}
So far I have:
Class Axe extends Weapon{
Axe(GameEngine parentGameEngine)[
Super(parentGameEngine);
{
boolean getItemUsable(){
return true;
}
public String get ObjectName();
return "Axe";
}
Public String getItemVisual(){
return "4 foot long handle with a very sharp blade.";
}
这是我的问题......我如何/在哪里设置最小/最大攻击伤害和角色视觉?这是我的第一个脚本游戏。