예제 #1
0
파일: Model.cs 프로젝트: Bamvkefadf/Tanks
        public Model(int amountSimpleTanks, int speedGame, int amountWalls, int amountHunterTanks)
        {
            r = new Random();
            score = new Score();

            this.amountSimpleTanks = amountSimpleTanks;
            this.speedGame = speedGame;
            this.amountWalls = amountWalls;
            this.amountHunterTanks = amountHunterTanks;

            NewGame();
        }
예제 #2
0
        public ModeGame(int amountSimpleTanks, int speedGame, int amountWalls, int amountHunterTanks)
        {
            r = new Random();
            score = new Score();
            player = new Player();
            simpleTanks = new List<EnemyTank>();
            hunterTanks = new List<HunterTank>();
            walls = new List<Wall>();
            projectiles = new List<Projectile>();
            gameStatus = GameStatus.STOP;
            this.amountSimpleTanks = amountSimpleTanks;
            this.speedGame = speedGame;
            this.amountWalls = amountWalls;
            this.amountHunterTanks = amountHunterTanks;

            CreateWalls(amountWalls);
            CreateHunterTanks();
            CreateSimpleTanks();
        }