Beispiel #1
0
 public void NewGame()
 {
     projectile = new Projectile();
      packman = new Packman(sizeField);
      tanks = new List<Tank>();
      fireTank = new List<FireTank>();
      apples = new List<Apple>();
      collectedApples = 0;
      gameStatus = GameStatus.stopping;
      wall =new Wall();
      CreateTanks();
      CreateApples(0);
      step = -30;
 }
Beispiel #2
0
        internal void NewGame()
        {
            Wall    = new Wall();
            packman = new Packman(7 * 40, 23 * 20, DirectionEnum.Up);
            Tanks   = new List <Tank>()
            {
                new Hanter(rand.Next(13) * 40, rand.Next(13) * 40, (DirectionEnum)rand.Next(4), packman)
            };
            CrateTanksList(Tanks);

            Apples = new List <Apple>();
            CreateAppleList(Apples);

            GameStatus = GameStatus.Stop;
        }
Beispiel #3
0
        internal void NewGame()
        {
            collectedApples = 0;

            projectile = new Projectile();
            tanks      = new List <Tank>();
            apples     = new List <Apple>();
            packman    = new Packman(sizeField);
            fireTank   = new List <FireTank>();

            CreateTanks();
            CreateApples();

            wall = new Wall();

            gameStatus = GameStatus.stopping;
        }
Beispiel #4
0
 public void NewGame(int sizeField, int amountTanks, int amountAppeles, int speedGame, int ApplesForWin)
 {
     this.sizeField     = sizeField;
     this.amountTanks   = amountTanks;
     this.amountAppeles = amountAppeles;
     this.speedGame     = speedGame;
     this.ApplesForWin  = ApplesForWin;
     Number_Apples      = 0;
     tanks      = new List <Tank>();
     fireTanks  = new List <FireTank>();
     apples     = new List <Apple>();
     walls      = new List <Wall>();
     packman    = new Packman(sizeField);
     projectile = new Projectile();
     CreateTanks();
     CreateApples();
     CreateWalls();
     gamestatus = GameStatus.stopped;
 }
Beispiel #5
0
        internal void NewGame()
        {
            projectiles = new List <Projectile>();
            t           = new List <Tank>();
            fireTank    = new List <FireTanks>();

            packman = new Packman(sizeField);
            proj    = new Projectile(sizeField);
            staff   = new Staff();

            countTanks        = 0;
            countTanksRun     = 0;
            countTanksBang    = 0;
            countLoserPackman = 0;
            flagStaffDown     = false;

            wall = new Wall();

            gameStatus = GameStatus.stoping;
        }
Beispiel #6
0
        internal void NewGame()                          // Создание или пересоздание объектов на поля для новой игры
        {
            collectedApples = 0;

            step = -30;

            projectile = new Projectile();
            packman    = new Packman(sizeField);
            tanks      = new List <Tank>();
            fireTanks  = new List <FireTank>();
            apples     = new List <Apple>();

            CreatTanks();
            CreatApples();
            wall = new Wall();



            gameStatus = GameStatus.stoping;
        }
Beispiel #7
0
 public Hanter(int x, int y, DirectionEnum dir, Packman packman) : base(x, y, dir)
 {
     Packman = packman;
 }