Пример #1
0
        private void gamePlay()
        {
            ship1.attack();
            ship2.attack();
            ship3.attack();

            MoveSubject.getInstance().Move();
            onPropertyChanged(string.Empty);
        }
Пример #2
0
        public static MoveSubject getInstance()
        {
            if (_instance == null)
            {
                _instance = new MoveSubject();
            }

            return(_instance);
        }
Пример #3
0
 public EnemyShip()
 {
     AttackSubject.getInstance().register(this);
     MoveSubject.getInstance().register(this);
 }