示例#1
0
 public void Initialize()
 {
     list      = new List <GameObject>();
     airc      = new Aircraft(10);
     dest      = Destroyer.GetInstance(2, 2);
     dest.name = "This is a instance of Aircraft Unit Test";
 }
 public void Initialize()
 {
     list = new List <GameObject>();
     subm = new Submarine(10);
     dest = Destroyer.GetInstance(10, 10);
     dept = new DepthCharge(dest);
 }
 public void Initialize()
 {
     dest   = Destroyer.GetInstance(2, 2);
     supply = new Supply(103, 60);
     list   = new List <GameObject>();
     list.Add(supply);
     list.Add(dest);
 }
示例#4
0
        public void CheckSingleton()
        {
            des.Hp = 10;
            Destroyer des2 = Destroyer.GetInstance(2, 2);

            des2.Hp = 20;
            Assert.True(des.Hp == des2.Hp);
        }
 public void Initialize()
 {
     torp = new Torpedo(10, 10);
     list = new List <GameObject>();
     dest = Destroyer.GetInstance(2, 2);
     subm = new Submarine(5);
     list.Add(dest);
     list.Add(subm);
 }
 public void Initialize()
 {
     dest          = Destroyer.GetInstance(5, 5);
     sub           = new Submarine(10);//Initital Position X=20,Y=200~570
     list          = new List <GameObject>();
     dept          = new DepthCharge(dest);
     sub.PositionY = 170;
     list.Add(sub);
 }
        private GameControll()
        {
            GameObjects = new List <GameObject>();
            myShip      = Destroyer.GetInstance(5, 5);

            Submarine firstSub = new Submarine(3);

            GameObjects.Add(myShip);
            GameObjects.Add(firstSub);
            _gameOver = SwinGame.LoadBitmap(Directory.GetCurrentDirectory() + @"\Resources\images\GameOver.png");
        }
示例#8
0
 public void Initialize()
 {
     des  = Destroyer.GetInstance(2, 2);
     list = new List <GameObject>();
     sub  = new Submarine(2);
 }