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); }
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; }
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; }
public ChangeScreenMessage(int balloonID, Direction direction, float y, Vector2D velocity) : base(MessageType.ChangeScreen, Tag, balloonID) { m_direction = direction; m_y = y; m_velocity = velocity; }