Class CamMovedEvent


  • public class CamMovedEvent
    extends Event
    Event gets send when the cam got moved.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class page.codeberg.terratactician_expandoria.bots.events.Event

        Event.EventType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Vec3 focus
      Center position of cam, at which the cam looks at.
      Vec2 orbit
      Rotation of the cam around the center.
      float radius
      Distance to the center point.
    • Constructor Summary

      Constructors 
      Constructor Description
      CamMovedEvent​(org.json.JSONObject data)
      Creates a CamMovedEvent from json data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • focus

        public Vec3 focus
        Center position of cam, at which the cam looks at.
      • orbit

        public Vec2 orbit
        Rotation of the cam around the center. (orientation, height) Angle is in radiants.
      • radius

        public float radius
        Distance to the center point.
    • Constructor Detail

      • CamMovedEvent

        public CamMovedEvent​(org.json.JSONObject data)
        Creates a CamMovedEvent from json data.
        Parameters:
        data - input json data
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object