public override Destroyer CreateDestroyer(int x, int y, bool horizontal) { SmallDestroyer new_destroyer = (SmallDestroyer)destroyer_instance.DeepClone(); new_destroyer.X = x; new_destroyer.Y = y; new_destroyer.Rotate(horizontal); return(new_destroyer); }
public SmallShipFactory(string token, string roomId) : base(token, roomId) { destroyer_instance = new SmallDestroyer(token, roomId, 0, 0, false); submarine_instance = new SmallSubmarine(token, roomId, 0, 0, false); }