mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 08:23:11 +00:00
Change-Id: I3d4cd283cff0f3ea0202c4fe9b60ec5ed0b42ebd
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import com.l2jserver.model.id.TemplateID;
|
||||
import com.l2jserver.model.template.capability.Defendable;
|
||||
import com.l2jserver.model.template.capability.IncomingDamageIntercept;
|
||||
|
||||
public abstract class ArmorTemplate extends ItemTemplate implements Defendable,
|
||||
IncomingDamageIntercept {
|
||||
public ArmorTemplate(TemplateID id) {
|
||||
super(id);
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,8 @@ package com.l2jserver.model.template;
|
||||
|
||||
import com.l2jserver.model.id.TemplateID;
|
||||
import com.l2jserver.model.template.capability.Attackable;
|
||||
import com.l2jserver.model.template.capability.Enchantable;
|
||||
|
||||
public abstract class WeaponTemplate extends ItemTemplate implements
|
||||
Attackable, Enchantable {
|
||||
public abstract class WeaponTemplate extends ItemTemplate implements Attackable {
|
||||
public WeaponTemplate(TemplateID id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@ public interface Attackable extends TemplateCapability {
|
||||
void attack(Attacker source,
|
||||
com.l2jserver.model.world.capability.Attackable target);
|
||||
|
||||
public int getDamage();
|
||||
public int getPhysicalDamage();
|
||||
public int getMagicalDamage();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.l2jserver.model.template.capability;
|
||||
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
|
||||
public interface Defendable extends TemplateCapability {
|
||||
void defend(Attacker source,
|
||||
com.l2jserver.model.world.capability.Attackable target);
|
||||
|
||||
public int getPhysicalDefense();
|
||||
public int getMagicalDefense();
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.l2jserver.model.template.capability;
|
||||
|
||||
import com.l2jserver.model.world.capability.Equiper;
|
||||
|
||||
public interface Equipable extends TemplateCapability {
|
||||
void equip(Equiper equiper);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.l2jserver.model.template.capability;
|
||||
|
||||
import com.l2jserver.model.world.capability.Damagable;
|
||||
|
||||
/**
|
||||
* Indicates that an template has the ability to intercept incoming damage.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*
|
||||
*/
|
||||
public interface IncomingDamageIntercept extends TemplateCapability {
|
||||
void interceptIncomingDamage(Damagable target);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.l2jserver.model.template.capability;
|
||||
|
||||
import com.l2jserver.model.world.capability.Damagable;
|
||||
|
||||
/**
|
||||
* Indicates that an template has the ability to intercept outgoing damage.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public interface OutgoingDamageIntercept extends TemplateCapability {
|
||||
void interceptOutgoingDamage(Damagable target);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.l2jserver.model.template.capability;
|
||||
|
||||
import com.l2jserver.model.template.AbstractTemplate;
|
||||
import com.l2jserver.model.world.capability.Equiper;
|
||||
|
||||
/**
|
||||
* Indicated than an {@link AbstractTemplate} can add penalties to an given
|
||||
* user.
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public interface Penalty extends TemplateCapability {
|
||||
void penalty(Equiper user);
|
||||
}
|
||||
Reference in New Issue
Block a user