public class DiAware extends DiSkillV2 {
private Chobits chobit;
private String name;
private String summoner = "user";
private ArrayList<String> skills = new ArrayList<String>();
public DiAware(Chobits chobit, String name, String summoner) {
this.chobit = chobit;
this.name = name;
this.summoner = summoner;
}
@Override
public void input(String ear, String skin, String eye) {
switch(ear) {
case "list skills":
skills = chobit.getSkillList();
setVerbatimAlgFromList(4, skills);
break;
case "what is your name":
setSimpleAlg(this.name);
break;
case "name summoner":
setSimpleAlg(this.summoner);
break;
case "how do you feel":
// handle in hardware skill in hardwer chobit
this.kokoro.toHeart.put("last_ap", chobit.getSoulEmotion());
break;
}
}
}
class DiAware(DiSkillV2):
def __init__(self, chobit: Chobits, name: str, summoner="user"):
super().__init__()
self.chobit: Chobits = chobit
self.name: str = name
self.summoner: str = summoner
self.skills: list[str] = []
def input(self, ear, skin, eye):
match ear:
case "list skills":
self.skills = self.chobit.get_skill_list()
self.setVebatimAlgFromList(4, self.skills)
case "what is your name":
self.setSimpleAlg(self.name)
case "name summoner":
self.setSimpleAlg(self.summoner)
case "how do you feel":
self.getKokoro().toHeart["last_ap"] = self.chobit.getSoulEmotion()