Beispiel #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            Rudder = reader.ReadItem() as Rudder;
        }
Beispiel #2
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);
        }
Beispiel #3
0
        public RowBoat(Direction d)
            : base(d, false)
        {
            Rudder    = new Rudder(this, d);
            TillerMan = Rudder;
            Line      = new MooringLine(this);

            switch (d)
            {
            default:
            case Direction.North:
                Rudder.Location = new Point3D(X, Y - TillerManDistance, Z);
                Line.Location   = new Point3D(X, Y - 2, Z + 5);
                break;

            case Direction.South:
                Rudder.Location = new Point3D(X, Y + TillerManDistance, Z);
                Line.Location   = new Point3D(X, Y + 2, Z + 5);
                break;

            case Direction.East:
                Rudder.Location = new Point3D(X + TillerManDistance, Y, Z);
                Line.Location   = new Point3D(X + 2, Y, Z + 5);
                break;

            case Direction.West:
                Rudder.Location = new Point3D(X - TillerManDistance, Y, Z);
                Line.Location   = new Point3D(X - 2, Y, Z + 5);
                break;
            }

            Rudder.Handle = new RudderHandle(Rudder, d);
        }
Beispiel #4
0
        public PumpkinRowBoat(Direction d)
            : base(d, false)
        {
            Rudder    = new PumpkinRudder(this, d);
            TillerMan = Rudder;
            Line      = new MooringBlock(this, d);

            switch (d)
            {
            default:
            case Direction.North:
                Rudder.Location = new Point3D(X + 1, Y + 3, Z);
                Line.Location   = new Point3D(X, Y - 1, Z + 2);
                break;

            case Direction.South:
                Rudder.Location = new Point3D(X, Y - 2, Z);
                Line.Location   = new Point3D(X, Y + 1, Z + 2);
                break;

            case Direction.East:
                Rudder.Location = new Point3D(X - 2, Y, Z);
                Line.Location   = new Point3D(X + 1, Y, Z + 2);
                break;

            case Direction.West:
                Rudder.Location = new Point3D(X + 3, Y + 1, Z);
                Line.Location   = new Point3D(X - 1, Y, Z + 2);
                break;
            }

            Rudder.Handle = new PumpkinRudderHandle(Rudder, d);
        }
Beispiel #5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            Rudder = reader.ReadItem() as Rudder;
            Line   = reader.ReadItem() as MooringLine;

            TillerMan = Rudder;
        }
Beispiel #6
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;
        }
Beispiel #7
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            Rudder = reader.ReadItem() as PumpkinRudder;
            Line   = reader.ReadItem() as MooringBlock;

            TillerMan = Rudder;
        }
Beispiel #8
0
 public RudderHandle(Rudder rudder, Direction d)
 {
     Rudder = rudder;
     SetFacing(d);
 }
Beispiel #9
0
 public PumpkinRudderHandle(Rudder rudder, Direction d)
     : base(rudder, d)
 {
 }
Beispiel #10
0
 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_Rudder = reader.ReadItem() as Rudder;
 }
Beispiel #11
0
 public RudderHandle(Rudder rudder, Direction d)
 {
     m_Rudder = rudder;
     SetFacing(d);
 }
Beispiel #12
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;
        }