Examples of EAIConfigurationDataPool


Examples of csa.jportal.ai.enhancedAI.EAIConfigurationDataPool

    public EAIConfigurationData getEAIConfig()
    {
        if (!isScriptedAI())
        {
            if (eaiConfig != null) return eaiConfig;
            EAIConfigurationDataPool eAIConfigurationDataPool = new EAIConfigurationDataPool();
            eaiConfig = eAIConfigurationDataPool.get(mAIPlayerData.mName);
            if (eaiConfig == null) // new AI
            {
                eaiConfig = new EAIConfigurationData();
            }
            activeWeighting = Weighting.buildWeighting(eaiConfig.getActiveWeightingCollection());
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.EAIConfigurationDataPool

            try
            {
                Class c = Class.forName(className);
                mSHandler = (AISituationHandler) c.newInstance();

                EAIConfigurationDataPool eAIConfigurationDataPool = new EAIConfigurationDataPool();
                eaiConfig = eAIConfigurationDataPool.get(mAIPlayerData.mName);
                activeWeighting = Weighting.buildWeighting(eaiConfig.getActiveWeightingCollection());
            }
            catch (Throwable ex)
            {
                D.addLog(ex, 0);
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.EAIConfigurationDataPool

        if (!isScriptedAI())
        {
            if (eaiConfig != null)
            {
                eaiConfig.mName = mAIPlayerData.mName;
                EAIConfigurationDataPool pool = new EAIConfigurationDataPool();
                pool.put(eaiConfig);
                pool.save();
            }
        }

        mAIPlayerDataPool.put(mAIPlayerData);
        mAIPlayerDataPool.save();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.