예제 #1
0
        public object Clone()
        {
            ShipHull copy = new ShipHull();

            copy.Size           = (Keel)this.Size.Clone();
            copy.Hitpoints      = (StatWithMax)this.Hitpoints.Clone();
            copy.ClassName      = (string)this.ClassName.Clone();
            copy.MaxParts       = this.MaxParts;
            copy.MaxPartsByType = this.MaxPartsByType.Clone();
            return(copy);
        }
예제 #2
0
        public Ship(int id, string name, Player owner, ShipHull hull, List <BasePart> parts, Point originPosition)
        {
            this.ID       = id;
            this.Name     = name;
            this.Owner    = owner;
            this.Hull     = hull;
            this.Parts    = parts;
            this.Position = originPosition;

            this.IsDestroyed = false;
            this.MP          = new StatWithMax(MaxMP);
        }