Esempio n. 1
0
        public override Submarine CreateSubmarine(int x, int y, bool horizontal)
        {
            LargeSubmarine new_submarine = (LargeSubmarine)submarine_instance.DeepClone();

            new_submarine.X = x;
            new_submarine.Y = y;
            new_submarine.Rotate(horizontal);
            return(new_submarine);
        }
Esempio n. 2
0
 public LargeShipFactory(string token, string roomId)
     : base(token, roomId)
 {
     destroyer_instance = new LargeDestroyer(token, roomId, 0, 0, false);
     submarine_instance = new LargeSubmarine(token, roomId, 0, 0, false);
 }