demagepacket.java
来自「JAVA 工厂方法」· Java 代码 · 共 35 行
JAVA
35 行
package org.su.demo.Creature.demage;
import org.su.demo.NPC.skills.AttackSkills;
/**
* 伤害数据包对象,目前只包括基本伤害值,技能伤害类
*/
public class DemagePacket {
private int demage; //攻击时候产生的原始伤害
private AttackSkills attackSkill; //攻击的种类
public DemagePacket(int demage, AttackSkills attackSkill) {
super();
this.demage = demage;
this.attackSkill = attackSkill;
}
public int getDemage() {
return demage;
}
public void setDemage(int demage) {
this.demage = demage;
}
public AttackSkills getAttackSkill() {
return attackSkill;
}
public void setAttackSkill(AttackSkills attackSkill) {
this.attackSkill = attackSkill;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?