1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-11 09:42:54 +00:00

Initial work in the attack service

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-25 20:22:02 -03:00
parent f955208c2e
commit 96bf7df86f
10108 changed files with 41199 additions and 21558 deletions

View File

@@ -34,6 +34,7 @@ import com.l2jserver.model.id.template.ItemTemplateID;
import com.l2jserver.model.id.template.NPCTemplateID;
import com.l2jserver.model.world.Actor.ActorSex;
import com.l2jserver.model.world.NPC;
import com.l2jserver.model.world.npc.controller.NPCController;
import com.l2jserver.util.jaxb.ItemTemplateIDAdapter;
import com.l2jserver.util.jaxb.NPCTemplateIDAdapter;
@@ -47,8 +48,8 @@ public class NPCTemplate extends ActorTemplate<NPC> {
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(value = NPCTemplateIDAdapter.class)
protected NPCTemplateID id = null;
@XmlAttribute(name = "type")
protected String type = null;
@XmlAttribute(name = "controller")
protected Class<? extends NPCController> controller;
@XmlElement(name = "info")
protected NPCInformationMetadata info = null;
@@ -274,10 +275,10 @@ public class NPCTemplate extends ActorTemplate<NPC> {
}
/**
* @return the type
* @return the controller class
*/
public String getType() {
return type;
public Class<? extends NPCController> getControllerClass() {
return controller;
}
public String getName() {