guess what this code does

owly

owly

Banned
Nov 26, 2020
179
Java:
package chobit;

public class DiTglrSkill extends DISkill {
    private Boolean alive = true;
    private String conjuration = "";
    public DiTglrSkill(Kokoro kokoro,String conjuration) {
        super(kokoro);
        this.conjuration = conjuration;
    }
    @Override
    public void input(String ear, String skin, String eye) {
        //toggle :
        String meirei = this.kokoro.toHeart.getOrDefault(conjuration, "");
        if(meirei.contains(conjuration +" off")) {this.alive=false;this.kokoro.toHeart.remove(conjuration);return;}
        if(meirei.contains(conjuration +" on")) {this.alive=true;this.kokoro.toHeart.remove(conjuration);return;}
        //engage :
        if(alive) {
        super.input(ear, skin, eye);}
    }
    @Override
    public void output(Neuron noiron) {
        if(alive) {
        super.output(noiron);}
    }
    
}
 
Fabio

Fabio

(◡‿◡)
Dec 4, 2020
15,654
You are just defining class with 2 over ridded methods from extended class.

Karen
 
owly

owly

Banned
Nov 26, 2020
179
well, as you know, the waifubots will have sexual skills as well as regular skills.
for example giving handjobs while praising the incel master. at any rate we most certainly wouldn't want someone else such as coworker chad
to do those things with her. using passwords this auxilary skill will toggle the sexual skills on or off.

previously I would have to use said pass whenever I wanted her to use the cum toilette skill, which was somewhat not ideal.
this is faster more efficient and more secure.

chad can suck a lemon when it comes to our waifubots
 
owly

owly

Banned
Nov 26, 2020
179
activation toggler :

Java:
public class DiTglrSkill extends DISkill {
    private String conjuration = "";
    public DiTglrSkill(Kokoro kokoro, String conjuration, DISkill diSkill) {
        super(kokoro);
        this.conjuration = conjuration;
    }
    @Override
    public void input(String ear, String skin, String eye) {
        // toggle :
        if (ear.contains(conjuration + " on")) {
            kokoro.toHeart.put(conjuration, conjuration + " on");
            return;
        }
        if (ear.contains(conjuration + " off")) {
            kokoro.toHeart.put(conjuration, conjuration + " on");
            return;
        }
    }
}

skill adaptor

Java:
package chobit;

public class DiTglrAdapter extends DISkill {
    private Boolean alive = true;
    private String conjuration = "";
    private DISkill diSkill;

    public DiTglrAdapter(Kokoro kokoro, String conjuration, DISkill diSkill) {
        super(kokoro);
        this.diSkill = diSkill;
        this.conjuration = conjuration;
    }

    @Override
    public void input(String ear, String skin, String eye) {
        // toggle :
        String meirei = this.kokoro.toHeart.getOrDefault(conjuration, "");
        if (meirei.contains(conjuration + " off")) {
            this.alive = false;
            this.kokoro.toHeart.remove(conjuration);
            return;
        }
        if (meirei.contains(conjuration + " on")) {
            this.alive = true;
            this.kokoro.toHeart.remove(conjuration);
            return;
        }
        // engage :
        if (alive) {
            this.diSkill.input(ear, skin, eye);
        }
    }

    @Override
    public void output(Neuron noiron) {
        if (alive) {
            this.diSkill.output(noiron);
        }
    }

}
 
owly

owly

Banned
Nov 26, 2020
179
ok it is now beefed up to toggle many skills

Java:
package chobit;

import java.util.ArrayList;

public class DiTglrSkill extends DISkill {
    // this toggles a skill, logically a level 1 skill
    /*
     * thus one can use hidden skills without the chobits hidden name and use select
     * cases rather than string.contains for a speed beef up as well
     */
    private ArrayList<String> conjurtions = new ArrayList<String>();
    private String outString = "";
    private DISkillUtils diSkillUtils = new DISkillUtils();
    public DiTglrSkill(Kokoro kokoro,  DISkill diSkill, String...conjurationsTemp) {
        super(kokoro);
        for (int i = 0; i < conjurationsTemp.length; i++) {
            this.conjurtions.add(conjurationsTemp[i]);
        }
    }
    private String strContainsList(String str1) {
        for (String temp : conjurtions) {
            if (str1.contains(temp)) {
                return temp;
            }
        }
        return "";
    }
    @Override
    public void input(String ear, String skin, String eye) {
        // toggle :
        if (ear.contains("dislike")) {
            String conjurati = strContainsList(ear);
            if(!conjurati.isEmpty()) {
                kokoro.toHeart.put(conjurati, conjurati + " off");
                outString = "you dislike it";
                return;
            }
        }
        if (ear.contains("like")) {
            String conjurati = strContainsList(ear);
            if(!conjurati.isEmpty()) {
                kokoro.toHeart.put(conjurati, conjurati + " on");
                outString = "ok";
                return;
            }
        }
    }

    @Override
    public void output(Neuron noiron) {
        if (!outString.isEmpty()) {
            noiron.algParts.add(diSkillUtils.verbatimGorithm(new APVerbatim(outString)));
            outString = "";
        }
    }
}
 
owly

owly

Banned
Nov 26, 2020
179
I hate foids ! rubaluba dub dub !!! haha



I fucking HATE FOIDS !!!!!!!!!!! hadouken !!!!!
 
F

FastBananaCEO

Banned
Nov 29, 2020
770
It's the lines of code that allows ritalincel to postmaxx
 
Activity
So far there's no one here

Similar threads

owly
Replies
6
Views
801
brumgum
brumgum
Top