👨‍💻 dev awareness skill

development

fukurou

the supreme coder
ADMIN
Java:
   public ArrayList<String> getSkillList(){
        ArrayList<String> result = new ArrayList<String>();
        for (DiSkillV2 skill: this.dClasses) {
            result.add(skill.getClass().getSimpleName());
        }
        return result;
    }
 

fukurou

the supreme coder
ADMIN
Java:
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;
        }
    }
}
 

fukurou

the supreme coder
ADMIN
Python:
    def get_skill_list(self) -> list[str]:
        result: list[str] = []
        for skill in self._dClasses:
            result.append(skill.__class__.__name__)
        return result
 

fukurou

the supreme coder
ADMIN
Python:
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()
 
Top