public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadInt(); Rudder = reader.ReadItem() as Rudder; }
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); }
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); }
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); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadInt(); Rudder = reader.ReadItem() as Rudder; Line = reader.ReadItem() as MooringLine; TillerMan = Rudder; }
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; }
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; }
public RudderHandle(Rudder rudder, Direction d) { Rudder = rudder; SetFacing(d); }
public PumpkinRudderHandle(Rudder rudder, Direction d) : base(rudder, d) { }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Rudder = reader.ReadItem() as Rudder; }
public RudderHandle(Rudder rudder, Direction d) { m_Rudder = rudder; SetFacing(d); }