12-13-2009, 03:41 PM
Собственно пытаюсь интегрирровать класс, но при компиляции выводит ошибку:
вот проблемный кусок из java
Цитата:Compiling 1571 source files to D:\Emu\L2EmuProject-Game\target\classes
[javac] D:\Emu\L2EmuProject-Game\src\main\java\com\l2emu\gameserver\model\actor\instance\L2GourdInstance.java:88: cannot find symbol
[javac] symbol : method reduceCurrentHp(double,com.l2emu.gameserver.model.actor.L2Character,boolean,com.l2emu.gameserver.model.L2Skill)
[javac] location: class com.l2emu.gameserver.model.actor.instance.L2MonsterInstance
[javac] super.reduceCurrentHp(damage, attacker, awake, skill);
[javac] ^
[javac] D:\Emu\L2EmuProject-Game\src\main\java\com\l2emu\gameserver\model\actor\instance\L2GourdInstance.java:95: cannot find symbol
[javac] symbol : method reduceCurrentHp(double,com.l2emu.gameserver.model.actor.L2Character,boolean,com.l2emu.gameserver.model.L2Skill)
[javac] location: class com.l2emu.gameserver.model.actor.instance.L2MonsterInstance
[javac] super.reduceCurrentHp(damage, attacker, awake, skill);
[javac] ^
[javac] D:\Emu\L2EmuProject-Game\src\main\java\com\l2emu\gameserver\model\actor\instance\L2GourdInstance.java:79: method does not override or implement a method from a supertype
[javac] @Override
[javac] ^
[javac] 3 errors
вот проблемный кусок из java
PHP код:
<?php
@Override
public void reduceCurrentHp(double damage, L2Character attacker, boolean awake, L2Skill skill)
{
for (int npcIds : NPC_IDS)
{
if (npcIds == getNpcId())
{
if (attacker.getActiveWeaponInstance().getItemId() == 4202 || attacker.getActiveWeaponInstance().getItemId() == 5133
|| attacker.getActiveWeaponInstance().getItemId() == 5817 || attacker.getActiveWeaponInstance().getItemId() == 7058)
super.reduceCurrentHp(damage, attacker, awake, skill);
else if (damage > 0.0D)
damage = 0.0D;
break;
}
}
super.reduceCurrentHp(damage, attacker, awake, skill);
}
int[] NPC_IDS =
{ 12778, 12779 };
@SuppressWarnings("unused")
private final int LIVE_TIME = 0x2bf20;
@SuppressWarnings("unused")
private final int ADD_LIVE_TIME = 1000;
private L2PcInstance _owner;
}