本文整理汇总了Java中rescuecore2.config.Config.getBooleanValue方法的典型用法代码示例。如果您正苦于以下问题:Java Config.getBooleanValue方法的具体用法?Java Config.getBooleanValue怎么用?Java Config.getBooleanValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rescuecore2.config.Config
的用法示例。
在下文中一共展示了Config.getBooleanValue方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialise
import rescuecore2.config.Config; //导入方法依赖的package包/类
@Override
public void initialise(Config config) {
iconSize = config.getIntValue(MrlConstants.ICON_SIZE_KEY, DEFAULT_ICON_SIZE);
useIcons = config.getBooleanValue(MrlConstants.USE_ICONS_KEY, false);
SAY_RANGE = config.getIntValue(MrlConstants.VOICE_RANGE_KEY);
VIEW_RANGE = config.getIntValue(MrlConstants.MAX_VIEW_DISTANCE_KEY);
CLEAR_RANGE = config.getIntValue(MrlConstants.MAX_CLEAR_DISTANCE_KEY);
EXTINGUISH_RANGE = config.getIntValue(MrlConstants.MAX_EXTINGUISH_DISTANCE_KEY);
icons = new HashMap<String, Map<State, Icon>>();
icons.put(StandardEntityURN.FIRE_BRIGADE.toString(), generateIconMap("FireBrigade"));
icons.put(StandardEntityURN.AMBULANCE_TEAM.toString(), generateIconMap("AmbulanceTeam"));
icons.put(StandardEntityURN.POLICE_FORCE.toString(), generateIconMap("PoliceForce"));
icons.put(StandardEntityURN.CIVILIAN.toString() + "-Male", generateIconMap("Civilian-Male"));
icons.put(StandardEntityURN.CIVILIAN.toString() + "-Female", generateIconMap("Civilian-Female"));
useIconsAction = new UseIconsAction();
atInfo = false;
atInfoAction = new RenderATInfoAction();
pfInfo = false;
pfInfoAction = new RenderPFInfoAction();
fbInfo = false;
fbInfoAction = new RenderFBInfoAction();
civInfo = false;
civInfoAction = new RenderCivInfoAction();
sayRange = false;
sayRangeAction = new SayRangeAction();
viewRange = false;
viewRangeAction = new ViewRangeAction();
clearRange = false;
clearRangeAction = new ClearRangeAction();
agentSize = false;
agentSizeAction = new AgentSizeAction();
extinguishRange = false;
extinguishRangeAction = new ExtinguishRangeAction();
agentLocation = true;
agentLocationAction = new AgentLocationAction();
}
示例2: init
import rescuecore2.config.Config; //导入方法依赖的package包/类
private void init(Config config)
{
this.developerMode =
config.getBooleanValue("comlib.develop.developerMode", false);
this.radioConfig = new RadioConfig(config);
this.voiceConfig = new VoiceConfig(config);
this.kernelTime = -1;
this.numRadio = config.getIntValue("comms.channels.max.platoon");
this.numVoice =
((config.getValue("comms.channels.0.type").equals("voice")) ? 1 : 0);
this.useRadio = ( this.numRadio >= 1 );
this.providerList =
new MessageProvider[config.getIntValue("comlib.default.messageID", 16)];
this.bitOutputStreamList =
new BitOutputStream[this.getBitOutputStreamNumber(
config.getIntValue("comlib.default.messageID", 16) -1,
PRIORITY_DEPTH
)];
this.maxBandWidthList = new int[numRadio];
this.eventList = new ArrayList<>();
this.receivedMessages = new ArrayList<>();
this.sendMessages = new ArrayList<>();
for(int bosl = 0; bosl < this.bitOutputStreamList.length; bosl++)
{ this.bitOutputStreamList[bosl] = new BitOutputStream(); }
for (int ch = 1; ch <= numRadio; ch++)
{
maxBandWidthList[ch -1] =
config.getIntValue("comms.channels." + ch + ".bandwidth");
}
this.initLoadProvider();
}