moagg.game
Class MultiPlayerPacketConverter

java.lang.Object
  extended by moagg.game.MultiPlayerPacketConverter

public class MultiPlayerPacketConverter
extends java.lang.Object


Constructor Summary
MultiPlayerPacketConverter()
           
 
Method Summary
 CreateBlasterProjectilePacket createCreateBlasterProjectilePacket(ShootableObject shootable)
           
 CreateShipPacket createCreateShipPacket(MultiPlayerClientData data)
           
 DisconnectPacket createDisconnectPacket(MultiPlayerClientData data)
           
 UpdateControlPacket createUpdateControlPacket(Ship player, boolean shoot)
           
 UpdateFragsPacket createUpdateFragsPacket(java.util.Collection<MultiPlayerClientData> datas)
           
 UpdateShipPacket createUpdateShipPacket(MultiPlayerClientData data)
           
 Projectile handleCreateBlasterProjectilePacket(CreateBlasterProjectilePacket packet)
           
 void handleCreateShipPacket(CreateShipPacket packet, Ship ship)
           
 void handleUpdateShipPacket(UpdateShipPacket packet, Ship ship)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPlayerPacketConverter

public MultiPlayerPacketConverter()
Method Detail

createCreateShipPacket

public CreateShipPacket createCreateShipPacket(MultiPlayerClientData data)

createUpdateShipPacket

public UpdateShipPacket createUpdateShipPacket(MultiPlayerClientData data)

createUpdateFragsPacket

public UpdateFragsPacket createUpdateFragsPacket(java.util.Collection<MultiPlayerClientData> datas)

createCreateBlasterProjectilePacket

public CreateBlasterProjectilePacket createCreateBlasterProjectilePacket(ShootableObject shootable)

createDisconnectPacket

public DisconnectPacket createDisconnectPacket(MultiPlayerClientData data)

createUpdateControlPacket

public UpdateControlPacket createUpdateControlPacket(Ship player,
                                                     boolean shoot)

handleCreateShipPacket

public void handleCreateShipPacket(CreateShipPacket packet,
                                   Ship ship)

handleUpdateShipPacket

public void handleUpdateShipPacket(UpdateShipPacket packet,
                                   Ship ship)

handleCreateBlasterProjectilePacket

public Projectile handleCreateBlasterProjectilePacket(CreateBlasterProjectilePacket packet)


Copyright © 2008. All Rights Reserved.