Пример #1
0
 public Vessel(SelectableObject position)
 {
     m_Position = position;
     m_Weapons = new List<IWeaponSystem>
         {
             new LanceBattery(),
         };
 }
        private void OnAdd(AddObjectMessage message)
        {
            var path = new Path(BaseConstants.EscortAcceleration, new CircularMotion(0, 50, new Angle(0), new Angle(Math.PI / 10), 20, Vector.Zero));
            var selectableObject = new SelectableObject(m_Id.Id, message.Name, path);

            m_SelectableRepo.AddObject(selectableObject);
            m_Renderer.Scene.Add(message.Name, message.Shape);
        }
        private void OnAdd(AddObjectMessage message)
        {
            var path             = new Path(4, new CircularMotion(0, 50, new Angle(0), new Angle(Math.PI / 10), BaseConstants.EscortSpeed, Vector.Zero));
            var selectableObject = new SelectableObject(m_Id.Id, message.Name, path);

            m_Objects.Add(selectableObject);

            m_VesselRepository.Add(new Vessel(selectableObject));
        }
 public void AddObject(SelectableObject newObject)
 {
     m_Objects.Add(newObject);
     m_VesselRepository.Add(new Vessel(newObject));
 }
        private void OnAdd(AddObjectMessage message)
        {
            var path = new Path(4, new CircularMotion(0, 50, new Angle(0), new Angle(Math.PI / 10), BaseConstants.EscortSpeed, Vector.Zero));
            var selectableObject = new SelectableObject(m_Id.Id ,message.Name, path);
            m_Objects.Add(selectableObject);

            m_VesselRepository.Add(new Vessel(selectableObject));
        }
 public void AddObject(SelectableObject newObject)
 {
     m_Objects.Add(newObject);
     m_VesselRepository.Add(new Vessel(newObject));
 }