Beispiel #1
0
 public NewBalloonMessage(string balloonID, Direction direction, float y, Vector2D velocity)
     : base(MessageType.NewBalloon, Tag, balloonID)
 {
     m_direction = direction;
     m_y = y;
     m_velocity = velocity;
 }
 private Message ParseNewBalloon(JArray args)
 {
     string balloonID = args[1].ToObject<string>();
     Direction direction = Balloon.ParseDirection(args[2].ToObject<string>());
     float y = args[3].ToObject<float>();
     Vector2D velocity = new Vector2D(args[4].ToObject<float>(), args[5].ToObject<float>());
     return new NewBalloonMessage(balloonID, direction, y, velocity);
 }
Beispiel #3
0
 public ChangeScreenMessage(string balloonID, Direction direction, float y, Vector2D velocity, float time = 0)
     : base(MessageType.ChangeScreen, Tag, balloonID)
 {
     m_direction = direction;
     m_y = y;
     m_velocity = velocity;
     m_time = time;
 }
Beispiel #4
0
 public NewPlaneMessage(string planeID, PlaneType planeType, Direction direction, float y, Vector2D velocity, float time)
     : base(MessageType.NewPlane, Tag, planeID)
 {
     m_direction = direction;
     m_y = y;
     m_velocity = velocity;
     m_planeType = planeType;
     m_time = time;
 }
Beispiel #5
0
 public ChangeScreenMessage(int balloonID, Direction direction, float y, Vector2D velocity)
     : base(MessageType.ChangeScreen, Tag, balloonID)
 {
     m_direction = direction;
     m_y = y;
     m_velocity = velocity;
 }