17 lines
349 B
Java
17 lines
349 B
Java
package com.experiment;
|
|
|
|
public class DragonSlayer extends Role {
|
|
|
|
public DragonSlayer(){
|
|
super("屠龙者", "0001", 10000);
|
|
}
|
|
|
|
public DragonSlayer(String name, String id, int health){
|
|
super(name, id, health);
|
|
}
|
|
|
|
public void finishingMove(){
|
|
System.out.println(getName()+"发动了"+"降龙掌");
|
|
}
|
|
}
|