Examples of say()


Examples of games.stendhal.server.entity.npc.SpeakerNPC.say()

                new TimePassedCondition(QUEST_SLOT, DAYS_BEFORE_REPEAT * MINUTES_IN_DAYS)),
                ConversationStates.QUEST_OFFERED,
                null,
                new ChatAction() {
          public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
            npc.say("The fee is your current level, multiplied by " + COST_FACTOR + " and payable in cash. At your level of "
                + player.getLevel() + " the fee is " + COST_FACTOR * player.getLevel() + " money. Do you want to fight?");     
          }
        });

        // player meets conditions, first remind them of the dangers and wait for a 'yes'
View Full Code Here

Examples of games.stendhal.server.entity.npc.SpeakerNPC.say()

            if (Rand.throwCoin() == 1) {
              rewardClass = "cod";
            } else {
              rewardClass = "perch";
            }
            npc.say("Thank you! Here, take some " + rewardClass + "! I do not like to eat them.");
            final StackableItem reward = (StackableItem) SingletonRepository.getEntityManager().getItem(rewardClass);
            reward.setQuantity(20);
            player.equipOrPutOnGround(reward);
            player.notifyWorldAboutChanges();
          }
View Full Code Here

Examples of org.openhab.io.multimedia.tts.TTSService.say()

      TTSService ttsService = getTTSService(MultimediaActivator.getContext(), System.getProperty("osgi.os"));
      if(ttsService==null) {
        ttsService = getTTSService(MultimediaActivator.getContext(), "any");
      }
      if(ttsService!=null) {
        ttsService.say(text.toString(), voice, device);
      } else {
        logger.error("No TTS service available - tried to say: {}", text);
      }
    }
  }
View Full Code Here

Examples of samples.finalmocking.FinalDemo.say()

  public void assertMockFinalWithNoExpectationsWorks() throws Exception {
        final String argument = "hello";

    FinalDemo tested = mock(FinalDemo.class);

    assertNull(tested.say(argument));

    verify(tested).say(argument);
  }

  @Test
View Full Code Here

Examples of samples.privateandfinal.PrivateFinal.say()

        "sayIt");
    String expected = "Hello altered World";
    expectPrivate(tested, "sayIt", "name").andReturn(expected);
    replay(tested);

    String actual = tested.say("name");

    verify(tested);
    assertEquals("Expected and actual did not match", expected, actual);
  }
View Full Code Here

Examples of samples.privateandfinal.PrivateFinalOverload.say()

    @Test
    public void captorAnnotationWorksOnPrivateOverriddenMethods() throws Exception {
        final String expected = "testing";
        PrivateFinalOverload demo = spy(new PrivateFinalOverload());
        demo.say(expected);

        verifyPrivate(demo).invoke(method(PrivateFinalOverload.class, "say", String.class, String.class)).withArguments(anyString(), captor.capture());
        assertEquals(expected, captor.getValue());
    }
}
View Full Code Here

Examples of samples.privatemocking.PrivateMethodDemo.say()

        "sayIt", String.class);
    String expected = "Hello altered World";
    expectPrivate(tested, "sayIt", "name").andReturn(expected);
    replay(tested);

    String actual = tested.say("name");

    verify(tested);
    assertEquals("Expected and actual did not match", expected, actual);
  }
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.