class AXStringSplit {
// may be used to prepare data before saving or after loading
// the advantage is less data fields. for example: {skills: s1_s2_s3}
private var spChar = "_"
fun setSpChar(spChar: String) {
this.spChar = spChar
}
fun split(s1: String)...
class AXStrategy // limit of active strategies (pulled from all available strategies)
( /* this auxiliary module is used to output strategies based on context
can be used for battles, and games
upon pain/lose use the evolve methode to update to different new active...
class Strategy( // bank of all strategies. out of this pool active strategies are pulled
var allStrategies: DrawRnd
) {
private val activeStrategy // active strategic options
: UniqueItemSizeLimitedPriorityQueue = UniqueItemSizeLimitedPriorityQueue()
init {
//...
class AXShoutOut {
private var isActive = false
var handshake = Responder()
fun activate() {
// make engage-able
isActive = true
}
fun engage(ear: String): Boolean {
if (ear.isEmpty()) {
return false
}
if (isActive) {...
class AXPrompt {
/*
* example use:
*
* // prompt1
Prompt prompt1 = new Prompt();
prompt1.kv.setKey("fruit");
prompt1.setPrompt("do you prefer an apple, banana or grapes?");
prompt1.setRegex("apple|banana|grapes");
// prompt 2...
class AXPassword {
// code # to open the gate
// while gate is open, code can be changed with: code new_number
var isOpen = false
private set
private var maxAttempts = 3
// return remaining login attempts
var loginAttempts = maxAttempts
private set...
public class AXNPC2 extends AXNPC{
public AnnoyedQue annoyedQue = new AnnoyedQue(5);
public AXNPC2(int replyStockLim, int outputChance) {
super(replyStockLim, outputChance);
}
public void strLearn(String ear){
// learns inputs containing strings that are...
open class AXNPC(replyStockLim: Int, outputChance: Int) {
var responder = RefreshQ()
var dripper = PercentDripper()
var cmdBreaker = AXCmdBreaker("say")
init {
responder.limit = replyStockLim
if (outputChance in 1..100) {...
class AXNeuroSama // the higher the rate the less likely to decorate outputs
(private val rate: Int) {
private val nyaa = Responder(" heart", " heart", " wink", " heart heart heart")
private val rnd = DrawRnd()
fun decorate(output: String): String {
if...
public class DrawRndDigits {
// draw a random integer, then take said element out
private ArrayList<Integer> strings = new ArrayList<>();
private ArrayList<Integer> stringsSource = new ArrayList<>();
private Random rand = new Random();
public DrawRndDigits(int... values) {...
class DrawRnd(vararg values: String) {
// draw a random element, then take said element out
private var strings = ArrayList<String>()
private val stringsSource = ArrayList<String>()
private val rand = Random()
fun addElement(element: String) {
strings.add(element)...
class LGTypeConverter {
private val r1: RegexUtil = RegexUtil()
fun convertToInt(v1: String): Int {
val temp: String = r1.extractRegex(enumRegexGrimoire.Integer, v1)
return if (temp.isEmpty()) {
0
} else temp.toInt()
}
fun convertToDouble(v1...
// returns expression of type theRegex from the string str2Check
class RegexUtil {
var regexDictionary: Hashtable<enumRegexGrimoire, String> = Hashtable<enumRegexGrimoire, String>()
init {
regexDictionary[enumRegexGrimoire.Email] =...
class AXLearnability(tolerance: Int) {
private var algSent = false
// problems that may result because of the last deployed algorithm:
var defcons = UniqueItemSizeLimitedPriorityQueue() // default size = 5
// major chaotic problems that may result because of the last deployed...