Exemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

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