Exemple #1
0
        public RowBoat(Direction d) : base(d, false)
        {
            m_Rudder = new Rudder(this, d);
            TillerMan = m_Rudder;
            m_Line = new MooringLine(this);

            switch (d)
            {
                default:
                case Direction.North:
                    m_Rudder.Location = new Point3D(X, Y - TillerManDistance, Z);
                    m_Line.Location = new Point3D(X, Y - 2, Z + 5);
                    break;
                case Direction.South:
                    m_Rudder.Location = new Point3D(X, Y + TillerManDistance, Z);
                    m_Line.Location = new Point3D(X, Y + 2, Z + 5);
                    break;
                case Direction.East:
                    m_Rudder.Location = new Point3D(X + TillerManDistance, Y, Z);
                    m_Line.Location = new Point3D(X + 2, Y, Z + 5);
                    break;
                case Direction.West:
                    m_Rudder.Location = new Point3D(X - TillerManDistance, Y, Z);
                    m_Line.Location = new Point3D(X - 2, Y, Z + 5);
                    break;
            }

            m_Rudder.Handle = new RudderHandle(m_Rudder, d);
        }
Exemple #2
0
 public RemoveContext(Mobile from, MooringLine line)
     : base(1043331, 3)
 {
     m_Line = line;
     m_From = from;
 }
Exemple #3
0
 public RemoveContext(Mobile from, MooringLine line)
     : base(1043331, 3)
 {
     m_Line = line;
     m_From = from;
 }
Exemple #4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();
            m_Rudder = reader.ReadItem() as Rudder;
            m_Line = reader.ReadItem() as MooringLine;

            TillerMan = m_Rudder;
        }
Exemple #5
0
 protected MooringLine AddMooringLine(MooringLine line)
 {
     m_MooringLines.Add((Item)line);
     return line;
 }