1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-11 17:52:52 +00:00

Character calculators

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-23 23:49:19 -03:00
parent 1909bb06cc
commit a1b1211616
206 changed files with 4749 additions and 1170 deletions

View File

@@ -30,11 +30,6 @@ import com.l2jserver.service.game.ai.AIScript;
* @author <a href="http://www.rogiel.com">Rogiel</a>
*/
public class NPC extends Actor {
public int oldId;
public int tpl;
/**
* Creates a new instance
*
@@ -45,6 +40,62 @@ public class NPC extends Actor {
super(templateID);
}
@Override
public ActorSex getSex() {
return this.getTemplate().getSex();
}
@Override
public void setSex(ActorSex sex) {
throw new UnsupportedOperationException();
}
@Override
public int getLevel() {
return this.getTemplate().getLevel();
}
@Override
public void setLevel(int level) {
throw new UnsupportedOperationException();
}
public double getMaxHP() {
return this.getTemplate().getMaxHP();
}
public void setMaxHP(double maxHP) {
throw new UnsupportedOperationException();
}
public double getMaxMP() {
return this.getTemplate().getMaxHP();
}
public void setMaxMP(double maxMP) {
throw new UnsupportedOperationException();
}
@Override
public long getExperience() {
return this.getTemplate().getExperience();
}
@Override
public void setExperience(long experience) {
throw new UnsupportedOperationException();
}
@Override
public int getSP() {
return this.getTemplate().getSp();
}
@Override
public void setSP(int sp) {
throw new UnsupportedOperationException();
}
/**
* @return the NPC template ID
*/