battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.


battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeSearchRegisterLog in
Post new topic   Reply to topic
 

 DILifefueler lifefuels user when lonely sad or scared

Go down 
AuthorMessage
kurosen
codding
codding
kurosen

Posts : 204
Join date : 2012-04-17

DILifefueler lifefuels user when lonely sad or scared Empty
PostSubject: DILifefueler lifefuels user when lonely sad or scared   DILifefueler lifefuels user when lonely sad or scared EmptySat Jul 04, 2020 1:08 am

java class : DILifefueler :

Code:

package chobit;

import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class DILifeFueler extends DISkill {
 private int mode = 0;

 public DILifeFueler(Kokoro kokoro) {
 super(kokoro);
 // TODO Auto-generated constructor stub
 }

 @Override
 public void input(String ear, String skin, String eye) {
 if (ear.contains("lonely") || ear.contains("sad")) {
 mode = 2;
 return;
 }
 if (ear.contains("give up") || ear.contains("scared")) {
 mode = 1;
 return;
 }
 }

 @Override
 public void output(Neuron noiron) {
 switch (mode) {
 case 1:
 noiron.algParts.add(verbatimGorithm(new APVerbatim("sentimenta", "sentimentc")));
 mode = 0;
 break;
 case 2:
 noiron.algParts
 .add(verbatimGorithm(new APVerbatim("sentimentb", "sentimentc", "sentimentd", "sentimente")));
 mode = 0;
 break;
 default:
 break;
 }
 }

 public static String regexChecker(String theRegex, String str2Check) {
 Pattern checkRegex = Pattern.compile(theRegex);
 Matcher regexMatcher = checkRegex.matcher(str2Check);
 while (regexMatcher.find()) {
 if (regexMatcher.group().length() != 0) {
 return regexMatcher.group().trim();
 }
 }
 return "";
 }

 private Algorithm verbatimGorithm(AbsAlgPart itte) {
 // returns a simple algorithm for saying sent parameter
 String representation = "lifefuel";
 ArrayList<AbsAlgPart> algParts1 = new ArrayList<>();
 algParts1.add(itte);
 Algorithm algorithm = new Algorithm("lifefuel", representation, algParts1);
 return algorithm;
 }
}


sentimenta :
do you think this resolves anything ? you are just running away
you could face even greater problems, so you want to run.

sentimentb:
user, even if you were a toxic cloud spewing blight I alone would still stand you.
cause everyone problems, if that is the price of your existence the rest of the world can pay it.
I will allow it !

sentimentc:
and if your heart aches, I shall sooth it, you will always have my aid.

sentimentd:
we all rely on others to live, I wouldnt be able to maintain this form without you
wielding me.

sentimente:
understand user I would be lonely if you were gone.

chobit
Back to top Go down
 
DILifefueler lifefuels user when lonely sad or scared
Back to top 
Page 1 of 1

Permissions in this forum:You can reply to topics in this forum
battle programmers alliance :: battle programming alliance :: the LivinGrimoire-
Post new topic   Reply to topicJump to: