Beispiel #1
0
  public void setStationary(boolean stationary) {
    synchronized (objectMutex) {
      this.stationary = stationary;
    }

    notifyObservers(messageBuilder.buildStartPerformance(stationary), true);
  }
Beispiel #2
0
  public void stopPerformance() {

    String type = "";
    synchronized (objectMutex) {

      // Some reason this prevents the animation for playing an instrument when stopping (unless
      // that's what "" does)
      setCurrentAnimation(getCurrentAnimation());

      setPerformanceCounter(0);
      setPerformanceId(0, true);

      type = (performanceType) ? "dance" : "music";
      if (entertainerExperience != null) {
        entertainerExperience.cancel(true);
        entertainerExperience = null;
      }
    }

    sendSystemMessage("@performance:" + type + "_stop_self", (byte) 0);
    stopAudience();

    getClient().getSession().write(messageBuilder.buildStartPerformance(false));
  }
Beispiel #3
0
  public void startPerformance() {

    getClient().getSession().write(messageBuilder.buildStartPerformance(true));
  }