int agentID = entity.get(AgentIdentifiers.class).agentID;
Vector2 dir = entity.get(Direction.class).direction;
MovementType movT = entity.get(Movement.class).moveType;
// construct the message
P026_AgentMoveDirection moveDir = new P026_AgentMoveDirection();
moveDir.init(channel);
moveDir.setAgentID(agentID);
moveDir.setDirection(dir);
moveDir.setMovementType(movT.getVal());
channel.writeAndFlush(moveDir);
}