Package net.lightstone.msg

Examples of net.lightstone.msg.TimeMessage


   * @param time The current time.
   */
  public void setTime(long time) {
    this.time = time % PULSES_PER_DAY;

    TimeMessage msg = new TimeMessage(time);
    for (Player player : getPlayers())
      player.getSession().send(msg);
  }
View Full Code Here


    super(TimeMessage.class, 0x04);
  }

  @Override
  public TimeMessage decode(ChannelBuffer buffer) throws IOException {
    return new TimeMessage(buffer.readLong());
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.TimeMessage

Copyright © 2018 www.massapicom. 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.