Package org.menacheri.zombie.game

Source Code of org.menacheri.zombie.game.Messages

package org.menacheri.zombie.game;

import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.menacheri.zombie.domain.ZombieCommands;


/**
* This class acts like a message factory for creating game specific messages.
* @author Abraham Menacherry
*
*/
public class Messages
{
  public static ChannelBuffer apocalypse()
  {
    ChannelBuffer buffer = ChannelBuffers.buffer(4);
    int cmd = ZombieCommands.APOCALYPSE.getCommand();
    buffer.writeInt(cmd);
    return buffer;
  }
}
TOP

Related Classes of org.menacheri.zombie.game.Messages

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.