.round(new MathContext(0, RoundingMode.DOWN)); if (percent.compareTo(interval) >= 0) { getOwner().sendChat("... " + percent.intValue() + "% complete.", LogLevel.INFO); interval = percent.add(new BigDecimal(5));
if (isEnemyGunEmplacement(entity, coords)) { getStrategicBuildingTargets().add(coords); sendChat("Building in Hex " + coords.toFriendlyString() + " designated target due to Gun Emplacement.", LogLevel.INFO);
princess.sendChat("I do not recognize that command."); msg = "No log level specified."; princess.log(getClass(), METHOD_NAME, LogLevel.WARNING, msg + "\n" + chatEvent.getMessage()); princess.sendChat(msg); return; msg = "Invalid verbosity specified: " + arguments[0]; princess.log(getClass(), METHOD_NAME, LogLevel.WARNING, msg); princess.sendChat(msg); return; msg = "Verbosity set to " + princess.getVerbosity().toString(); princess.log(getClass(), METHOD_NAME, LogLevel.DEBUG, msg); princess.sendChat(msg); return; princess.sendChat(msg); princess.log(getClass(), METHOD_NAME, LogLevel.INFO, msg); princess.sendChat(out.toString()); if (princessTeam != speakerTeam) { msg = "You are not my boss. [wrong team]"; princess.sendChat(msg); princess.log(getClass(), METHOD_NAME, LogLevel.WARNING, msg); return; msg = "Received flee order!";
for (final Coords strategicTarget : getStrategicBuildingTargets()) { if (null == game.getBoard().getBuildingAt(strategicTarget)) { sendChat("No building to target in Hex " + strategicTarget.toFriendlyString() + ", ignoring.", LogLevel.INFO); game.getBoard(), false)); sendChat("Building in Hex " + strategicTarget.toFriendlyString() + " designated strategic target.", LogLevel.INFO); if (isEnemyGunEmplacement(entity, coords)) { fireControlState.getAdditionalTargets().add(bt); sendChat("Building in Hex " + coords.toFriendlyString() + " designated target due to Gun Emplacement.", LogLevel.INFO);
&& !entity.isHidden()) { fireControlState.getAdditionalTargets().add(bt); sendChat("Building in Hex " + coords.toFriendlyString() + " designated target due to"
sendChat(msg, LogLevel.WARNING); " is immobile. Abandoning unit."; log(getClass(), METHOD_NAME, LogLevel.INFO, msg); sendChat(msg, LogLevel.WARNING); final MovePath mp = new MovePath(game, entity); mp.addStep(MovePath.MoveStepType.EJECT); + " paths to consider. Estimated time to completion: " + timeestimate; sendChat(message, LogLevel.INFO);
Matchers.any(LogLevel.class), Matchers.anyString()); Mockito.doReturn(mockBotPlayerVGer).when(mockPrincess).getLocalPlayer(); Mockito.doNothing().when(mockPrincess).sendChat(Matchers.anyString()); testChatProcessor.additionalPrincessCommands(mockChatEvent, mockPrincess); Assert.assertTrue(mockPrincess.getFallBack()); Matchers.any(LogLevel.class), Matchers.anyString()); Mockito.doReturn(mockBotPlayerVGer).when(mockPrincess).getLocalPlayer(); Mockito.doNothing().when(mockPrincess).sendChat(Matchers.anyString()); testChatProcessor.additionalPrincessCommands(mockChatEvent, mockPrincess); Assert.assertFalse(mockPrincess.getFallBack()); Matchers.any(LogLevel.class), Matchers.anyString()); Mockito.doReturn(mockBotPlayerVGer).when(mockPrincess).getLocalPlayer(); Mockito.doNothing().when(mockPrincess).sendChat(Matchers.anyString()); testChatProcessor.additionalPrincessCommands(mockChatEvent, mockPrincess); Assert.assertFalse(mockPrincess.getFallBack()); Matchers.any(LogLevel.class), Matchers.anyString()); Mockito.doReturn(mockBotPlayerVGer).when(mockPrincess).getLocalPlayer(); Mockito.doNothing().when(mockPrincess).sendChat(Matchers.anyString()); testChatProcessor.additionalPrincessCommands(mockChatEvent, mockPrincess); Assert.assertEquals(LogLevel.INFO, mockPrincess.getVerbosity()); Matchers.any(LogLevel.class), Matchers.anyString()); Mockito.doReturn(mockBotPlayerVGer).when(mockPrincess).getLocalPlayer(); Mockito.doNothing().when(mockPrincess).sendChat(Matchers.anyString()); testChatProcessor.additionalPrincessCommands(mockChatEvent, mockPrincess); Assert.assertEquals(LogLevel.WARNING, mockPrincess.getVerbosity());
sendChat("deploying unit " + getEntity(entityNum).getChassis(), LogLevel.INFO);