Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.ViewerEffectPacket


  /// <param name="type">The type from the <seealso cref="T:PointAtType"/> enum</param>
  /// <param name="effectID">A unique <seealso cref="UUID"/> for this effect</param>
  public void PointAtEffect(UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, PointAtType type,
      UUID effectID)
  {
    ViewerEffectPacket effect = new ViewerEffectPacket();

    effect.AgentData.AgentID = Client.self.getAgentID();
    effect.AgentData.SessionID = Client.self.getSessionID();

    effect.Effect = new ViewerEffectPacket.EffectBlock[1];
View Full Code Here


  /// <param name="type">A <seealso cref="T:PointAtType"/> which sets the avatars lookat animation</param>
  /// <param name="effectID"><seealso cref="UUID"/> of the Effect</param>
  public void LookAtEffect(UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, LookAtType type,
      UUID effectID)
  {
    ViewerEffectPacket effect = new ViewerEffectPacket();

    effect.AgentData.AgentID = Client.self.getAgentID();
    effect.AgentData.SessionID = Client.self.getSessionID();

    float duration;
View Full Code Here

  /// <param name="effectID">A Unique ID for the beam</param>
  /// <seealso cref="ViewerEffectPacket"/>
  public void BeamEffect(UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, Color4 color,
      float duration, UUID effectID)
  {
    ViewerEffectPacket effect = new ViewerEffectPacket();

    effect.AgentData.AgentID = Client.self.getAgentID();
    effect.AgentData.SessionID = Client.self.getSessionID();

    effect.Effect = new ViewerEffectPacket.EffectBlock[1];
View Full Code Here

  /// color values of particle beam</param>
  /// <param name="duration">a float representing the duration the parcicle beam will last</param>
  /// <param name="effectID">A Unique ID for the beam</param>
  public void SphereEffect(Vector3d globalOffset, Color4 color, float duration, UUID effectID)
  {
    ViewerEffectPacket effect = new ViewerEffectPacket();

    effect.AgentData.AgentID = Client.self.getAgentID();
    effect.AgentData.SessionID = Client.self.getSessionID();

    effect.Effect = new ViewerEffectPacket.EffectBlock[1];
View Full Code Here

        /// <param name="sender">The sender</param>
        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void ViewerEffectHandler(Object sender, PacketReceivedEventArgs e)
        {
            Packet packet = e.getPacket();
            ViewerEffectPacket effect = (ViewerEffectPacket)packet;

            for (ViewerEffectPacket.EffectBlock block : effect.Effect)
            {
                EffectType type = EffectType.get(block.Type);
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.ViewerEffectPacket

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.