Package net.lightstone.msg

Examples of net.lightstone.msg.AnimateEntityMessage


  @Override
  public AnimateEntityMessage decode(ChannelBuffer buffer) throws IOException {
    int id = buffer.readInt();
    int animation = buffer.readUnsignedByte();
    return new AnimateEntityMessage(id, animation);
  }
View Full Code Here


public final class AnimateEntityMessageHandler extends MessageHandler<AnimateEntityMessage> {

  @Override
  public void handle(Session session, Player player, AnimateEntityMessage message) {
    // TODO check the animation id is valid?
    message = new AnimateEntityMessage(player.getId(), message.getAnimation());
    for (Player p : player.getWorld().getPlayers()) {
      if (p != player) {
        p.getSession().send(message);
      }
    }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.AnimateEntityMessage

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.